by
DragonStar >> Tue, 2 Apr 2002 15:37:23 GMT
Well, with the current skins it only allows for a whole image, which gets stretched/squashed depending on the size of the button, which makes the image look very ugly. Because of this, I've modified it with the following images:
Button Up - Bottom Edge
Button Up - Bottom Left Corner
Button Up - Bottom Right Corner
Button Up - Left Edge
Button Up - Middle
Button Up - Right Edge
Button Up - Top Edge
Button Up - Top Left Corner
Button Up - Top Right Corner
and so on for the rest of the states (Disabled/Down/Mask/RollOver)
I have a button on a screen that when clicked goes through all the painter instances of all the forms, iterates through the controls, if it finds a JadeMask it gets the height and width of that control, puts the separate images together then saves the completed images to the database ordered by height, width and state. Then when running the application, on the window created of the JadeMask it checks the database for an image of that size and sets the correct image to the correct state. If for some reason that image size does not exist in the database it will be created at runtime.
As for the number of buttons we have to convert....roughly 340
Andrew.