Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 MAR 1998 11:24:53AM Don Bakke wrote:

Will someone confirm if WINMSG works with BITMAP and STATIC controls? I've QUALIFIED various messages several controls on my form but all the BITMAP and STATIC controls seem to ignore them and WINMSG never gets fired.

Any ideas? Thanks,

[email protected]

SRP Computer Solutions


At 10 MAR 1998 04:10PM Blaise (Revelation) wrote:

Hi Don,

What messages did you try to qualify? Some controls cannot handle specific events. For example, a bit map will not be able to handle a LOSTFOCUS or GOTFOCUS event because it can never have focus.

Let me know…

-Blaise


At 10 MAR 1998 05:23PM Don Bakke wrote:

Hi Blaise,

What messages did you try to qualify?

They are WM_MOUSEMOVE and WM_SETCURSOR. Here are the actual statements:

call Send_Message(@Window:".BITMAP_2", "QUALIFY_EVENT", "0x0020", 1)

call Send_Message(@Window:".BITMAP_2", "QUALIFY_EVENT", "0x0200", 1)

call Send_Message(@Window:".TEXT_1", "QUALIFY_EVENT", "0x0020", 1)

call Send_Message(@Window:".TEXT_1", "QUALIFY_EVENT", "0x0200", 1)

Thank you for checking on this for me,

[email protected]

SRP Computer Solutions


At 10 MAR 1998 06:46PM Blaise (Revelation) wrote:

Don,

If you look at the Examples application and launch form designer. There is a form called 'EXAMPLE_MAIN'. In the WINMSG script there is code that works with the MOUSE_MOVE event and a bitmap. You might want to run the form first and see what it does.

Let me know if this is what you are looking for.

Good Luck..

-Blaise


At 10 MAR 1998 09:13PM Don Bakke wrote:

Blaise,

I had already looked at the example, but if you check it you'll see that the bitmap isn't qualified…just the window. The code simply checks the position of the mouse cursor to see if it is floating over the bitmap area and then does its thing. This is not a very adequate solution when I want to work with multiple bitmap objects.

I just need to know if bitmap and static controls themselves are able to work with these messages or if there is something wrong with WINMSG with regards to these controls.

Thanks,

[email protected]

SRP Computer Solutions


At 11 MAR 1998 11:10AM Blaise (Revelation) wrote:

Don,

I don't think a BITMAP can handle the MOUSE_MOVE event, but…there's always a but. Take a look at the 'HTML Publishing' form that is called from Form Designer. If you drag the mouse over 'Compile HTML Page','View HTML Page', and 'Close', you will see the bitmap change. These 'images' are just buttons that resemble BITMAPS that use the MOUSE_MOVE event.

The answer to your question about something being wrong with WINMSG is, No. The question is really what controls can handle specific events.

Let me know if you can use this button bitmap work around…

Good Luck

-Blaise


At 11 MAR 1998 08:54PM Don Bakke wrote:

Blaise,

Let me know if you can use this button bitmap work around…

Well it's a clever approach, but ultimately it doesn't work because I'm doing more than just detecting mouse movements. I'm also detecting button down and button up but the normal behavour of a button interferes with this. However, since you did confirm that BITMAPs can't pass these messages I'll go with the approach used in the EXAMPLE application.

Thanks for your help,

[email protected]

SRP Computer Solutions

P.S. How does the HTML Publishing form create those preview images of the normal forms?

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/5414b07b50f03a41852565c30054ad36.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1