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!

vertical scroll position

Status
Not open for further replies.

dynamicjourney2001

Programmer
May 15, 2003
30
US
Hi,
Im wondering how come a datawindow doesn't scroll to the appropriate column position when using Tab Key. I tried running our other system and it seems to be working. But when I created a datawindow with lengthy columns and when I use tab key to navigate thru columns, the datawindow doesn's scroll.
LiveScroll and VerticalScroll property is True.
I compared it with the working one and all properties appears identical.
Any inputs would be appreciated.
have fun!

 
I am facing problems with the vertical scroll event as well.
I am trying to get the currentrow in the datawindow after the user has scrolled. The GetRow function always seems to be returning a 1, no matter which row has been scrolled to.

Any explanations? I am using PB 6.5

Cheers!
Abhijit
 
Simpling using the vertical scrollbar does not actually change the currently focussed row unless you click on a different row or use the ScrollToRow()/SetRow() functions. You may query the:

dw.Describe( "DataWindow.FirstRowOnPage" )

to get the row number of the first row displayed on the dw, instead. I'm sure you are looking for this value.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 

SOrry, i forgot to mention that, there's only one row, the dw is freeform and with scroll since the dw has alot of columns to hold. I believe I mentioned scrolling to proper column, sorry if my question is not clear.
Im trying to use the Tab key and when the column is below the height of dw, it sets the focus to the proper column(as per taborder) but the Vertical scroll doesn't scroll.
There is suppose to be no script and no special treatment for it since PBhandles or WIndows handles it.
I tried it in our other system and it seems to be scrolling fine(no scripts).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top