Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cantura Keyboard functions

Status
Not open for further replies.

Angel10

Programmer
Nov 11, 2002
2
GB
Does anybody out there know of a way for me to tell a datafield to disappear and a different one to reappear when the space bar has been pressed. Cant find any functions that tell the app to do that, but sure there must be a way...
Thanks
Angel
 
I'm not sure if this is exactly what you are looking for, but here is one method. Both datafields need to be editable and df2 starts as not visible with the focus on df1.

Data Field: df1
Message Actions
On SAM_AnyEdit
If MyValue = ' '
Call SalHideWindow( hWndItem )
Call SalShowWindow( df2 )
Call SalSetFocus( df2 )
Set MyValue = ''
Data Field: df2
Message Actions
On SAM_AnyEdit
If MyValue = ' '
Call SalHideWindow( hWndItem )
Call SalShowWindow( df1 )
Call SalSetFocus( df1 )
Set MyValue = ''
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top