https://github.com/mikeduglas/cue-banner
Edit controls (ENTRY, TEXT, COMBO, SPIN) can be extended to have a 'cue banner' (that greyed-out placeholder or explanatory text often seen in text fields).
https://github.com/mikeduglas/cue-banner
clarion cue-banner placeholder winapi
Last synced: 4 months ago
JSON representation
Edit controls (ENTRY, TEXT, COMBO, SPIN) can be extended to have a 'cue banner' (that greyed-out placeholder or explanatory text often seen in text fields).
- Host: GitHub
- URL: https://github.com/mikeduglas/cue-banner
- Owner: mikeduglas
- Created: 2020-09-17T19:21:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T14:37:05.000Z (8 months ago)
- Last Synced: 2025-01-05T00:25:52.504Z (5 months ago)
- Topics: clarion, cue-banner, placeholder, winapi
- Homepage:
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cue banner
Edit (ENTRY, TEXT, COMBO, SPIN) and dropdown (LIST with DROP) controls can be extended to have a 'cue banner' (that greyed-out placeholder or explanatory text often seen in text fields).
**Cue banner supports Unicode.**
### Usage in hand-coded project.
- Include cuebanner.inc file:
```
INCLUDE('cuebanner.inc'), ONCE
```
- Declare an instance of TCueBannerMgr class:
```
cueMgr TCueBannerMgr
```
- After OPEN(Window) add edit control to cue manager, passing control label and cue banner text:
```
cueMgr.AddControl(?ENTRY1, 'Enter your name.')
```That's all.
### Usage in an application.
- Register cuebanner.tpl.
- Add global extension 'Activate Cue banner'.
- Add procedure extension 'Activate Cue banner' in WINDOW procedure and fill in cue banner text for every edit control.
That's all.
### Demo program
The demo can be downloaded [here](https://www.dropbox.com/scl/fi/zclkscvmls5caysfe6ko0/CueBannerDemo.zip?rlkey=2dk9v4r3i1k8utg3hy41106ix&st=ndmoeijk&dl=0).### Requirements
- CW6 and newer.
- ABC and Clarion template chain.
- Windows Vista and newer (I haven't tested it yet on XP or Win2000).
- No extra libraries.### Contacts
[email protected]
[email protected][Buy now](https://www.clarionshop.com/checkout.cfm?pid=1692&q=1)