.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Palette Keepfocus / AutoHide

3 REPLIES 3
Reply
Message 1 of 4
caddie75
325 Views, 3 Replies

Palette Keepfocus / AutoHide

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
3 REPLIES 3
Message 2 of 4
Anonymous
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
Message 3 of 4
compprogwc
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
Message 4 of 4
Anonymous
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost