help me on GUI question, please!
Posted: Wed Nov 29, 2006 6:54 am
guis I would like to understand how to do it...
I´m trying to create a gui interface to my o.s. digo´s.
I got ps2mouse working very simple
how do I can click on button " test" for example ?
right now I got a loop
exit=false;
while (!exit) do {
if mouse.button(1) and mouse.x >... and mouse.x < ...
{
mouse_hide();
button(x,y,x2,y2, press);
delay_ms(20);
button(x,y,x2,y2, not_press);
mouse_show();
}
}
with this simple example, when you click on that button test the mouse disapper "hide " and then it shows. I saw in so many example on internet
that when user click on button, the mouse doesn´t hide. looks like windows / linux.... how do I to that ? could anyone give some help ?
please
I´m trying to create a gui interface to my o.s. digo´s.
I got ps2mouse working very simple
how do I can click on button " test" for example ?
right now I got a loop
exit=false;
while (!exit) do {
if mouse.button(1) and mouse.x >... and mouse.x < ...
{
mouse_hide();
button(x,y,x2,y2, press);
delay_ms(20);
button(x,y,x2,y2, not_press);
mouse_show();
}
}
with this simple example, when you click on that button test the mouse disapper "hide " and then it shows. I saw in so many example on internet
that when user click on button, the mouse doesn´t hide. looks like windows / linux.... how do I to that ? could anyone give some help ?
please