You are currently browsing the post archives for August 2011.

PowerBuilder – Grid datawindow object with variable number of columns

Posted on August 17, 2011 at 8:20 pm in

Here is a way to build a grid datawindow which contains columns corresponding to an unknown number of data elements. You could use this approach in creating a project schedule, inventory location system, baseball box score, or any number of other examples. My example assumes the minimum number of columns to be four. This create…

PowerBuilder – Grid datawindow object with variable number of columns - the full story »

PowerBuilder – Selecting and scrolling to an entry in a Listview control

Posted on August 17, 2011 at 8:20 pm in

The listview control in PB lacks the capability to scroll to a highlighted item within the native Powerscript. Here is an easy way to do this by simulating key strokes. First declare the following API subroutine. keybd_event( int bVk, int bScan, int dwFlags, int dwExtraInfo) Library "user32.dll" Next create a user event in the listview…

PowerBuilder – Selecting and scrolling to an entry in a Listview control - the full story »

Top