PDA

View Full Version : Page Back Color - can change by code?


itamar
06-12-2004, 05:07 PM
Hi Guys,
I'm trying to let my users set the "Page Back Color", I know how to do it in design mode. But I couldn't find a way to set the page property by code.

Does anyone know how to set the Page Back Color by Code?
(Runtime)

Thanks,
Itamar.

eric_darling
06-12-2004, 05:17 PM
I could definitely be wrong, but I don't think there's a way to do it with backgrounds. But, you could fake it by setting up some simple show/hide scripts for a pallette of pre-defined colors. Basically, it would involve creating a bunch of different background images in your favorite image editing app to fit the size of your project window, then you pile them on your page, and name them appropriately for your reference in coding. Then you just set up a legend where users can click the version they want. Each one hides all the other background images, and shows their chosen one.

Corey
06-12-2004, 06:34 PM
Hi. There's no direct code for bg color but one good workaround which will work in many scenarios (but not all due to Z-order limitations on video objects, etc.) is to use a shape object behind everything. Working sample is attached, hope that helps. :yes

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

itamar
06-12-2004, 06:36 PM
Thanks for your idea,
eric_darling - The way that you mentioned has few faults:

1. The application will be "heavy" with all the different layers.
2. The user will be limited to pre-designed colors.

Doing the same way with code will make the application lighter,
And the user can choose his own color from the color platter.

Itamar

itamar
06-12-2004, 06:45 PM
That will do the work for me.


:yes :yes :yes
Itamar.

yosik
06-13-2004, 07:19 AM
Hi. There's no direct code for bg color but one good workaround which will work in many scenarios (but not all due to Z-order limitations on video objects, etc.) is to use a shape object behind everything. Working sample is attached, hope that helps. :yes


Corey,
Pls enlight me. How can you change the plugin color at runtime?
Thanks
Yossi

Corey
06-13-2004, 07:20 AM
Hi Yossi, just download the sample file attached above, it's self explanatory... :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

yosik
06-13-2004, 07:25 AM
Ooops!
And I was looking under the plugin actions instead of the shape actions....Sorry aboout that and thank you.
Yossi

Corey
06-13-2004, 02:24 PM
Hee. :lol

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)