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

Launch Configurations Created using AWS-Console VS Programmatically

I would like to find out if there is an easy way to find out whether given launch configuration is created using AWS Console or Programmatically? Usecase: We are planning to avoid copying/creating launch configuration using AWS-Console, so we would…
1
vote
1 answer

Programmatically created horizontal UIStackView with 2 justified labels

I want 2 labels (say leftLabel, rightLabel) and place them horizontally such that leftLabel stretches and rightLabel just fits single character icon (say, ">"). Thus both labels layout justified. Like this... This is the code I have - class…
Ashok
  • 6,224
  • 2
  • 37
  • 55
1
vote
0 answers

How to insert (and later extract) readable program into MS Word

I wish to insert/extract a program (python, Java, doesn't matter; it's text) in an MS Word doc. The rest of the MS Word doc can contain essentially anything but with respect to the embedded program there are two requirements: You can see…
Buzz Moschetti
  • 7,057
  • 3
  • 23
  • 33
1
vote
1 answer

Can't get State Restoration to work with Programmatic Navigation Controller

I'm unable to get State Restoration working with a Navigation Controller. I am using Swift and do not want to use Storyboards (Programmatic). Almost all the help I've found online is either not in Swift or using Storyboards. In the demo code below,…
1
vote
1 answer

UICollectionView selection/deselection methods not triggering

Basically I have a UIPageViewController which has multiple UICollectionView on each pages. The problem is I can select/deselect on collectionViews inside the first page. But when I switch to second page, numberOfSections, numberOfItemsInSection,…
1
vote
1 answer

Center-aligning UIView inside another is not working -programmatically-

EDIT: added a snapshot. I have a UIView class, as follows.. class CreateNewUserView: UIView{ private let subVu: UIView! = UIView() func createNewUserVuLayout() -> UIView{ subVu.frame.size = CGSize(width:320, height:320) // …
Gamal Elsayed
  • 63
  • 2
  • 10
1
vote
2 answers

Add UILabels with different width side by side programmatically

I want to add multiple UILabels programmatically side by side to a TableViewCell. The UILabels have different width. The first cell in the picture shows the problem and the second cell what I would like to do. In this example I want to add four…
1
vote
0 answers

Pinterest Layout Programmatically

I am trying to create a pinterest style layout programmatically. I'm using this project as a reference and trying to transition it. I'm trying to get rid of the storyboard and have it all run programmatically. I know I have to change the code to…
ajayb
  • 633
  • 1
  • 9
  • 23
1
vote
2 answers

Dynamically adding buttons next to each other - RelativeLayout

Ok, so here's the thing. I'm trying to make an app that resembles a piano for android, also I've never really had much experience with Java or programming for Android so all of this is pretty new to me. I've managed to do this in XML but I want to…
1
vote
0 answers

iOS 9 Programmatic Constraints to a Nav Bar?

I am trying to programmatically set my constraints to the top of my UIViewController's Nav Bar, but I can't see to get it to work properly. Here is my code: func setup() { let containerView = UIView() containerView.backgroundColor = .red …
a2b123
  • 573
  • 1
  • 5
  • 19
1
vote
3 answers

Create bug in Bugzilla using Bugzilla Restful Api

Any sample code to create a new bug in Bugzilla using the restful webservice API? What I have done so far is using Postman to see how it works: The simple json code: { "product" : "TestProduct", "component" : "TestComponent", "summary" :…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
1
vote
3 answers

Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes)

I'm trying to create a Java file using a PHP script, but for some reason, whenever I run this script I get the following error on the screen: Fatal error: Allowed memory of 134217728 bytes exhausted (tried to allocate 24 bytes) in…
Ido
  • 171
  • 2
  • 13
1
vote
6 answers

Programmatically add a UILabel above my WKWebView in iOS 10 + Swift 3

To my understanding, a WKWebView cannot be created in a Storyboard. I had to create it programmatically in one of my instances of ViewController with the following code: override func loadView() { let webConfiguration =…
randombits
  • 47,058
  • 76
  • 251
  • 433
1
vote
2 answers

android programmatically create layout with header table footer

I need to create a fragment with the following format : Header at the top, followed by a table, and then a footer. I need to create the layout programmatically. I have the following code that is used to create a template. It has everything I need…
user7236439
  • 27
  • 1
  • 6
1
vote
3 answers

Programmatically turns the page, indicators does not change

I try the following approach found here extension UIPageViewController { func goToNextPage(){ guard let currentViewController = self.viewControllers?.first else { return } guard let nextViewController = dataSource?.pageViewController(…
theDC
  • 6,364
  • 10
  • 56
  • 98