Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 6, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Link Edit Question
RJ Eaton
Posts: 234
 
Link Edit QuestionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Feb 07 10:55 AM
fiogf49gjkf0d
In using the Link edit control, you set the text property to the web address you want to launch... my question is how do I alias the web address.. so I can have it say Click "This" and the .."This" go the web address http://www.whereeveryouwanttogothatisapprovedbycomplianceofrmyorganizationandisnotapotentialthreattoglobalwarmingorthepossibleinvasionofsmallerforeigncountries.com

..??
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Link Edit QuestionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Feb 07 11:23 AM
fiogf49gjkf0d
A LinkEdit, is just that, an "Edit" control with a "link" sort of action. The fact that it is an "Edit" implies the user can edit the value. With a LinkEdit the user can enter the web address and later click it to go to that address.

If you want to display an "alias" for a link, then you really can't allow the user to edit it as well. KWIM?

What I would use instead if just a label. You can change it's properties to look just like a hyperlink. Make it blue, underlined, change it's cursor, etc. Display your "alias" in the caption, then on it's OnClick event use

Application.BasicFunctions.WebOpen "http://www.slxdeveloper.com/"


You could also store the real URL in the label's "Hint" property. Then you'd just do this:

Sub LabelOnClick(Sender)
Application.BasicFunctions.WebOpen Sender.Hint
End Sub


That way, you could have multiple labels, all with the same click handler. You just put the alias in the caption, and the URL in the hint (you could also set ShowHint=False if you didn't want the URL to show when hovering, but I think the URL showing in the hint would be better)
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Link Edit QuestionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Feb 07 11:39 AM
fiogf49gjkf0d
Thanks Ryan,

I like the use of sender.hint
I always forget about that

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/6/2025 11:16:32 AM