Computer Science Canada disabling command button |
Author: | cool dude [ Sun Dec 25, 2005 12:19 pm ] |
Post subject: | disabling command button |
hi is there any way to disable the command button to being chosen when the program runs. wat i mean by that is if u have a command button when the program executes and u press enter the command button will be chosen. i was just wondering if u can stop it without disabling the enabled property. |
Author: | Tony [ Sun Dec 25, 2005 1:26 pm ] |
Post subject: | |
I suppose you could have a dummy button, and change the tab order |
Author: | cool dude [ Sun Dec 25, 2005 2:37 pm ] |
Post subject: | |
wat do u mean by a dummy button? |
Author: | Tony [ Sun Dec 25, 2005 4:00 pm ] |
Post subject: | |
just a button that does nothing... or another element that could have tab order assosiated with itself. This way nothing gets executed when user hits Enter, unless they Tab to the command button first. |
Author: | cool dude [ Sun Dec 25, 2005 4:35 pm ] |
Post subject: | |
i'm not sure if this is wat u mean by a dummy button but i created two command buttons the first one does nothin and the second does something. since the first one does nothing and when i click on enter it does nothing so it works. ![]() |
Author: | cool dude [ Sun Dec 25, 2005 5:57 pm ] |
Post subject: | |
thanks for the help and i already figured it out. all i could have done was change the property of the button to a mouse click so it will only exectute if it was clicked on with a mouse. ![]() |