Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.720 Beiträge
 
Delphi 12 Athens
 
#1

FMX: SkiaLabel mit OnClick und Cursor

  Alt 5. Sep 2025, 06:19
Tachchen,

ich hab hier ein TSkLabel.
Dort ist in einem der "Words" ein OnClick angegeben, sowie bei diesem Word auch ein Cursor (crHandPoint),
aber weder reagiert dieses Word auf den Click, noch wird bei ihm der andere Cursor angezeigt. Ist das Normal so?

Plattform = Win32

Zum Einfügen in eine FMX-HD-Form:
Delphi-Quellcode:
object SkLabel1: TSkLabel
  Position.X = 400.000000000000000000
  Position.Y = 33.000000000000000000
  Size.Width = 128.820007324218800000
  Size.Height = 27.000000000000000000
  Size.PlatformDefault = False
  Words = <
    item
      Name = 'Item 0'
      Text = 'Skia'
    end
    item
      Font.Size = 20.000000000000000000
      Name = 'Item 1'
      StyledSettings = [Family, Style, FontColor]
      Text = 'La'
    end
    item
      BackgroundColor = claYellow
      Font.Size = 20.000000000000000000
      Font.Weight = Bold
      Name = 'Item 5'
      StyledSettings = [Family, FontColor]
      Text = 'bel'
    end
    item
      Font.Size = 10.000000000000000000
      FontColor = claRed
      Name = 'Item 2'
      StyledSettings = [Family, Style]
      Text = 'Demo'
    end
    item
      Name = 'Item 3'
      Text = ' '
    end
    item
      Cursor = crHandPoint
      Decorations.Color = claRed
      Decorations.Decorations = [Underline]
      Decorations.Style = Dashed
      FontColor = claBlue
      Name = 'Item 4'
      StyledSettings = [Family, Size, Style]
      Text = 'Link'
      OnClick = SkLabel1Words5Click
    end>
end
Ein Therapeut entspricht 1024 Gigapeut.
  Mit Zitat antworten Zitat