| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | bitmap on button |
AD>> Please, give me some _worked_ example (about buttons only)
JS> It's realy simply:
JS> BITMAP 123 "MyPic.BMP"
JS> DLGTEMPLATE TEMPLATE_ID
JS> BEGIN
JS> DIALOG DLG_ID "" 0, 0, 100, 100, FS_DLGBORDER, WS_VISIBLE
JS> BEGIN
JS> CONTROL "#123", BUTTON_ID, 20, 20, 32, 32, WC_BUTTON,
JS> BS_PUSHBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_BITMAP
JS> END
JS> END
JS> The whole trick is the "#123" as 'button-text' and the addition of
JS> BS_BITMAP
You can also add an icon to a button.
And if you add \t and string you have _both_ icon and button text. Like
ICON 123 "MyIcon.ico"
...
PUSHBUTTON "#123\tIcon button", BUTTON_ID, 214, 66, 34, 28,
BS_ICON | BS_TEXT
// Albert email: jla{at}to.icl.fi
--- GoldED/2 2.50+
* Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 221/0 22/10 229/0 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.