SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Aug 09, 2005 3:06 am Post subject: Hyperlink on a Dialog |
|
|
kenmcn816 wrote: | Is there a way to add a hyperlink to the main Dialog Window? |
You can fake it with Text elements.
First you need a Style element that's blue with the Underline attribute.
Then you need a text element that displays your URL and has the Style element, Transparent, Hand and Click as styles.
Last you need a label for the Click event which launches the URL.
Here's an example:
Code: |
OPTION SCALE,96
%%Link = http://forum.vdsworld.com
DIALOG CREATE,Hyperlink Example,-1,0,190,50
DIALOG ADD,STYLE,sHyper,,,U,WHITE,BLUE
DIALOG ADD,TEXT,tInfo,10,30,,,Visit the VDSWorld Forums:,,TRANSPARENT
DIALOG ADD,TEXT,tLink,28,32,,,%%Link,,sHyper,TRANSPARENT,HAND,CLICK
DIALOG SHOW
:evloop
wait event
goto @event()
:tLinkCLICK
SHELL OPEN,%%Link
goto evloop
:Close
exit
|
_________________ -Sheep
My pockets hurt... |
|