View Single Post
  #26 (permalink)  
Old 06-02-2008, 10:27 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,902
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Offbeatmammal View Post
I can't work out a way to put the control somewhere specific in the tab order
Code:
' for a built-in control
 Obj1.FromControl( "ctlname") or Obj1.
 Obj1.SetProperty ("TabIndex",  tabpos )
' for a library control
 Obj1.FromControl( ctl.ControlRef) or Obj1.value = ctl.ControlRef
 Obj1.SetProperty ("TabIndex",  tabpos )
Obj1 is a Door library Object, tabpos 0 is first in tab order increasing after that. Note that if you don't set a unique TabIndex for all the tabbable controls on a form you may get some odd behaviour when tabbing through the controls due to duplicate TabIndex values.

Quote:
is there a way to format the ControlsEx date picker the same way?
I presume you mean the ControlsExDevice library not the ControlsEx library. Doesn't the ShowUpDown property do what you want?
Reply With Quote