Discuss topics that apply across the products, such as the PocketC language, or development in general

Postby c-garette on Sat Jul 02, 2005 5:06 pm

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
Posts: 1
Joined: Sun Jun 19, 2005 8:52 pm

Postby mgreen on Sun Jul 03, 2005 4:52 pm

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.
Michael Green
Posts: 72
Joined: Fri Mar 14, 2003 9:40 pm
Location: USA

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest