Post
by Lumir Paul » 08 Oct 2008, 14:46
Posted by: Lumir Paul
Hi Thomas,
I hope I have correctly understood the question.
In this case I think it would be possible to use the following functions,
but even I tested.
Resources
Bitmap: PicNormal
File Name: C:\...
Bitmap: PicSelected
File Name: C:\...
... on SAM_Create the window with menu
Set hPic1 = VisPicLoad( PIC_LoadSWinRes | PIC_FormatBitmap, 'PicNormal',
'' )
Set hPic2 = VisPicLoad( PIC_LoadSWinRes | PIC_FormatBitmap, 'PicSelect',
'' )
either
Set nMenuID = VisMenuInsertPicture( hWnd, hMenu, nPos, hPic1, hPic2,
sMenuText )
- inserts a menu item into a menu and displays the specified picture with
it
or
Call VisMenuSetPicture( hWnd, hMenu, nPos, hPic1, hPic2, sMenuText )
- operates on Centura menus or menus inserted with the Vis Library
... on SAM_Destroy the window with menu
Call VisPicFree( hPic1 )
Call VisPicFree( hPic2 )
Have a nice day.
Lumir Paul
paul@mikropost.cz