|
Hi all, got a probably simple but (to me) unintuitive
problem with graphical buttons.. I’m drawing buttons on a form which are specified in
resources.RCP. At one point the original author was using PilRC but stopped
because of some annoyances and instead coded it all by hand – I’m
now no longer able to open the resource file in PilRC so I’m stuck coding
by hand in CodeWarrior. I declare a button like this: BUTTON "" ID myButton AT ( 1 1 32 32 ) NONUSABLE
NOFRAME BITMAPID thisButton SELECTEDBITMAPID thisButtonInverted GRAPHICAL The devices and sims I’m using are all hi-res colour,
so the 64x64 pixel bitmaps are being scaled to 32x32... That much is fine. My problem is that the image isn’t being centered –
it actually begins several pixels to the right and below the (0,0) coordinate I
expect it at. Since I specify the area is 32x32 pixels, it means the bottom
right sector of the image is getting cropped. I can increase the size to something like 50x50 and it all
shows up, but then I’m wasting lots of space that I’d like to use
for something else. I did notice that when I removed “SELECTEDBITMAP”
from the declaration, when I tap (and hold) the button, it draws a highlighted
border around the button which fills all of the “wasted” area –
I suspect even with an inverted version of the bitmap it is still insisting on
using the surrounding area. Any GUI wizards have any thoughts? Thanks, Stefan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ |
- Buttons in resource file Stefan Mohr
- RE: Buttons in resource file Miro Pomsar
- RE: Buttons in resource file Stefan Mohr
