Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

My app is using softkeys, the OS automatically displays a bar at the bottom of the screen into which the text for the softkeys is placed.

 

I would additionally like to place some buttons on top of this bar, this I can do successfully, however I would like to find out the height of the bar so that I can position my icons so that they are vertically centered within the bar. In addition I would like to shrink the size of the icons in proportion to height of the bar so the bar and icons are always in nice looking proportion on devices with differing screen sizes.

 

How do I find out the height of the bar, and what's the best way to shrink the icons to scale them to fit?

 

Thanks

Could you elaborate on which APIs/device/simulator you used? What do you mean by OS automatically displays a bar?

Could you elaborate on which APIs/device/simulator you used? What do you mean by OS automatically displays a bar?

Its on any device and any emulator I've ever tried, its the bar that is displayed at the bottom of the screen. If I launch the Candy Bar 1.0.2.549.1 its there with "App Manager" displayed in the right hand side, click on the soft key and now it displays "Add" to the left and "Options" to the right.
 
I've noticed with my app the bar get a little higher than for the system apps, and while experimenting placing buttons on other portions of the screen I accidentally noticed it was possible to also display them, and for them to function, if positioned on top of this bar. I could position them using hard-coded x,y values but that probably wouldn't work on differing devices with differing screen sizes. So if I know the height of this bar I can position accordingly.
 
My app has soft key actions - there's OK and Options. On a device without a touch screen these will appear as normal, on a device with a touch screen these will still appear (on a touch screen tapping the screen where the name of the soft key name is invokes the action the same as physically pressing the actual key does on a device without a touch screen), but in addition I want a could of button to be placed also on the bar.
 
Is this bar implemented as a pick list container that is accessable?

Its on any device and any emulator I've ever tried, its the bar that is displayed at the bottom of the screen. If I launch the Candy Bar 1.0.2.549.1 its there with "App Manager" displayed in the right hand side, click on the soft key and now it displays "Add" to the left and "Options" to the right.
 
I've noticed with my app the bar get a little higher than for the system apps, and while experimenting placing buttons on other portions of the screen I accidentally noticed it was possible to also display them, and for them to function, if positioned on top of this bar. I could position them using hard-coded x,y values but that probably wouldn't work on differing devices with differing screen sizes. So if I know the height of this bar I can position accordingly.
 
My app has soft key actions - there's OK and Options. On a device without a touch screen these will appear as normal, on a device with a touch screen these will still appear (on a touch screen tapping the screen where the name of the soft key name is invokes the action the same as physically pressing the actual key does on a device without a touch screen), but in addition I want a could of button to be placed also on the bar.
 
Is this bar implemented as a pick list container that is accessable?

Those are system softkeys and it shouldn't be displayed in your app. Whole screen should be available to your app. You can use softkey widget to display your own softkeys. Try running sample apps available with SDK to see if those softkeys are still visible?

Those are system softkeys and it shouldn't be displayed in your app. Whole screen should be available to your app. You can use softkey widget to display your own softkeys. Try running sample apps available with SDK to see if those softkeys are still visible?

As I mentioned ("My app has soft key actions - there's OK and Options") my app has its own softkeys so this bar does appear in my app. It is the bar that appears when I display my own softkeys that I am talking about.
Everything in terms of softkeys is displaying fine, I want to display buttons on this bar so that  buttons and my softkeys appear next to each other. I can get the buttons to appear as I want, but I want to make sure their height is correct in relation to the bar, so I am looking how to get the height of the bar.

As I mentioned ("My app has soft key actions - there's OK and Options") my app has its own softkeys so this bar does appear in my app. It is the bar that appears when I display my own softkeys that I am talking about.
Everything in terms of softkeys is displaying fine, I want to display buttons on this bar so that  buttons and my softkeys appear next to each other. I can get the buttons to appear as I want, but I want to make sure their height is correct in relation to the bar, so I am looking how to get the height of the bar.

If you used softkey widget to display softkeys, you might have set extent of it...right? Anyways, you can use IWidget_GetExtent() to get the extent (width and height) of the widget.

If you used softkey widget to display softkeys, you might have set extent of it...right? Anyways, you can use IWidget_GetExtent() to get the extent (width and height) of the widget.