forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Hyperlink on a Dialog

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code
View previous topic :: View next topic  
Author Message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Aug 09, 2005 3:06 am    Post subject: Hyperlink on a Dialog Reply with quote

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...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group