Page 1 of 1

PostPosted: Sat Jul 02, 2005 5:06 pm
by c-garette
Hey Coders!:)
I want to use button in PocketC, but I can?Ǭ¥t catch the event from the button. I want have some function like OnButtonDown for example. The App should do something, when Button is pressed. Windows 9x & Co is much easier. There?Ǭ¥s a function WndProc. Please help me!!! Tnx

PostPosted: Sun Jul 03, 2005 4:52 pm
by mgreen
Pocket C doesn't integrate the Palm GUI as much as some other development systems available for the PalmOS. If you want to keep to Pocket C, use the excellent PToolboxLib library which you can get through this website. You still have to do the event loop yourself, but the details are much simpler than if you do it yourself. If you want more of a high level, use something like OrbForms which does most of the work for you, but requires a Windows computer.

There are excellent sample programs that show button use that come with Pocket C and PToolboxLib. Look at them and try them. Typically, they have a case statement with an entry for each button. You can call your own OnButtonDown function from there.