Turning on the lights

2001-08-16 Thread Johnathan Smith
Ok. I have two buttons on my form. One is the about button and the other on a clear button that I would like to make the palm light go on with. If I click on the about button the about form popups up. but if I click on the clear button (which should only turn the light on or off) the about form

RE: Turning on the lights

2001-08-16 Thread Avilla, Dane
I think you might need a break before case menuEvent: Probably what is happening is that the event is falling through your ctlSelectEvent case statement, and then continues on through the menuEvent case, where MainFormDoCommand is called. I would guess that MainFormDoCommand just pops up the

Re: Turning on the lights

2001-08-16 Thread Jeff Wheeler
switch (eventP-eType) { case ctlSelectEvent: UInt16 ctrlID = eventP-data.ctlSelect.controlID; ControlPtr ctrlPtr= eventP-data.ctlSelect.pControl; if (ctrlID == MainAboutButton) { snip } if (ctrlID == MainClearButton) { snip } case menuEvent: return

Re: Turning on the lights

2001-08-16 Thread Michael S. Davis
On Thu, 16 Aug 2001, Johnathan Smith wrote: Ok. I have two buttons on my form. One is the about button and the other on a clear button that I would like to make the palm light go on with. If I click on the about button the about form popups up. but if I click on the clear button (which

RE: Turning on the lights

2001-08-16 Thread Johnathan Smith
thank for your help if you would like to im me my name is redhatpusher --- Avilla, Dane [EMAIL PROTECTED] wrote: I think you might need a break before case menuEvent: Probably what is happening is that the event is falling through your ctlSelectEvent case statement, and then continues