Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change datawindow row color on mouse move in powerbuilder.

Posted on 2012-12-31
2
Medium Priority
?
2,211 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
When designing and editing page layouts in inDesign, fonts can become messy without the help of paragraph styles. How many times have you re-read through a document you created and noticed a sentence in the middle of a paragraph happened to be a dif…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

971 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