Re: Resize CurrentWidth of FTCustomHyperlink

  • From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
  • To: ftcdev@xxxxxxxxxxxxx
  • Date: Fri, 5 Aug 2011 11:10:01 -0500

Jym Morton wrote:
> Can you point me in the direction of where to change the Width of an
> FTCustomHyperlink please, I have it so the User can edit the link or
> the displayText but I can't find what I need to code to have it resize
> the displayText for example if they want to change the displayText
> from "My Display Text" to "Text"  the link displays
> "Text______________"

Remember that a custom object is based off the FTPicture class, so
basically you have to resize the underlying picture. With the
FTCustomHyperlink, that work is done inside the constructor. So
you pull out the relevant code from the constructor and make your
own method to resize. Even better, you can just call the
constructor since it is just a method to do the resize.



FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.



Other related posts: