Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 15 OCT 1999 02:59:34PM Jim Jones wrote:

I have a form with a button control that I do not want the user to accidentally tab to. When the user needs to click this particular button, I want them to make a deliberate move with the mouse to click the button. Is it possible to exclude a control from the tab order?

Thanks.

J.J.


At 15 OCT 1999 03:22PM Don Miller - C3 Inc. wrote:

J.J.

You can't exclude buttons from the TAB order, but you can make them behave as you want. For Example:

On the Read Event:

SET_PROPERTY(@WINDOW:".button_name","ENABLED",0) ;* disable button

… When all your fields are filled out

SET_PROPERTY(@WINDOW:".button_name","ENABLED",1) ;* allow the button

… you may have to do a little fiddling as you go through the prompts:

On the READ event:

@USER0=0

..then after each required prompt has been entered and validated,

@USER0+=1 ;* increment the count of successful things

if @USER0=nn (whatever the right number is) THEN

 SET_PROPERTY(@WINDOW:".button_name","ENABLED",1)
 SET_PROPERTY(@WINDOW:".button_name","FOCUS",1)
 return 1

end

HTH

Don Miller

C3 Inc.

You can also hide the button until you're ready to have it pushed.

Just be sure that you don't make this button the "Default" button or it may mess up this process.


At 15 OCT 1999 03:28PM Jim Jones wrote:

Thanks for your response Don.

How can I identify if the button 'click' was from the mouse or the keyboard?

Thanks again.

J.J.


At 15 OCT 1999 03:56PM Don Miller - C3 Inc. wrote:

You probably can't - to windows it's just an event on a button control. You might be able to trap the mouse on the create prompt and then use the WINMSG event to detect this, but I'm not sure whether this will work. We've used this technique to provide double-click on an EditLine control (which doesn't offer it), but I'm not sure whether it will work on a push button (although it should).

Don Miller


At 16 OCT 1999 10:32AM akaplan@sprezzatura.com - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:

Don't mean to step on Don't toes, but you can remove the buttons from the tab order. The PREVIOUS and NEXT properties tell PS what the tabbing order is. You'll need to modify these values in the form's create event. Just have the last real control have a NEXT of the first control, and the first have a PREVIOUS of the last. If you skip over the buttons, they won't be in the tab order any longer.

akaplan@sprezzatura.com

Sprezzatura Group

www.sprezzatura.com_zz.jpg

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/cd9beb4d29721e048525680b006854ee.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1