PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8012 Location: Salford, UK
|
Posted: Tue Apr 21, 2009 3:40 pm Post subject: A new ClearWin+ button control with image and text. |
|
|
Version 5.30 of FTN95 (with its associated salflibc.dll) includes a new button control that is similar to that produced by the format code %bt but uses %bb. The main difference between %bt and %bb is that the button text for %bb includes an image resource for an icon that appears before the text.
In the following sample, the name of the image resource is icon1 and the text that follows is "Keywords". The image corresponds to a 16x16 icon in the file d16.ico.
Code: | WINAPP
integer i,winio@
i=winio@('%fn[Microsoft Sans Serif]&')
i=winio@('%ts&',0.88D0)
i=winio@('%fb%sf&')
i=winio@('%bb[icon1/Keywords]')
end
RESOURCES
1 24 default.manifest
icon1 ICON d16.ico
|
|
|