Please enable JavaScript to view this site.

A-Shell Development History

Toolbar control refinement: you can now create toolbars using one of the sets of button images which are built-in to Windows. Each toolbar can contain images from one of these built-in sets, or can contain discrete images loaded from PNG files, but not a mixture. To use one of the built-in image sets, include the file ashinc:toolbarstd.def, set the ImgDir= attribute to the identifier for one of the sets (e.g. IDB_STD_SMALL_COLOR), and each img= attribute to the identifier for one of the buttons within that set (e.g. STD_FILEOPEN). For example:

! toolbarattributes:

ctext$ =  "@"

ctext$ += "Imgdir="+IDB_STD_SMALL_COLOR+"~"     ! std small color images

ctext$ += "ImgSiz=16,16,24~~"                   ! 16x16, 24 color

 

! buttons

ctext$ += "id=fnew~img="+STD_FILENEW+"~tip=New file~cmd=VK_xF601~~"

ctext$ += "id=fopen~img="+STD_FILEOPEN+"~tip=Open files~cmd="VK_xF602~~"

...