View Full Version : Menu i PPL
Kaare
07-23-2007, 10:54 PM
Hi
I have a simpel quistions/problem that I cant handle.
My first project in PPL will be my own pocketpc menu that connect to other applications on my pocketpc eg. notes, calender and so.
I have made the menu in the Gui interface in PIDE and thought this should be easy to connect a funktion like OnClick when the bitmap in the menu is activated.
I have searched for this for several hours and hope someone can help me.
Best Regards
PointOfLight
07-24-2007, 04:30 PM
When you say "menu", do you mean that you used the Menu Editor option for the form, you created a series of buttons to use for the menu, or you created bitmap objects to use for the menu?
If you created the menu using the Menu Editor option, then just right click on the form and select the "Code..." option from the menu.* You should see an OnClick function for each menu item.
If you used button objects, simply doube-click on the button you what to set up an event for, and it will create an OnClick event for you.
If you used bitmap objects, highlight the bitmap.* In the Properties tab on the right hand side of the PIDE, make sure the SS_NOTIFY option is checked.* Then, in the Events tab, double click on the OnClick event.
Kaare
07-24-2007, 07:54 PM
Hi
Thanks for your reply.
I have made som bitmaps-buttons that I would like to activate some other programs on my ppc when pushed.
Do you have a simpel code exampel?
;o)
PointOfLight
07-24-2007, 11:01 PM
I have attached a quick example showing how to use bitmaps to launch executables.* This works on both a Windows NT machine and my Dell Axim X5. [br]1185318070_49_FT6006_bitmapmenu.zip
Kaare
07-25-2007, 06:23 AM
Thanks for the code.
Waw it is over 2000 lines of code - I have wished for something simpler :o)
When I load this I cant see the bitmaps in the form view in the projects - is that a bug in v1.25?
PointOfLight
07-25-2007, 12:40 PM
Are you loading the project?* The code I added is only about 20-30 lines, but if you're looking at the file generated by PPL it will be a lot bigger.* The bitmaps will not show in the IDE because I load them at runtime.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.