View Full Version : Images created in the forms designer
Paul Fielder
10-24-2006, 06:17 PM
Hi,
I have created a simple form with 5 image boxes on it, selected each one and provide a file name for each one, the form compiles and runs however the images (Gif's 64x64) are not displayed.
any pointers please, I don't have much hair to pull out !shy
kornalius
10-24-2006, 06:48 PM
If they are not showing on the PPC, please refer to a post I made earlier about this. It has been fixed in 1.06 anyway.
Paul Fielder
10-24-2006, 09:01 PM
kornalius,
My images are not showing either in the form editor or when the app is run, this is the case for on the Pocket PC or desktop version. Should they be displayed on the desktop form editor, or just the rectangle object handle? One other point is there any type of image I should be using size or colour depth etc?
Paul Fielder
10-24-2006, 09:55 PM
I have put my images back through photoshop and reproduced them as 24bit BMP's they are now showing on the form designer on the PC
kornalius
10-25-2006, 12:31 AM
Oups, I have missed the part where it said .gif files. :( No .gif images are not supported by Windows neither Windows CE API.
We support .gif images in the GameAPI engine only.
Paul Fielder
10-25-2006, 01:51 AM
As I said previously having re-rended my images as .bmp they now show on the form editor, but only show on the form if they are repainted by somthing moving over the top of them; is there any way to force a repaint of a form? so my images are always shown? mant tanks thus far.
kornalius
10-25-2006, 04:29 PM
Try sending a WM_PAINT message to the image:
SendMessage(MyBitmap$, WM_PAINT, 0, 0);
Or
struct(r$, TRECT);
GetWindowRect(MyForm$, &r$);
InvalidateRect(MyForm$, &r$);
Paul Fielder
10-26-2006, 04:30 AM
The send message option worked, I opend the form in the designer and added the sendmessage to a create event for each picture, thanks for the fast responce.
One other thing i'm looking at is can you change the form colour from whit and if so how?
kornalius
10-26-2006, 03:02 PM
This you can't. There is a big restriction in Windows API. You can only do this if you either write your own class.
For the form color, it is something we might look into a little later.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.