[Minor BUG] UserDialogBoxMorph pop up in upper left corner

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Minor BUG] UserDialogBoxMorph pop up in upper left corner

Karl Ramberg
It can seem like when UserDialogBoxMorph inform: 'Some info' is called, it is most often from a block and then the hand position is wrongly interpreted to be in the upper left corner.

This is no big deal, just a little quirk.

Karl



Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

marcel.taeumel (old)
Hmm... the dialog uses the hands current position. Do you refer to the Squeak update? I noticed this little glitch, too...

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Karl Ramberg
Yes, specially the update notification is allways in the upper left corner,

Karl

On Thu, Apr 16, 2015 at 1:27 PM, Marcel Taeumel <[hidden email]> wrote:
Hmm... the dialog uses the hands current position. Do you refer to the Squeak
update? I noticed this little glitch, too...

Best,
Marcel



--
View this message in context: http://forum.world.st/Minor-BUG-UserDialogBoxMorph-pop-up-in-upper-left-corner-tp4819908p4819925.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.




Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

marcel.taeumel (old)
I used "Sensor cursorPoint", which fixes that problem.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Karl Ramberg
Hi, that seems to work :-)

Karl

On Thu, Apr 16, 2015 at 2:12 PM, Marcel Taeumel <[hidden email]> wrote:
I used "Sensor cursorPoint", which fixes that problem.

Best,
Marcel



--
View this message in context: http://forum.world.st/Minor-BUG-UserDialogBoxMorph-pop-up-in-upper-left-corner-tp4819908p4819933.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.




Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

timrowledge
In reply to this post by marcel.taeumel (old)

On 16-04-2015, at 5:12 AM, Marcel Taeumel <[hidden email]> wrote:

> I used "Sensor cursorPoint", which fixes that problem.

I’d be very careful with that if I were you. That completely messes up a lot of event stuff like waitForClickOrDrag: I had soooooo uch fun late last year on the Pi Scratch work because of that.

Honestly - all that old stuff ought to be removed completely. It’s bad news.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: WFL: Wave FLag



Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Karl Ramberg
This change is for when the UI wakes up after fileing in / compiling  updates.
The active mouse is not receiving events and it reports wrong position.

An alternative could be to pop up the UserDialogBoxMorph in the middle of the screen.

Karl

On Thu, Apr 16, 2015 at 6:48 PM, tim Rowledge <[hidden email]> wrote:

On 16-04-2015, at 5:12 AM, Marcel Taeumel <[hidden email]> wrote:

> I used "Sensor cursorPoint", which fixes that problem.

I’d be very careful with that if I were you. That completely messes up a lot of event stuff like waitForClickOrDrag: I had soooooo uch fun late last year on the Pi Scratch work because of that.

Honestly - all that old stuff ought to be removed completely. It’s bad news.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: WFL: Wave FLag






Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Chris Muller-3
On Thu, Apr 16, 2015 at 12:01 PM, karl ramberg <[hidden email]> wrote:
> This change is for when the UI wakes up after fileing in / compiling
> updates.
> The active mouse is not receiving events and it reports wrong position.
>
> An alternative could be to pop up the UserDialogBoxMorph in the middle of
> the screen.

Or pop open the "Help | About" window, which reports the update number
by default.  Seems little difference if the user has to click "Ok"
button or an "X" button, but it provides more information and solves
this problem too...

Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Chris Muller-3
On Thu, Apr 16, 2015 at 2:06 PM, Chris Muller <[hidden email]> wrote:

> On Thu, Apr 16, 2015 at 12:01 PM, karl ramberg <[hidden email]> wrote:
>> This change is for when the UI wakes up after fileing in / compiling
>> updates.
>> The active mouse is not receiving events and it reports wrong position.
>>
>> An alternative could be to pop up the UserDialogBoxMorph in the middle of
>> the screen.
>
> Or pop open the "Help | About" window, which reports the update number
> by default.  Seems little difference if the user has to click "Ok"
> button or an "X" button, but it provides more information and solves
> this problem too...

... and it doesn't _require_ the user to click "X" button before they
can gain control back from the system (whereas the modal solution does
require a click on "OK").

Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

marcel.taeumel (old)
In reply to this post by timrowledge
Having "Sensor cursorPoint" there is completely safe. Yes, it is slow because it goes down into the VM to get that value. However, normal event processing should not be affected at all.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Bert Freudenberg
On 16.04.2015, at 12:37, Marcel Taeumel <[hidden email]> wrote:
>
> Having "Sensor cursorPoint" there is completely safe.

Nope, it's not safe.

> Yes, it is slow because
> it goes down into the VM to get that value. However, normal event processing
> should not be affected at all.

That's not what it does. It throws away all currently buffered events except keyboard events. Like window close events, file drop events, everything gets flushed before Morphic gets a chance to see it.

That's because "Sensor cursorPoint" is supposed to be used from MVC, which can't deal with these types of events anyway.

- Bert -




smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Minor BUG] UserDialogBoxMorph pop up in upper left corner

Karl Ramberg
In reply to this post by Chris Muller-3
A non modal display of this info would be nice. I could act much like a menu, one you click anywhere it would disappear. 

Karl

On Thu, Apr 16, 2015 at 9:06 PM, Chris Muller <[hidden email]> wrote:
On Thu, Apr 16, 2015 at 12:01 PM, karl ramberg <[hidden email]> wrote:
> This change is for when the UI wakes up after fileing in / compiling
> updates.
> The active mouse is not receiving events and it reports wrong position.
>
> An alternative could be to pop up the UserDialogBoxMorph in the middle of
> the screen.

Or pop open the "Help | About" window, which reports the update number
by default.  Seems little difference if the user has to click "Ok"
button or an "X" button, but it provides more information and solves
this problem too...