No icons on mdi-style toolwindows

Docking/MDI for Windows Forms Forum

Posted 14 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 14 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 14 years ago by Boyd - Automated Software Testing Consultant / 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 14 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 (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.