| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Thu Oct 06, 2005 11:25 am Post subject: [RESOLVED]Change dialog Bk Colour |
|
|
Hi
Is Possible change dialog bk colour at runtime? If Yes How?
Many Thank's
Last edited by Tdk161 on Fri Oct 07, 2005 10:55 am; edited 1 time in total |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Oct 06, 2005 4:02 pm Post subject: |
|
|
| DIALOG CREATE,John Doe,-1,0,273,166,COLOR WHITE |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Thu Oct 06, 2005 10:48 pm Post subject: |
|
|
ok i know this thank,
but if I want change bk color after created dialog how I canchange it? |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Oct 07, 2005 1:19 am Post subject: |
|
|
you can't with VDS as it is ... i have had to use tactics like restarting my program with the new coloured background to make it look like it changed on the fly
i am not sure if it can be done with API's ... someone in the know can answer that one
serge _________________
|
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Fri Oct 07, 2005 10:51 am Post subject: |
|
|
Thank very much Serge
I resolved it with a tricks.. I add a shape to dialog and after when I need I change the colour of the shape
Like this:
| Code: |
DIALOG CREATE,ProGePa,0,0,1020,37,ONTOP,PAINT,NOTITLE
DIALOG ADD,SHAPE,Sfondo,0,0,1020,37,White,White,,RECTANGLE
...
DIALOG SHOW
:Loop
Wait Event
...
:ChangeBkColour
Dialog Set,Sfondo,Red
Goto Loop
...
|
And it work very well
 |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Oct 07, 2005 1:50 pm Post subject: |
|
|
great idea, i forgot about that one
serge _________________
|
|
| Back to top |
|
 |
|