Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Advanced PowerBuilder

HomePrevious Lesson: Resetting Update Status of All Rows
Next Lesson: DataWindow Update Properties

Powering up the UP Arrow Key in the DataWindow

Does PowerBuilder takes to the last row when the user press up arrow key while the focus is on the first row? No, it doesn't. If you need that functionality, then you need to write the code for it.

Declare a user-defined event 'Ue_TabUpOut' and map it to pbm_dwnTabUpOut event id and write the following code.
// Object: dw_product
// Event:  Ue_TabUpOut
IF this.GetRow() = 1 THEN
   this.SetRow( this.RowCount())
   this.ScrollToRow( this.RowCount())
END IF

Note that, this code doesn't work if the focus is in a column that has DDDW edit style and user press up arrow key. This code also works perfectly when you remove the IF condition from the code.
HomePrevious Lesson: Resetting Update Status of All Rows
Next Lesson: DataWindow Update Properties

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com