.NET

Reply
Distinguished Contributor
caddie75
Posts: 135
Registered: ‎07-07-2006
Message 1 of 4 (181 Views)

Palette Keepfocus / AutoHide

181 Views, 3 Replies
02-09-2007 12:20 PM
Hi there all,

I had a problem when my (custom) palette was docked with comboboxes (the list disappears when moving the cursor out of the combobox area).
Problem solved.....wel now the palette doesn't autoHide when floating.....

Anyone...
Or should I change the keepfocus state when the palette "gets" floating??

A. Caddie.

AutoCAD 2007 / Win XP Pro
*Tony Tanzillo
Message 2 of 4 (181 Views)

Re: Palette Keepfocus / AutoHide

02-09-2007 05:31 PM in reply to: caddie75
Set keepfocus to true, or you can use the following
derivative instead of the standard .NET ComboBox
control, and that should do it.

public class PaletteCombo : System.Windows.Forms.ComboBox
{
protected override void WndProc( ref Message m )
{
if( m.Msg != 0x0167 )
base.WndProc( ref m );
}
}


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5481899@discussion.autodesk.com...
Hi there all,

I had a problem when my (custom) palette was docked with comboboxes (the list disappears when moving the cursor out of the combobox area).
Problem solved.....wel now the palette doesn't autoHide when floating.....

Anyone...
Or should I change the keepfocus state when the palette "gets" floating??

A. Caddie.

AutoCAD 2007 / Win XP Pro
New Member
compprogwc
Posts: 1
Registered: ‎12-09-2009
Message 3 of 4 (181 Views)

Re: Palette Keepfocus / AutoHide

12-09-2009 02:45 PM in reply to: caddie75
Tony I had an issue while using a combobox and I got to this solution by debugging. The fix is the same which is to return from WndProc if m.Msg == 0x0167. After the fix was made I found this thread. However the problem is I dont know what CB_ message 0x0167 is. Can you tell?

Thanks,
J
*Tony Tanzillo
Message 4 of 4 (181 Views)

Re: Palette Keepfocus / AutoHide

12-10-2009 11:05 AM in reply to: caddie75
The message is a WinForms reflected control message, that
tells the combo box to close the dropdown.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6302259@discussion.autodesk.com...
Tony I had an issue while using a combobox and I got to this solution by
debugging. The fix is the same which is to return from WndProc if m.Msg ==
0x0167. After the fix was made I found this thread. However the problem is I
dont know what CB_ message 0x0167 is. Can you tell?

Thanks,
J
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.