bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Mon Jan 12, 2004 8:39 pm Post subject: Add watermark to dialog |
|
|
I'm trying to add a watermark to a dialog. Something like the below code. But I'm having a problem stopping the repeat function when it reaches the end of the dialog box. The dialog box will be different sizes depending on screen resolution. I tried using the @dlgpos(text1,TLWH) function but nothing changes as the text box does not change. Any help as always if very much appreciated.
| Code: |
Title test
DIALOG CREATE,New Dialog,-1,0,441,476
DIALOG ADD,STYLE,STYLE1,,,,,gray
%%text = Water Mark Test
DIALOG ADD,TEXT,text1,2,0,446,476,%%text,,TRANSPARENT,STYLE1
DIALOG ADD,BUTTON,BUTTON1,10,354,,,test
DIALOG SHOW
:Evloop
wait event
goto @event()
:button1button
repeat
wait .2
DIALOG SET, text1, %%text
%%text = %%text %%text
until @not(@ok())
:Close
exit
|
|
|