Hi moster67,
With ImageButtons you must be aware of :
- Their shape is a rectangle, if you want to have other shapes you must set the surrounding transparent. In your skin picture the round buttons with arrows, must be set in rectangles, be careful that they don't overlap.
- The transparent color for Imagebuttons is the color of the upper left corner pixel.
- The image shown in the transparent areas is the background image of the form and not the image you see on the screen! If there are objects between the forms background and the ImageButton the image of this control will not be shown.
- If you put ImageButtons on a Panel, you must set it's background color the same as the form's one. If the form has a background image, you should not use panels because they don't have an Image parameter. Panels are very convenient when you need to show or hide groups of buttons.
- You cannot use Image controls with ImageButtons because they don't accept child controls.
For the positionning of the buttons, you can use the standard screen size of 240 / 400 and compile with Autoscale, be aware that if you want also support the 240 / 320 screen size you must manage the lower 80 pixels. With Autoscale, no need to position the buttons according to the screen resolution. Only if you want to take into account screen orientation you must position the buttons, but this must be done anyway.
If you really want or need to use the 480 / 800 screen resolution you must set the screen size in the desktop IDE to that size and compile without Autoscale. If your program should also run on the desktop you must, in the source code, increase all font sizes by 2 when running on the desktop, because fonts sizes are in physical units and not in pixels, otherwise the texts would be too small.
Attached a sample program with 3 forms:
- Player ImageButoons with images of your skin image. The quality is not good, I resized your image to fit the PPC screen size and copied the button images. But it is for the principle.
- Player1 with a background image (your skin) but using the frmPlayer1_MouseDown event. And testing if the cursor position lies in a given button area and if yes triggers the function.
- HTC Layout 3 examples of what can also be done.
1) Zoom with 3 buttons on a hidden panel. When the zoom button is clicked a panel is displayed with 3 more button and when mouving the cursor the buttons are selected or unselected (uses the Door library).
2) GPS is a toggle button one click enables next click disables and so on
3) Maps standard button
Hope this will help you.
Best regards.