1. Daniel Agudelo
  2. PowerBuilder
  3. Thursday, 27 February 2020 17:15 PM UTC

Hi Guys,

Again me haha, this time is about the mouse events of a picture button control, i'm using a picture button for change the look style, but i have a little problem and i'm seen that with those buttons the effect when the mouse is captured isn't works like already happen with the command buttons normaly.

i attached a video with an example of this case

regards and thanks for all helps that you'll can to give me.

PD: currently, i'm coding an event with the event id: pbm_nchittest and this event is capturing when the mouse is hover for the button, but i don´t know what's the opposite event for that

References
  1. https://youtu.be/K6pEv1HGP6M
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 27 February 2020 19:16 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Daniel -

The PictureButton control contains a PowerTipText property (it's located near the bottom of the Properties tab in the Window Painter). Does this not do what you need?

If not, prior to the addition of tooltip properties in many controls, Aart Onkenhout published a tooltip non-visual object, and it worked pretty well. It is still available on the web:

http://pbsite.milente.nl/

Click on the "PB Tips" sidebar item, then the "Adding Tooltips to Controls" topic (3rd from the bottom). You'll want the PB Version 10 (i.e., Unicode) version.

If that still isn't what you need, you might consider looking into the TrackMouseEvent Windows API function. Roland Smith's TopWizProgramming web site has a free code example called DWGridXP that utilizes this API.

Good Luck!
John

Comment
There are no comments made yet.
Brad Wery Accepted Answer Pending Moderation
  1. Thursday, 27 February 2020 18:01 PM UTC
  2. PowerBuilder
  3. # 2

Make sure the Windows Classic Style checkbox in your project painter is unchecked, and the Use Windows Classic Style on XP in System Options is unchecked:

 

Comment
  1. Daniel Agudelo
  2. Friday, 28 February 2020 21:36 PM UTC
Hi Brad,

Thanks for reply. i checked that and my app hasn't those options.

Regards
  1. Helpful
  1. Brad Wery
  2. Friday, 28 February 2020 21:46 PM UTC
What version of PB are you using?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.