NO WAR IN
UKRAINE!
Home
Products
Skins gallery
Tutorials
Buy
Downloads
Demo-apps
Updates history
Feedback
Customers
Partners
Forum
Sign up for news
Windows 11
Compatible
|
TsAlphaHintsControls a drawing of tooltips in the application with or without skins. To get this component working, it is enough to place him to the main form of application. He has one basic style already, this style is configured and used as default. That's all! Hints will be drawn automatically now while the Active property is True. A variety of styles may be made by changing of component settings. For managing styles there is a special design-time editor of the Templates property. Unlike TsHintManager component, the TsAlphaHints manager can draw hints with any shape. TsHintManager is obsolete and remains in the package for compatibility. Component TsAlphaHints more promising and preferable to use. Thanks to the TsAlphaHints tips may have a text formatting using Html tags, can display images and graphs. Animated hints may be produced also. Example of use can be seen in this demo . The component can apply user defined styles, and can use styles defined in the current skin, if it is active. The UseSkinData property should be enabled for using of styles from skin. Each skin has the 'HINT' section, where defined a data which used for drawing. ShowHint and HideHint procedures may be used for a forced showing and hiding of hint window. The RepaintHint procedure refreshes an opened hint window. Usually this procedure used during data changing and allow to create an animation effect. The DefaultMousePos property specifies a location of arrows in the baloon-like hints that will be used by default. The readonly IsHintShowing property is True when the hint window is shown already. OnShowHint eventAllows to control a process of hint showing with using of set of parameters :
Hypertext in hintsText formatting is possible with standard Html tags, such as FONT, B, I, U. Tags should be added directly to the Hint property of control and they are not visible in the output, if the HTMLMode property is enabled. Forced line break may be set by BR tag Special character such as ©, ™ and others are supported. Using of frames in hintsThe OnShowHint event contains the Frame:TFrame parameter. If we create a frame containing TGraphicControl `s, then these controls will be copied to the hint window. This feature allows to display text together with images, graphics, etc. Frame is destroyed automatically during closing of hint. Let's create a hint with frame:
Configuring of Png templateUsing Png images as templates allows to create hint windows almost any shape. To set the template uses the special Template property editor, which may be called at design-time. The previous example uses a template, which is default and is in the application resources. Let's try to define a template and apply it in this example.
|
Installing, using and licensing the demo programs
© Sergii Goncharov, Ukraine, Odessa 2004-2023
|