Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Prism button + hint (https://www.delphipraxis.net/81439-button-hint.html)

felix_schmidt 27. Nov 2006 14:21


button + hint
 
wie kann ich an einen button einen hint anfügen?

hint: wird beim mouseover effekt aufgerufen meist gelb hinterlegt, enthält kurz info


mfg felix

OregonGhost 27. Nov 2006 14:25

Re: button + hint
 
Einfach einen ToolTip aufs Formular ziehen. Dann hat dein Button eine ToolTip-Eigenschaft.

Tyrael Y. 27. Nov 2006 14:32

Re: button + hint
 
Delphi-Quellcode:
MyButton.Hint := 'Zeig mir das hier als Hinweis';
MyButton.ShowHint := True;
;)

Edit: Mist sry, du proggst ja mit .NET, sry

felix_schmidt 27. Nov 2006 16:03

Re: button + hint
 
Delphi-Quellcode:
MyToolTip := ToolTip.Create();
MyToolTip.SetToolTip(self.Button1,'Info Text');
und fertig is der schuh


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz