Nice Form ver 4.1 build 946

Software technical issues not related to any of the other categories

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Chris
Valued Contributor
Posts: 43
Joined: Wed Oct 25, 2006 5:54 pm

Nice Form ver 4.1 build 946

Post by Chris » Thu Mar 20, 2008 2:11 pm

Hi

Is there a way in Nice Form ver 4.1 to duplicate the action "move focus to object" that is available in version 5?

Thanks

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2988
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Post by Saso » Thu Mar 20, 2008 3:14 pm

Hi Chris,

The workaround could be to use a VBscript action on the button that will send the sufficient number of 'Tab' key presses to NiceForm.

Each 'Tab' will move the focus to the next object in the order. You can set the order of objects, so you can count the number of 'Tab's you need to reach the required object.

The problem might be, if the focus is put to the table object. Once the table is active, you cannot move the focus out of it.
Saso Fleiser
Senior Technical Product Specialist

Chris
Valued Contributor
Posts: 43
Joined: Wed Oct 25, 2006 5:54 pm

Post by Chris » Fri Mar 21, 2008 1:42 pm

Could you show me a exemple of the TAB script?

Thanks

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2988
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Post by Saso » Fri Mar 21, 2008 2:56 pm

This VBscript sample will "press" the Tab key twice. The focus will move from the button to the object two places away in the tab order.

Code: Select all

Dim objShell
Set objShell = CreateObject("WScript.Shell")

objShell.SendKeys("{TAB}"&"{TAB}")
Also see the VBscript help topcis on the command SendKeys, if you want to send some other special key as well (for example: cursors, function keys, page up, page down and similar).

To change the tab order for the objects, select Design -> Tab Order in the NiceForm designer.
Saso Fleiser
Senior Technical Product Specialist

Chris
Valued Contributor
Posts: 43
Joined: Wed Oct 25, 2006 5:54 pm

Post by Chris » Fri Mar 21, 2008 7:50 pm

Thanks Saso

Post Reply