Computer Science Canada

One shortcut for two buttons.

Author:  tum_twish [ Wed Apr 23, 2003 7:35 am ]
Post subject:  One shortcut for two buttons.

When using GUI.CreateButtonFull, how can I make it such that two buttons are pressed when the <ENTER> (chr 10) key is pressed?

Author:  Office of the Registar [ Fri Apr 25, 2003 9:14 am ]
Post subject: 

what do you mean two buttons are pressed?

Author:  Tony [ Fri Apr 25, 2003 9:19 am ]
Post subject: 

I assume press both buttons at same time Confused Though I dont understand why. Maybe if you post why you need to do so we might come up with another solutoin for the problem?

Author:  tum_twish [ Fri Apr 25, 2003 10:38 am ]
Post subject: 

I am doing a program that calculates permutations and combinations. However, it is required that we have two buttons, one for each action. But if you press enter, both procedures for both buttons will execute.

Author:  Office of the Registar [ Fri Apr 25, 2003 2:21 pm ]
Post subject: 

Do you want it to produce two things when you press enter?

Author:  Blade [ Fri Apr 25, 2003 2:33 pm ]
Post subject: 

what if you have each action in different (or the same) procedure, and have both procedures executed when the button is pressed

Author:  Tony [ Fri Apr 25, 2003 5:20 pm ]
Post subject: 

make a 3rd hidden button and set its shortcut to be enter (if thats possible).

for 3rd button's procedure make it call procedures from buttons 1 and 2. So technically you'll be making a 3rd button (but its hidden) which presses other 2 for you Very Happy


: