[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] SV: some gem question

> From: Miro Kropacek [mikro@hysteria.sk]
> Sent: 2005-10-01 11:35:19 CEST
> I want to do some sliders in the dialog, i.e. I define "up", "down" and 
> slider objects.. there's no problem with moving (using that 
> arrows)/resizing the slider but trouble starts if I want to drag that 
> slider and move it up and down since whole event loop is blocked when I 
> press (for a longer time, let's say >2 seconds) mouse button...
> So I'm not able to catch mouse coordinates and even worse, I'm not able 
> to redraw slider in the realtime :( How this could be done? Using MU_M1 
> and MU_M2? Sorry If I ask for something really simple but I'm out of ideas..

You could try implementing a more multitasking-friendly version of graf_slidebox(). I did something similar for graf_watchbox(), where I looped around an evnt_multi()-call until the mouse-button was released. I then called my normal event-handler for all other events than button-events.

Jo Even