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
1
vote
2 answers

Why does postgresql fail on single quote

I am trying to programmatically create the postgresql (9.2) "pg_hba.conf" file during our install. I have tried to create the file using the following: (yes, the Windows 8.1 User Name has a space and an apostrophe) private static string[]…
MrLister
  • 634
  • 7
  • 32
1
vote
3 answers

How can I add UIBarButtonItem to my navigation controller programmatically?

I want to add UIBarButtonItem to my navigation controller programmatically in both left and right side and change both of them to other UIBarButtonItems when clicked. And also I want to use my item icons. Can i do that? Its my 2nd week in iOS…
compbealov
  • 37
  • 8
1
vote
1 answer

JSF Validators do not work if Random or SecureRandom used to generate component ID

When I use UUID#randomUUID() (which uses SecureRandom) or RandomStringUtils#randomAlphabetic(int) (which uses Random) to generate component ID for HtmlInputText validation stops working. If instead I set the component ID using an arbitrary…
Patrick Garner
  • 3,201
  • 6
  • 39
  • 58
1
vote
0 answers

LinearLayout add programmatically childs

How may I know how many child views may I programmatically add to a horizontal oriented LinearLayout? I tried something like this: for (int i = 0; i < listSize; i++) { View childView = getChildView(parentView); // method that returns an…
DoruAdryan
  • 1,314
  • 3
  • 20
  • 35
1
vote
1 answer

UISwitch changes two values at a time

I have a table view with a number of rows depending on how many entries the user created. Lets assume the user created 2 entries thus we have 2 rows. Now Each row when tapped creates a subview with another table with 2 rows and 2 UISwitches (Just…
Tromos
  • 89
  • 6
1
vote
1 answer

How to programmatically create WPF Grid.RowDefintion.Height binding

This should be simple, but I'm stuck! How to create the following multibinding in code and apply it to the given row definition:
1
vote
1 answer

Getting all children in a LinearLayout

How to get all children in order to use them later? LinearLayout createRow(LinearLayout parrent, int id, int orientation, int color){ LinearLayout cell = new LinearLayout(this); LinearLayout.LayoutParams rowParams = new…
1
vote
1 answer

Is it possible to create and fill programmatically an AutoCompleteTextView in android?

I've few weeks of experience with android and I'd like to create and fill programmatically an AutoCompleteTextView but I can't because the Activity stops. This is the code I wrote: public class ItemEditor extends LinearLayout { String[] …
dommac
  • 11
  • 1
1
vote
2 answers

How to programmatically create a child page in EPiServer 8.0

I'm new to EPiServer so you might find my question very simple. Please help! Question: Where can I insert the code that programmatically creates a child page to the newly created EPiServer page? Context: When an editor goes to the Edit View of the…
Nicola
  • 851
  • 7
  • 11
1
vote
1 answer

Adding custom View to layout programmatically

I'm using this library: https://github.com/sephiroth74/HorizontalVariableListView I need to add the component "it.sephiroth.android.library.widget.HListView" to my layout programmatically. I've tried this but nothing is visible... View w; w=new…
1
vote
0 answers

Autolayout programmatically when using a UIwebview in Swift

I am writing some code for my home screen for a new app I am working on. On the home screen I have a GIF image running in the background with a FB(Facebook) login on the front screen. My issue is that I am trying to run auto-layout programmatically…
RILEY
  • 65
  • 1
  • 8
1
vote
2 answers

How to update linearlayout child view programmatically in android?

I have created linearylayout programatically. where it has multiple rows created having white background. Now if I click on any row then only that row's imageview icon should be changed(should be green) and other row's imageview background should be…
rahul
  • 2,613
  • 8
  • 32
  • 55
1
vote
0 answers

Trigger Javascript Modal programmatically

The following Javascript code is linked to my modal: var ModalEffects = (function() { function init() { var overlay = document.querySelector( '.md-overlay' ); [].slice.call( document.querySelectorAll( '.md-trigger' )…
userxxxso
  • 165
  • 2
  • 15
1
vote
1 answer

C# nHibernate programmatically set db password

I have a C# Windows Forms application. We are using nHibernate version 2.1 with Castle. We are installing our application in a secured vault. Therefore, we need to store the password in encrypted format in the hibernate.cfg.xml file. The C# code…
MikeTWebb
  • 9,149
  • 25
  • 93
  • 132
1
vote
0 answers

add layout programmatically in android button click

I have a XML layout file. This is the source