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
1 answer

Is there a difference between programmatically adding objects to a UIViewController and a UITableViewController's prototype cell?

I see videos where they add labels, etc. into the prototype section of a UITableViewController through the storyboard. Is this the same as if I was just adding those objects to a regular UIViewController? I did try, but I was running into problems…
fossdeep
  • 113
  • 1
  • 11
1
vote
0 answers

How to change the Contextual Action Bar color programmatically?

How can I change my Contextual Action Bar color programmatically? That is, not an xml solution. For Android. Note: I am working with minsdkVersion 21 I am using BigNerdRanch's MultiSelector
1
vote
0 answers

Can't Create Configurable Products with multiple Attributes programmatically

I'm trying to create a configure product with multiple attributes. Here is my code. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $simpleProduct = Mage::getModel('catalog/product'); try { $simpleProduct // …
1
vote
1 answer

how to align loop of labels horizontally with different width using autolayout Programatically

I want to align set of labels next to each other using AutoLayout constraint programmatically. NOTE:And each label must have different width.Like i need to assign in array [50,40,70,30,20,10] I find some relevant questions but not useful in my…
Lydia
  • 2,017
  • 2
  • 18
  • 34
1
vote
0 answers

Swift: Auto-Layout constraints - swift

I'm trying to resize my iOS app for any screen dimension with auto layout constraints programmatically, but I don't understand why this specific constraint doesn't work as I expected it to. I think that the bottom of view1 doesn't fit as it should…
Gabriela
  • 11
  • 3
1
vote
1 answer

woocommerce function to create product programmatically

I need to create a product manually from php script (e.g. i'm developing a custom front-end form to insert products) Googling i see some support forum create manually a post (using wp_insert_post function). I think this solution is not reliable…
luk_z
  • 451
  • 1
  • 8
  • 16
1
vote
1 answer

Executing installers programmatically

I am working on a project for my users to generate HTML pages, JS files, CSS files etc... through dragging and dropping visual elements and by going through a series of wizzards. The goal I am trying to achieve is to create an application in which…
1
vote
2 answers

Creating multiple UI Elements dynamically during runtime - C# WPF

I'm fairly new to C# and WPF, but I started building an application which should have a function of listing Items with a few details. Currently it looks like The data for these 'items' (one item is multiple labels enclosed in a border (at a later…
gameX
  • 23
  • 1
  • 8
1
vote
1 answer

LinearLayout setMargins programmatically has not effect

Please have a look at the following code: LinearLayout ll1 = new LinearLayout(context); ll1.setBackgroundColor(Color.BLUE); ll1.setOrientation(LinearLayout.VERTICAL); LinearLayout.LayoutParams ll1LayoutParams = new…
toom
  • 12,864
  • 27
  • 89
  • 128
1
vote
1 answer

Android - Set my own unique integer id (not in resources) to many views created programmatically

I want to give ids to multiple views created programmatically and each id to be a specific integer based on my own logic. Consider the following example: I have M colors defined in a sequential way, e.g. using enum, or using an array to put M color…
1
vote
1 answer

c# add page to onenote from template

New to OneNote development. I have an app that I want to add a new page based on the template that is the default in this section of my notebook. I want to take some text from a textbox and name the generated new page to that text. I don't need…
Ralph
  • 11
  • 1
1
vote
3 answers

Change color of progress bar programmatically

I want to change the colors of a ProgressBar in Android only programmatically. My problem is, how can I set a different color for the progress and another color for the "to fill" - part of the progress bar Example: Progress should be green Last…
kimbl
  • 265
  • 1
  • 2
  • 12
1
vote
2 answers

Which properties do constraints affect?

I'm trying to understand constraints' logic and there is somethin I cannot find out... I created a custom UIButton and add some constraints to change it's width and height and it's working fine. But I cannot find the new width and height values of…
Utku Demir
  • 37
  • 5
1
vote
1 answer

Adding and removing NSTextField programmatically in Swift

I am trying to write text labels on a graph view representing a variety of data points (imagine a line graph in Excel). I select a data set using a tableView. Each time a select a new data set the graph is redrawn. I can draw the line graph using a…
1
vote
1 answer

How to segue *without* storyboard between Master and Detail view?

I've create a Master-Detail project completely programmatically, that is to say there is no storyboard whatsoever (I deleted the files). What I cannot figure out is how to segue between the Master View (MV) and the Detail View (DV) I've tried…
Jona
  • 1,023
  • 2
  • 15
  • 39