Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Bottom menu

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 08:19 PM
Junior Member
 
Join Date: Jun 2007
Location: Mexico
Posts: 13
Question Bottom menu

Hi all! I'm at this and I'm checking b4ppc features and capabilities in order to use it for my first ppc app.

I'm interested on building an app that use the bottom menu bar (the one that has the SIP indicator) which for what I read on MSDN it is created on VB with "Me.Menu = New MainMenu()" and on C# with "this.Menu = new MainMenu();"

Is this available on b4ppc? if so, how?

to be honest, I haven't tried at all, I'm still on research and learn mode but on a quick documentation/forum review couldn't find any references to something like this.
Reply With Quote
  #2 (permalink)  
Old 06-24-2007, 09:20 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Welcome Zemog,

B4PPC has it's own menu which you create using the Form designer. Items can also be added during runtime though if needed.
You could also check out the ToolBar library, I've not used this myself yet but it might be exactly what your looking for.

Regards,
RandomCoder.
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #3 (permalink)  
Old 06-24-2007, 10:58 PM
Junior Member
 
Join Date: Jun 2007
Location: Mexico
Posts: 13
Lightbulb Hmmm... not quite the same

Thank you randomcoder for your quick reply.

As you suggested I've checked the toolbar lib, but it is not quite what I'm looking for. It seems to me that the menu is more a standard .Net CF object.

I'd like to use that to be able to take advantage of the soft buttons on some devices, and it looks to me that the OS adjusts the bar depending on the presence of those buttons.

Take a look at an application (spbFinance) that uses the bottom menu. Notice how its shown on each device, the Jornada doesn't have soft buttons while the htc wizard does. Perhaps it is due to the fact that the former runs on PPC 2003 OS and the latter on WM5.



So, in the HTC Wizard, the menu options can be selected either with the stylus or with the soft buttons, which is great for single hand operation
Reply With Quote
  #4 (permalink)  
Old 06-25-2007, 01:52 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Welcome Zemog
This is done by the OS.
If your menu includes two items, WM5 (and WM6) devices will allow selection using the buttons.
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 03:10 AM
Junior Member
 
Join Date: Jun 2007
Location: Mexico
Posts: 13
Default

Great! thank you Erel!

So, if I understand you right, if I make a menu with just two items, the os will show it on the bottom.

I will try it later, my development pc is busy now

Hmmm... and why on the ppc 2003 it also appears on the bottom instead of the top?
Reply With Quote
  #6 (permalink)  
Old 06-25-2007, 07:24 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

In the IDE the menu items apear on TOP but in run time they apers on BOTTOM...I think that this is what trobled you?....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 06-26-2007, 09:22 PM
Junior Member
 
Join Date: Jun 2007
Location: Mexico
Posts: 13
Thumbs up

Yup! that was it As Erel said, it is handled by the OS, if the menu contains only two main items the first one appears above the left softkey while the second appears above the right softkey and the SIP icon in the middle. If the menu has more items they are shown left to right and the SIP is show to the far right.

And as cableguy noted, the confusion was due to the fact that on the desktop the menu appears on top, so I thought that I had to do something special.

Thanks to all, case closed
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need for context menu francisco cobos Questions (Windows Mobile) 6 03-05-2008 02:33 PM
Menu Editor glook Basic4ppc Wishlist 0 11-26-2007 03:47 PM
Menu Bar Separator MM2forever Code Samples & Tips 4 09-29-2007 07:27 PM
Need to lose the bottom menu bar!!! cdeane Questions (Windows Mobile) 3 08-25-2007 04:46 PM
bigger menu Zemog Questions (Windows Mobile) 3 07-21-2007 05:02 PM


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0