cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Andyon98
Level II

Adding a second button onto a new window.

How do I add another button to an existing “New Window”? I’ve been trying but one button only shows up, also how do I position a button to where I want it and choose the size of the button.
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Adding a second button onto a new window.

Here is a simple example.

txnelson_0-1655129597154.png

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) ),
		bb2 = Button Box( "Push 2", Show( "button 2" ) )
	)
);

Make sure you are not ending statements within the window definition with ":".   

The following

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) );
		bb2 = Button Box( "Push 2", Show( "button 2" ) );
	)
);

only produces 

txnelson_1-1655129886693.png

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Adding a second button onto a new window.

Here is a simple example.

txnelson_0-1655129597154.png

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) ),
		bb2 = Button Box( "Push 2", Show( "button 2" ) )
	)
);

Make sure you are not ending statements within the window definition with ":".   

The following

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) );
		bb2 = Button Box( "Push 2", Show( "button 2" ) );
	)
);

only produces 

txnelson_1-1655129886693.png

 

Jim