Solved

Change datawindow row color on mouse move in powerbuilder.

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The ability to automatically add page numbers to a layout is one of the many easy, convenient features InDesign has to offer. There are many reasons why you would want to automatically generate page numbers in your next project, so whether it’s a ma…
Have you ever wanted to create graphical elements directly in inDesign? This tutorial will teach you how to have an image bound within text using the pathfinder tool in inDesign CS6. This technique will help decrease the amount of time spent opening…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Learn how to automatically add page numbers in your next InDesign project. This can be very helpful in multi-page books and magazines that you are designing. Make sure your Pages window visible.:  In the document you wish to add page numbers to. Act…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now