Repository navigation
PsTipHost
Home › All Categories › PsControls › PsTipHost
The tooltip backend switch shared by the PsControls family. It is not a control: like PsBufferPaint and PsImage it is a support type a control holds, with no window of its own and no message-pump obligation.
Every control that shows tooltips keeps one PSTIPHOST_STATE and drives it through PsTipHost_*. The host never calls those itself. What a host needs from this module is its two constants, passed to a control's Ps<X>_SetTooltipMode:
| Constant | Value | Backend |
|---|---|---|
PSTIP_MODE_SYSTEM |
0 |
the system (comctl32) tooltip. The default. |
PSTIP_MODE_PS |
1 |
PsTooltip: owner-drawn, themeable, word-wrapping |
#import "vendor/PsControls/PsTipHost"
#import "vendor/PsControls/PsButton"
using PsTipHost
using PsButton
PsButton_SetTooltipMode( hButton, PSTIP_MODE_PS )The controls with a SetTooltipMode: PsButton, PsCalendar, PsChart, PsCheckBox, PsColumnHeader, PsDatePicker, PsIconPanel, PsListTree, PsOptionButton, PsProgressBar, PsSelectBar, PsStatusBar, PsTabBar, PsToolbar.
- How a tip is drawn and driven, never what it says. Each control resolves its own tip text (authored text first, then its callback); the backend only shows it. Switching cannot change a tip's text.
-
Delays survive a switch. A hover, auto-pop or reshow time the host set is re-applied to the new backend, and a delay of
0stays a real "no delay". -
The system tooltip is the default on purpose. PsTooltip's colour defaults are dark and the system tip is light, so a control that switched by itself would put a dark tip on a light form. Theme every PsTooltip in the process with
PsTooltip_SetDefaultColorsand friends, then opt in per control. - Tracked tips (PsCalendar, PsDatePicker) are positioned and shown by the control rather than after a dwell. They work on both backends.
Single-threaded: UI thread only, like every control in the family.
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing