Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Standard windows Glyphs

Status
Not open for further replies.

safra

Technical User
Jan 24, 2001
319
NL
Hi,

Is it possible to use the standard windows glyphs directly in a program? I am working on an email client as part of a program and would like to use some of the outlook express glyphs.

thanks,

Raoul
 
Generally - most glyphs are encapsulated in the app or its associated DLLs.

You can try the quick and dirty solution of extracting the glyphs as bitmaps or icons using an app like IconSucker Standard, and loading them individually for each control.

A slightly more elegant solution is to set up an image library with [tt]TImageList[/tt] in your app from these. Doubleclick on it and add the icons (.ICO or .BMP). Then use the resultant images with the Image property of the control - basically, you can change the images at run time.

Or you can get some icon libraries - there are stacks out there - as someone has already extracted the glyphs for you.

Finally, and I haven't done it, you could try and read the DLL with the icons (MSOERES.DLL) directly and load the icons. Though this may change as M$ changes its O$.

Cheers


Chris ;-)
 
Thanks Chris,

Finally, and I haven't done it, you could try and read the DLL with the icons (MSOERES.DLL) directly and load the icons. Though this may change as M$ changes its O$.

That is exactly what I mean. If I use the glyphs like in outlook express the look of the icon will depend from the os. That is exactly what I want.

I had a look at MSOERES.DLL. The toolbar glyphs are not included in this file? And I can't find them in any of the other files in the oulook epress folder
 
To use standard windows bitmaps, e.g:
BitBtn1.Glyph.Handle=LoadBitmap(0,MakeIntResource(obm_Combo))
Must be freed with:
Delete object(BitBtn1.Glyph.Handle)

For further use and to get bitmaps from otehr programs see "LoadBitmap" in Windows help (Win32 Programmer's reference)

Have fun
Simon
 
Thanks Simon, that is what I was looking for. But apparantly there is not a lot of choice. This is what I found on MSDN:

OBM_BTNCORNERS OBM_OLD_RESTORE
OBM_BTSIZE OBM_OLD_RGARROW
OBM_CHECK OBM_OLD_UPARROW
OBM_CHECKBOXES OBM_OLD_ZOOM
OBM_CLOSE OBM_REDUCE
OBM_COMBO OBM_REDUCED
OBM_DNARROW OBM_RESTORE
OBM_DNARROWD OBM_RESTORED
OBM_DNARROWI OBM_RGARROW
OBM_LFARROW OBM_RGARROWD
OBM_LFARROWD OBM_RGARROWI
OBM_LFARROWI OBM_SIZE
OBM_MNARROW OBM_UPARROW
OBM_OLD_CLOSE OBM_UPARROWD
OBM_OLD_DNARROW OBM_UPARROWI
OBM_OLD_LFARROW OBM_ZOOM
OBM_OLD_REDUCE OBM_ZOOMD

I think I will stick to encapsulating the glyphs in the program.

Raoul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top