TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: jari laaksonen
from: Johan Siegers
date: 1996-10-25 09:13:10
subject: bitmap on button

Hi jari,

 jl> You can also add an icon to a button.
 jl> And if you add \t and string you have _both_ icon and button text. Like
 jl>   ICON 123 "MyIcon.ico"
 jl>   PUSHBUTTON  "#123\tIcon button", BUTTON_ID, 214, 66,
34, 28, BS_ICON |
 jl> BS_TEXT


Wow !
I've been looking for a way to have both something like a bitmap and text
on a button for some time, but could not imagine that it was so simple.

BS_TEXT was not defined in BCOS2, but I tried all undefined values, and
0x10 seemes to work.

Thanks,  Johan

--- The-Box Point 0.15+ PC
* Origin: johan{at}bitbike.com - CIS: 100120,2502 (2:283/512.16)
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: 283/512 280/801 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™.