Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Mouseclick problem when using save/open file dialog

Author
Message
Scotty1973
AGK Backer
13
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 3rd Feb 2014 17:24
Hi all

I have encountered a strange problem with mouseclick().

My program works fine until I use either the Open file dialog or save file dialog commands, then the next time I click the mouse ie left click(which will return 1 in mouseclick()), mouseclick() will still return 1 even when the mouse button is not being pressed. It causes my program and this programmer a right headache lol.

I've tried this on both my desktop and laptop computers with the same result.

If I can not get this sorted I will have to use a work around and not use the save/open file dialog commands.

Thanks

Scotty
ShellfishGames
12
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 3rd Feb 2014 18:16
Could you provide a small example code?

Quote: "My program works fine until I use either the Open file dialog or save file dialog commands, then the next time I click the mouse ie left click(which will return 1 in mouseclick()), mouseclick() will still return 1 even when the mouse button is not being pressed."


I'm not quite sure if I understand the problem correctly.

For instance, this code works just fine for me:



But I believe opendialog is a BlueGUI command. Not sure where "open file dialog" comes from, the command doesn't highlight in my IDE and it doesn't compile either, so maybe it's just a problem of whatever plugin is responsible.

Scotty1973
AGK Backer
13
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 3rd Feb 2014 19:29
Hi Shellfishgames

Sorry it was me being silly ops.

It was to do with a screen update function and I thought it was mouseclick() as the screen text was not updating.

Thanks for your input.

Scotty
ShellfishGames
12
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 4th Feb 2014 00:46
Quote: "Sorry it was me being silly ops.
"


Yeah, I've been there. Happens to me a lot actually.

luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 4th Feb 2014 04:12
Sometimes i search for something for hours and just when i give up and decide to post in the forums it happens to find the problem by accident.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2025-05-16 03:17:47
Your offset time is: 2025-05-16 03:17:47