No icons on mdi-style toolwindows

Docking/MDI for Windows Forms Forum

Posted 19 years ago by Domenico
Avatar
If the DocumentMdiStyle is Standard and the ToolWindowState is TabbedDocument, the toolwindow appears like a standard Mdi window, but the icon on its caption is always the standard no-icon of .Net framework.

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes this is a known issue... the problem is that MDI windows can only accept Icon classes and we are generally pulling Images from ImageLists, which are not compatible. I'm open to suggestions. Maybe we have to add an MdiIcon property or something to each tool/document window.


Actipro Software Support

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
Can't you just internally convert the Images to Icons?

private Icon GetIconFromImageList(ImageList imgList, int position)
{
    return Icon.FromHandle(((Bitmap)imgList.Images[position]).GetHicon());
}
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ahh, didn't know you could do that. It worked, so this will be in the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.