AnsweredAssumed Answered

vrf VEE7.5 & TabIndex

Question asked by VRFuser on Feb 9, 2006

This is an old problem created by MS in VB and perpetuated by everyone else.
In fact, there's really no such thing as a "tab index". The control order is the order they're listed in a .dlg or .rc file, or a template resource.
"Order" means "window creation order". The old dialog editors used to just swap the control definition order to change the tab index. The default tab handler looks for the next control "that is visible, not disabled, and has the WS_TABSTOP style [bit set]".

 

VB did things differently. "Order" meant something visual (in front, in
back) and not tab order, so TabIndex was introduced to tell the resource compiler what order to give the control in the .frx templates. The reason everything still has a TabStop is because the WS_TABSTOP bit is valid for all window types even if they're not going to be used for input.

 

You can still find form editors that work the old way, but VEE isn't one of them.

 

Find more information in the documentation for the functions:
CreateWindow
DialogBox (macro)
DialogBoxIndirect

 

An interesting historical perspective is at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/windowing/dialogboxes/dialogboxprogrammingconsideratio
ns.asp
(one line)
-SHAWN-

 

 

 

---
To subscribe send an email request to "owner-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

Outcomes