Looking to convert Buttons to JadeMask controls

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Looking to convert Buttons to JadeMask controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by DragonStar >> Thu, 28 Mar 2002 14:11:33 GMT

Does anyone have a method for doing this?

I've been looking at the schema files to write a method myself, but I thought I'd check to see if anyone else had done one first.

I'm in the middle of developing skins for our application. Although the Jade skins are great, they just don't work the way we need them to. Hence the need to change all our Buttons to JadeMasks.

Any/all help will be most appreciated.

--
Regards

Andrew Webber
Synergist Limited - Home of FileVision(tm)
Cambridge, UK
Email: andrew.webber@filevision.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Looking to convert Buttons to JadeMask controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by cdshearer >> Mon, 1 Apr 2002 3:46:39 GMT

As far as I know, there is no way you can automate this, unless you're very familiar with the structure of the .ddb file.

Only way I know of is remove all your Button controls and replace them with JadeMask controls.

How many ya got?

What is it about skins that don't cover what you want?

Good luck!

Craig

Oh, wouldn't it be great if the JADE Painter provided some sort of replace control functionality - eg. select all Button controls and replace them with JadeMask controls, copying any common properties, etc.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Looking to convert Buttons to JadeMask controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 32 guests

cron