Questions tagged [programmatically-created]

Any object in an application created using a computer program rather than created manually using something in the userspace.

General Definition

Any object in an application created using a computer program rather than created manually using something in the userspace.

GUI Elements

In general, elements are declared in inside their accompanying tags in / files or in any other derivatives ( , , , , , and many others).

Programmatically created are those elements that are coded in contexts that need to be compiled to take effect at . They could be created at by a click of a as an example, where they would be coded inside a click listener for that .

438 questions
0
votes
0 answers

Adding View programmatically

I am constructing a View through some methods and at the end I am getting a View object which I then add to a LinearLayout. The problem isn't in the last class before I add it to the Linearlayout I want to add another view programmatically. When I…
0
votes
3 answers

Programmatically configure Outlook's options for address lists

I need to to programmatically (ideally via PowerShell) configure Outlook setting the options: "When sending e-mail, check address lists in this order:" to "Start with contact folders". "When opening the address book, show this address list first:"…
mythofechelon
  • 3,692
  • 11
  • 37
  • 48
0
votes
2 answers

When @User is activated create an Object that belongs to that User

I have a User model that has many galleries and categories(both separate models that belong_to :user). I would like to create a default category named "Everything" and a default gallery entitled "Everything". I am adapting Mike Hartl's tutorial for…
0
votes
0 answers

VB.Net - Are Windows Forms Allowed in Classes?

Hello once again StackOverflow community! I have a fairly simple questions but surprisingly I am unable to find this answer while using google for the past hour... Question is: Can you create a Form inside a Class Library, or in other words can I…
0
votes
0 answers

how to programmatically add buttons in swift (OS X)

I've got a view and I'd like to add a check box to it under program control (no .xib file). Here is the code I'm trying, but I get no checkbox on the screen (it does draw everything else just fine in the view). Am I missing something? Early in the…
rawhide
  • 49
  • 4
0
votes
1 answer

Create GridView with margin for each cell programmatically

I would like to create a dynamic gridview programmaticaly. All things look good. But the margin for each cell is not displayed. Please help. PagerAdapter: @Override public Object instantiateItem(ViewGroup container, int position) { Calendar…
0
votes
1 answer

Obtaining state variable derivatives from a simulink model

I have a simulink process model with a number of control inputs. I have modeled the process model using a number of susbsytems (m-file block in series and parallel), and the integration is done using an integrator for each subsystem. I can run this…
0
votes
2 answers

Android ListView Custom Adapter Add Button Dynamically?

I'm using a custom adapter to set up my ListView for an activity (that is reached from the main activity). I'm trying to add a button (and an EditText later) dynamically considering I'm not using a defined layout file (just a layout for each row of…
0
votes
3 answers

Programmatically build Navigation Drawer

I have a DrawerLayout, which uses 2 Layouts. for the main content. (RelativeLayout) The drawer pane. (LinearLayout) I need to create everything DYNAMCALLY, so no XML has to be used. This is the code to create the drawerPane: public class Test2…
0
votes
1 answer

Create responsive bootstrap form programmatically from data

I'm trying to build a responsive form programmatically from a json file. The file will contain information on each item that needs to be shown (ex: label+textfield, then label+combobox, then label+etc, including the data for the labels). I would…
0
votes
2 answers

How to resize an ImageView Programmatically to match parent in CardView

I want to programmaticlly put image in existing imageView. This is xml file where i have imageView and TextView:
0
votes
2 answers

Creating a list in ListAdded List Event Receiver

I am trying to programmatically create a Calendar List in SharePoint 2010 whenever a particular list is created using a Sandbox Solution. I have implemented a ListAdded ListEventReceiver in order to run the code to generate the calendar. public…
0
votes
2 answers

How to get Text in GridView when selected?

I'm working on a project in which I'm setting content using JSON Binding in Grid view but now I want to get Text of item when it is selected. XAML CODE:
0
votes
2 answers

android -add relativelayout below the other on button click

I want to dynamically add the relativelayout below the previous one everytime a button is clicked.I was able to achieve it for a single click.Please share the source code for that. hotel_search.xml:
0
votes
2 answers

android cannot add relativelayout in fragment dynamically

I am trying to add a relativelayout inside a fragment programmatically on button click.But it simply doesn't display the layout.below is the code: I have edited and posted the xml layout. HotelSearch.java: public class HotelSearch extends Fragment…