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!

Tabbing between datawindows

Status
Not open for further replies.

garyvugelman

Programmer
Jul 18, 2003
11
US
Hey everyone!

I have two datawindows on my window( dw_1 and dw_2 ). Columns on both datawindows have tab orders. When the cursor is on the last column on dw_1 and I click "tab", how can I make the cursor go to the column on dw_2???

Thanks in advance...
 
You may like to tab to dw_2 when the user presses the Tab key from the last column on the last row of dw_1. Simply declare a user event ue_KeyDown and map it to PBM_DWNKey on dw_1 and script it as under:

IF key = KeyTab! THEN
//
IF GetRow() = RowCount() THEN
//
IF GetColumnName() = "..." THEN
dw_2.SetFocus()
dw_2.SetColumn( ... ) // Optional
END IF
//
END IF
//
END IF

You may also like to code similarly on dw_2 to tab to dw_1.


---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top