WISH to Unify: Ribbon Menus, Pictures and Resources

forum.wishlist (1998-2005) & forum.gupta.wishlist (2005-2010)
Thomas Schüle

WISH to Unify: Ribbon Menus, Pictures and Resources

Post by Thomas Schüle » 08 Oct 2008, 13:10

 Posted by:  Thomas Schüle 

Dear developers,
it is nice, to set a picture to a menu item. But it would be very nice to
set an "resource picture" or an "internal storage picture" to a menu item.
If I could do so so, I would not have to deliver all the picture files with
an program and could store the pictures inside the application.
Thanks al lot,
Thomas

Lumir Paul

WISH to Unify: Ribbon Menus, Pictures and Resources

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

Thomas Schüle

WISH to Unify: Ribbon Menus, Pictures and Resources

Post by Thomas Schüle » 08 Oct 2008, 15:39

 Posted by:  Thomas Schüle 

Hi Lumir,
thanks a lot for your answer.
At this time I'm working with the new "ribbon menu picture feature" in 5.1
and the standard menus.
I know the VisMenu functions, but if the new menus in 5.1 will work also
with resources or internal storage, it will be great.
I put this message also to the wishlist of Unifiy.
Have a nice day too,
Thomas

Return to “gupta.wishlist”

Who is online

Users browsing this forum: [Ccbot] and 0 guests