Solved

Change datawindow row color on mouse move in powerbuilder.

Posted on 2012-12-31
2
2,004 Views
Last Modified: 2013-01-08
I would like the rows to change color or highlighted when the mouse is moved over.
0
Comment
Question by:Placide
2 Comments
 

Author Comment

by:Placide
ID: 38733623
the rows highlighted on mouse move over
0
 
LVL 8

Accepted Solution

by:
virtuadept earned 500 total points
ID: 38755585
To do this, you would want to create a new "user event" on the datawindow control that would use the Event ID = "pbm_dwnmousemove".  This will let you capture the event when the mouse moves over the data window. That event will provide 3 arguments, xpos, ypos, row, and dwo.  So you could check "row" and if > 0 then set the Background.Color properties of the datawindow column objects on that row.

If you want this behavior to be on all datawindows in your application, then create a user object that inherits from "datawindow" that you will use instead of the basic datawindow on all of your forms. So instead of dropping "datawindow" controls on your forms, you would have a u_dw or some such user object and drop those on your forms and that way you can have an inherited level to control global behavior on all of your datawindow controls. Even better, take a look at the PFC (PowerBuilder Foundation Class) library which has a "u_dw" control with some great functionality already included.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
You can download the files for this tutorial here (https://www.dropbox.com/s/hgztzt9b60kddc9/DPS%20Demo.zip?dl=0). The .indd file in the InDesign files folder is a finished version of the file; you can start from scratch and work toward this. Also, …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question