Solved

Change datawindow row color on mouse move in powerbuilder.

Posted on 2012-12-31
2
2,041 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Recommendation vb6 to vb.net or others 14 178
Visual Studio 2013 and Eclipse Neon 6 52
Upload video to Youtube 2 28
difference between sorce folder and folder in eclipise 3 29
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

821 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