Razzak Great explanation, thanks! I see exactly what you mean!
I think I'll leave it as is - if I make the change you suggest, the users will need to click on the drop down arrow every time to see the menu choices. Given the choice, I think it's much more likely that they'll choose an item than look at the list and cancel! David David Blocker [EMAIL PROTECTED] 781-784-1919 Fax: 781-784-1860 Cell: 339-206-0261 ----- Original Message ----- From: "A. Razzak Memon" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 15, 2004 1:38 PM Subject: [RBG7-L] - Re: Question about the Enhanced Tab Control / Combobox menu > At 11:09 AM 7/15/2004 -0400, David Blocker wrote: > > >However, if you decide not to proceed, you must click on CANCEL TWICE. > >Since the drop down box is open and has focus, clicking ONE just closes > >down the combo box and the choices no longer show. Only when you click > >on CANCEL a second time does the code in the button run and the combo > >box and butttons disappear. > > > David, > > That is the CORRECT behavior in Windows environment. > > As you have very nicely described, the combo-box is opened, > i.e., PROPERTY ComboBox LISTOPEN 'TRUE', when you click on > the [Cancel] Speed Button, the first time. > > So, what's happening is the following: > > 01. When you first click on the [Cancel] Speed Button, it > closes the combo-box list, i.e., > PROPERTY ComboBox LISTOPEN 'FALSE' > > 02. When you click on the [Cancel] Speed Button the second > time (as combo-box is no longer opened at this time), > it follows the remaining commands, i.e,: > > PROPERTY ComboBox VISIBLE FALSE > PROPERTY Button_Continue VISIBLE FALSE > PROPERTY Button_Cancel VISIBLE FALSE > > Therefore, if any drop-down list is opened, it MUST be closed > first before following the next commands, etc. > > FYI, take a look at any other windows programs, for example, > MS Word and try the following steps: > > 01. Start MS Word > 02. While in an empty document, click on the "Zoom" combo-box > and while you're looking at the list in that combo-box, > try to click on [Insert Table] icon, next to it. > > Notice the behavior. > > Clicking the first time on [Insert Table] while "Zoom" > combo-box is still open, will first close the combo-box. > > Pressing on the [Insert Table] again (second time) will > bring up the appropriate option to [Insert Table]. > > That was the CORRECT behavior. It didn't bring up the > [Insert Table] options on the first click while the > combo-box was still open. > > > Having explained that, now here's the solution for you: > > If you or your users only need the click once, then do not > open the list of combo-box. Simply comment the following line: > > -- PROPERTY ComboBox LISTOPEN 'TRUE' > > Now, if you click on the [Cancel] speed button, it will do > exactly what you are asking for. One single click on the > [Cancel] speed button will take care of the rest. > > Hope that explains! > > Enjoy those sample applications and make sure to have fun! > > Very Best R:egards, > > Razzak. > >
