12-09-2006, 09:28 AM
Hi
I am new to this forum so be gentle.
I am trying to write a quickbasic program using quickbasic for MAC ver 1.0b that will control my Home Brewery
I am programming this up on a MAC SE !
I need some help with the mouse calls/stuff.
What I want to do is have a screen with 5 buttons on it, each button would represent a device i would like to control (motor, pump, solenoid, etc..)
I would like to be able to select the button with the mouse and turn on or off these devices. I programmed with qbasic (MS) back in college but have lost touch with it.
I guess my question is, how can I tell if the mouse is over the button and if the button has been pressed. Once this is confirmed, I would then jump to a SUB that would output to the serial port and then out to an Analog/digital interface board. I have the serial interface stuff working fine, Just having trouble with the damn button selections with the mouse.
Any help would be greatly appreciated. and I will send you some homebrew!!!!
Thanks in Advance
I am new to this forum so be gentle.
I am trying to write a quickbasic program using quickbasic for MAC ver 1.0b that will control my Home Brewery
I am programming this up on a MAC SE !
I need some help with the mouse calls/stuff.
What I want to do is have a screen with 5 buttons on it, each button would represent a device i would like to control (motor, pump, solenoid, etc..)
I would like to be able to select the button with the mouse and turn on or off these devices. I programmed with qbasic (MS) back in college but have lost touch with it.
I guess my question is, how can I tell if the mouse is over the button and if the button has been pressed. Once this is confirmed, I would then jump to a SUB that would output to the serial port and then out to an Analog/digital interface board. I have the serial interface stuff working fine, Just having trouble with the damn button selections with the mouse.
Any help would be greatly appreciated. and I will send you some homebrew!!!!
Thanks in Advance