GLBasic forum

Main forum => Bug Reports => Topic started by: Hemlos on 2012-Jul-11

Title: FILEREQUEST$ and MOUSEAXIS[3,4]
Post by: Hemlos on 2012-Jul-11
When my program(window mode, not tested fullscreen) calls FILEREQUEST$, the mouse buttons are pressed to open this command.
As usual the main window disappears and loses focus, then the next focus is on the dialog file window.
When you click cancel or ok, the focus is returned to the main program window, proper.

This is when the problem happens, MOUSEAXIS[3,4], do not update with the proper information when the focus is returned to the program.
The program thinks the mouse buttons are still pressed, and the only way i know how to get around this, is by clicking the mouse again.

This is a problem unknown to the program, and therefore is certainly bug.

One other observation about filerequest..
On first call to filerequest, the window disappears, however, not 2nd 3rd etc, it remains visible.
Title: Re: FILEREQUEST$ and MOUSEAXIS[3,4]
Post by: mentalthink on 2012-Jul-11
Yes Hemlos when you use filerequest if you don´t use full screen, don´t works fine, disappears the current screen, for a moment and after you can choose cancel or ok, whit setscreen correctx, correcty true runs fine...

This it´s from a long time ago...
Title: Re: FILEREQUEST$ and MOUSEAXIS[3,4]
Post by: Hemlos on 2012-Jul-11
Im not sure i understand what you are saying..
setscreen fixes mouseaxis problem?
Title: Re: FILEREQUEST$ and MOUSEAXIS[3,4]
Post by: mentalthink on 2012-Jul-12
No hemlos, sorry, I reply to this:

When my program(window mode, not tested fullscreen) calls FILEREQUEST$, the mouse buttons are pressed to open this command.
As usual the main window disappears and loses focus, then the next focus is on the dialog file window.

If it´s full Screen runs fine.
Title: Re: FILEREQUEST$ and MOUSEAXIS[3,4]
Post by: Hemlos on 2012-Jul-12
ah ok thanks for the extra info for this report.