CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWLink

General discussion

by etwoss » 16 Apr 2014 12:06

Hi

is it ok to keep on using TIWlink or preferrable to use CG LabelEx instead?

if so how to setup LabelEx to behave as a TIWlink to have a normal on Click Event

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 16 Apr 2014 12:35

Hi etwoss,

In this case, like you want....

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 16 Apr 2014 13:55

Hi

Set TIWCGJQLabelEx as

Code: Select all
  object linkTest: TIWCGJQLabelEx
    Left = 208
    Top = 320
    Width = 100
    Height = 16
    Cursor = crHandPoint
    TabOrder = 1
    Font.Color = clWebBLUE
    Font.Enabled = True
    Font.Style = [fsUnderline]
    Version = '1.0'
    Text = 'Testing menu'
    Link = '#'
    JQEvents.OnClick.OnEvent = IWCGJQLabelEx1JQEventsClick
    JQEvents.OnSelect.OnEvent = IWCGJQLabelEx1JQEventsSelect
  end


Without the # the link does not showup as a link
The events both don't work
Which event to handle to execute my code?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 16 Apr 2014 14:14

Hi,

http://www.cgdevtools.com/docs/_html/IWCGJQLabel.TIWCGJQLabelEx.Link.htm

etwoss wrote:
Code: Select all
  object linkTest: TIWCGJQLabelEx
    ...
    Font.Color = clWebBLUE
    Font.Enabled = True
    Font.Style = [fsUnderline]
    Link = '#'
    ...
  end

Eric


As you defined the font property, you don't need the link property.

For click, use the standard click event:

delphi code
JQEvents.OnClick


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.