Using Windows Icons in MDL Dialogs

Windows Icon Guide

Is there a guide to using Windows icons (e.g. MyIcon.ico) in MDL dialogs?  I don't see anything in the MDL Programmer's Guide.

I found this PDF in the archives: Using Icons in MDL Dialogs.

What I'd like to do is to show a Windows icon in an Extended Push Button (DItem_PushButtonXRsc).

MicroStation Icon Search Paths

Where does MicroStation look to find icon resources?  I have found references to four config. variables in various web publications.  Three of those are defined in MicroStation's default workspace:

  1. MS_ICONRSCLIST defined in MicroStation, reference found here
  2. MS_ICONPATH defined in MicroStation, reference found here
  3. MS_ICONLIBRARYLIST defined in MicroStation, reference found here
  4. MS_ICONLIBRARYPATH, reference found here

Is no. 4 a valid config. variable?

Parents Reply Children
  • Thanks!  That works OK.  I've summarised the steps to use Windows icons.

    Unknown said:
     16, 16, ICONFORMAT_WINDOWS, BLACK_INDEX, "", "MyIconHere"

    I don't know if it's mentioned anywhere, but the icon name "MyIconHere" is the same as the icon file name "MyIconHere.ico" without the extension.

    Unknown said:
    NOT_DEFAULT_BUTTON | PBUTATTR_THINBORDER

    I had not noticed the PBUTATTR_XXX options.  I don't see any difference between PBUTATTR_THINBORDER and the default behaviour, at least for V8i on Windows 7.  PBUTATTR_DYNAMICBORDER is more glamourous, and makes the button behave like Microsoft Windows toolbar buttons (2D when not selected, 3D when sensitized or pressed).

    There's an option I haven't tried, PBUTATTR_DIALOGWIDTH, that presumably does what it says.

     
    Regards, Jon Summers
    LA Solutions