Sign in to follow this  
Followers 0
blizzedout

web link in the GUI

7 posts in this topic

Quick question, is it possible to add a link that you can click on into the GUI?

Or do i need to make a button that opens up IE and searches the site.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

No. Yes... kinda.

You can create a pseudo link by changing the font style of a label.

Something like this:

$lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15)
GuiCtrlSetColor(-1, 0x0000ff)
GuiCtrlSetFont(-1, 8.5, 400, 2)
GuiCtrlSetTip(-1, 'http://www.google.com')

Untested, I just wrote that from memory.

Then in your main loop you can do something like this:

If $GuiGetMsg = $lb Then
     Run(@ComSpec & ' /c start "" "http://www.google.com"')
EndIf

Problem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun.

Edited by Saunders

Share this post


Link to post
Share on other sites

No. Yes... kinda.

You can create a pseudo link by changing the font style of a label.

Something like this:

$lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15)
GuiCtrlSetColor(-1, 0x0000ff)
GuiCtrlSetFont(-1, 8.5, 400, 2)
GuiCtrlSetTip(-1, 'http://www.google.com')

Untested, I just wrote that from memory.

Then in your main loop you can do something like this:

If $GuiGetMsg = $lb Then
     Run(@ComSpec & ' /c start "" "http://www.google.com"')
EndIf

Problem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun.

<{POST_SNAPBACK}>

Yea i just want people to be able to click the link http://www.blizzedout.com

ScreenShot

Share this post


Link to post
Share on other sites

Ah, then the code I provided should work well. Was there still a problem?

Share this post


Link to post
Share on other sites

Wow, talk about your delayed response times. :whistle:

Glad to hear it worked though.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I feel significantly less intelligent having read the page that you got your sig from, Saunders. Oy! :whistle:

Although I did like some of the Engineer jokes.

Edited by c0deWorm

My UDFs: ExitCodes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0