Message 1 of 11
ComboBox Problem on Tool Palette (ObjectARX managed API)
Not applicable
08-15-2005
02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am exploring ObjectARX managed API for a possible CAD application (ACAD
MAP2006)
I have built a small Windows form user conrol with a combo box. This user
control is to be placed on Acad's tool palette. The problem occurs when the
tool palette is docked: I cannot select item in the combobox' dropdown list
(whther the dropdown style is set to DropDown or DropDownList, no
difference). As soon as the mouse pointer leaves the "Dropdown Arrow", the
dropdown list dispears, thus no selection can be made. However, if I drag
the tool palette to floating, the combobox acts normally.
Does anyone exeprience the same behaviour of tool palette, built in
ObjectARX .NET API?
Code snippet as following:
public class MapSearchPalette
{
static Autodesk.AutoCAD.Windows.Palette ps=null;
[Autodesk.AutoCAD.Runtime.CommandMethod("MapSearch")]
public static void ShowMapSearchPalette()
{
if (ps!=null) return;
//Create MapSearchControl
//which is in a seperate *.dll file with a few Windows User Controls
defined
MapSearchControl ctrl=new MapSearchControl();
ps=new Autodesk.AutoCAD.Windows.PaletteSet("Map Search",
new Guid("63B8DB5B-10E4-4924-B8A2-A9CF9158E4F6"));
ps.Style = Autodesk.AutoCAD.Windows.PaletteSetStyles.NameEditable |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowPropertiesMenu |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowTabForSingle;
ps.MinimumSize = new System.Drawing.Size(400,250);
ps.Add("Map Search",ctrl);
ps.Visible=true;
}
}
MAP2006)
I have built a small Windows form user conrol with a combo box. This user
control is to be placed on Acad's tool palette. The problem occurs when the
tool palette is docked: I cannot select item in the combobox' dropdown list
(whther the dropdown style is set to DropDown or DropDownList, no
difference). As soon as the mouse pointer leaves the "Dropdown Arrow", the
dropdown list dispears, thus no selection can be made. However, if I drag
the tool palette to floating, the combobox acts normally.
Does anyone exeprience the same behaviour of tool palette, built in
ObjectARX .NET API?
Code snippet as following:
public class MapSearchPalette
{
static Autodesk.AutoCAD.Windows.Palette ps=null;
[Autodesk.AutoCAD.Runtime.CommandMethod("MapSearch")]
public static void ShowMapSearchPalette()
{
if (ps!=null) return;
//Create MapSearchControl
//which is in a seperate *.dll file with a few Windows User Controls
defined
MapSearchControl ctrl=new MapSearchControl();
ps=new Autodesk.AutoCAD.Windows.PaletteSet("Map Search",
new Guid("63B8DB5B-10E4-4924-B8A2-A9CF9158E4F6"));
ps.Style = Autodesk.AutoCAD.Windows.PaletteSetStyles.NameEditable |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowPropertiesMenu |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton |
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowTabForSingle;
ps.MinimumSize = new System.Drawing.Size(400,250);
ps.Add("Map Search",ctrl);
ps.Visible=true;
}
}