Page 1 of 1

Graphical Interface

Posted: Sun Nov 07, 2010 6:50 am
by flukiluke
Hello all
I want to add GUI interface to a program I'm working on, preferably with mouse support. What is the best (and fastest) way to create the different screens, add buttons etc? The mouse itself is not too much of a problem. I am using QB4.5. Any help would be greatly appreciated. Thanks!

Posted: Sun Nov 07, 2010 8:40 am
by burger2227
Fastest way is to get the mouse working and print the mouse coordinates so that you can locate the button coordinates. You could also set a click to PSET a pixel when a mouse button is clicked. So you can map the screen.

If you are using a graphics screen use LINE to make the button boxes. Then record the top left corner and bottom right corner positions you would like. The LINE code will tell you the area where a click would "press" the button.

Ted

Posted: Mon Nov 08, 2010 12:47 am
by flukiluke
burger2227,
Thankyou so much for your idea. I will try it out straight away.