NyperCro:
If you take a look at these img, you will see my problem, i need to create a script who will read specified line in config file (eg. GUI=2 or GUI=something or GUI=default) and change state for push button img "up-red","down-green" and "highlight-orange"
With this option (for the PushButton object) you have to define the images at
Design time ... they can not be changed at
Run time.
I tried to use Embedded pictures, but i get stuck only on "up" state
Can anyone give me an example script how to do it. I prefer to use Embedded pictures, so they cant be deleted by user.
Note that the images you specify (at Design time) will be shown when the mouse pointer is ...
- outside the image rectangle (Up)
- howering over the image rectangle (Highlight)
- howering over the rectangle image with the left mouse button in the down/pressed position (Down)
For what you want to achieve, consider ...
a) using the
Image object instead of the
PushButton ... you can select an [Embedded] file to be shown in such an object
b) look at my previous post about how to change the image associated with such an object
c) you have to save current/changed selections in an external (text) file ... users must allow such files to be read/written on their respective folders ... if you don't want users to mess with the text files outside of your pub, then consider using a (password protected, encrypted) database file.