on mouseUp doesn't fire when screen is maximized

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

on mouseUp doesn't fire when screen is maximized

Post by simon.schvartzman » Fri Aug 14, 2020 7:30 pm

Hi gurus, this is probably a very basic question (that's why I'm posting on Complete Beginners even though I have been LC coding for a few years now but mostly on mobile)...

I have this card with several buttons where everything works fine (on Mac) as long as the card size is kept to the original dimensions used at design time. As soon as the card is resized (by maximising it for instance) and even though the buttons remains in the same relative position to the card's top, left then the messages (mouseUp, etc) are never trigger (obviously because of a position mismatch).

I'd assume there should be an easy way to deal with this common situation but wasn't able to find it myself.

Many thanks in advance
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: on mouseUp doesn't fire when screen is maximized

Post by FourthWorld » Fri Aug 14, 2020 7:35 pm

I have not seen this. Let's diagnose, starting with the basics:
- LC version
- OS version
- Do you have an example stack you can post showing this behavior?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: on mouseUp doesn't fire when screen is maximized

Post by simon.schvartzman » Fri Aug 14, 2020 8:11 pm

HI Richard, many thanks for your prompt response.

Answers below (and stack attached)

- LC version: 9.6.1 (rc 2)
- OS version: macOS Mojave V10.14.6
- Do you have an example stack you can post showing this behavior?: attached

Looking forward for your ideas...

Thanks
Attachments
WhereAmI.livecode.zip
(843 Bytes) Downloaded 158 times
Simon
________________________________________
To ";" or not to ";" that is the question

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3998
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: on mouseUp doesn't fire when screen is maximized

Post by bn » Fri Aug 14, 2020 9:17 pm

Hi Simon,

it works for me. I expanded the stack, maximized it etc.

The only difference in my setUp is that I used 9.6.1 (rc 1).

Baffled.

Kind regards
Bernd

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: SOLVED on mouseUp doesn't fire when screen is maximized

Post by simon.schvartzman » Fri Aug 14, 2020 9:28 pm

Found/Solved it...

It was my Display Settings...

When I use "Default for Display" it works fine..

If I use s "Scaled" setting 1024 x 640 then it doesn't....

Not sure if it is to be expected or is a bug...
Simon
________________________________________
To ";" or not to ";" that is the question

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3998
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: on mouseUp doesn't fire when screen is maximized

Post by bn » Fri Aug 14, 2020 9:40 pm

At 1024 x 640 I see the problem you describe.

My default is 1680 x 1050.

All other resolutions work fine: 1280 x 800, 1440 x 900, 1920 x 1200.

I use a 15" retina MacBook Pro.

Kind regards
Bernd

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

SOLVED on mouseUp doesn't fire when screen is maximized

Post by simon.schvartzman » Fri Aug 14, 2020 9:52 pm

Somehow I'm glad you experiencing the same issue...

Do you think I have to report it as a bug?
Simon
________________________________________
To ";" or not to ";" that is the question

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3998
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: SOLVED on mouseUp doesn't fire when screen is maximized

Post by bn » Fri Aug 14, 2020 9:58 pm

simon.schvartzman wrote:
Fri Aug 14, 2020 9:52 pm
Do you think I have to report it as a bug?
I am not sure. When I wanted to switch to 1024 x 640 a dialog popped up asking if I really wanted to do that. All other changes were without dialog. So it seems to be an odd resolution.

Maybe report it so if anybody runs into the problem he can find the bug report. Whether that would get fixed is another story.

Kind regards
Bernd

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

SOLVED Re: on mouseUp doesn't fire when screen is maximized

Post by simon.schvartzman » Sat Aug 15, 2020 3:33 pm

For further reference the behaviour was reported on the quality forum

https://quality.livecode.com/show_bug.cgi?id=22867

Regards
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”