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

Problem with PaletteSet+UserControl+Tooltip

5 REPLIES 5
Reply
Message 1 of 6
PeterKelec3372
468 Views, 5 Replies

Problem with PaletteSet+UserControl+Tooltip

Hello, I've been experiencing the following problem:

I've created a PaletteSet with a UserControl. The control contains a lot of image buttons, so I added a Tooltip control to the UserControl and associated every button with a tooltip. Everything works perfectly, except for a very strange behavior of the command line window (F2). The window behaves normally after the application is loaded and the custom palette is displayed, however if a move the mouse pointer over any of my buttons and a tooltip is displayed, the command line window no longer displays correctly. When pressing F2 to show the command line window, it just flickers and stays minimized. It just keeps doing it until I restart AutoCAD.

Does anybody have a solution for this? I've tested the application in AutoCAD 2008, 2009 (x86 & x64), 2010 (x86 & x64) with the same results. However, if a change the minimum size of my UserControl to 300,400, the problem disappears and everything works flawlessly. Any smaller size causes the problem.

Any advise is appreciated.
5 REPLIES 5
Message 2 of 6

Can someone at least replicate the problem? I've tried to create at least a dozen of palette sets with different combination of buttons (even an empty control with a tooltip), but with no change in the behavior of the command line window (F2).
Message 3 of 6
Anonymous
in reply to: PeterKelec3372

You can post a sample project that demonstrates it, but I wouldn't expect
anyone to make the significant effort required to repro this.

--
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:6295080@discussion.autodesk.com...
Can someone at least replicate the problem? I've tried to create at least a
dozen of palette sets with different combination of buttons (even an empty
control with a tooltip), but with no change in the behavior of the command
line window (F2).
Message 4 of 6

Thanks Tony, I was hoping you would reply as you seem to be quite an expert.

I attached a sample VS2008 (express edition) solution (it also contains the compiled DLL in the Debug folder). It was compiled against the AutoCAD 2007 libraries, so it should be loadable in AutoCAD 2007, 2008, 2009, 2010. The sample contains just 1 paletteset and 1 usercontrol containing 1 button and 1 tooltip control.

No effort is really required to replicate the problem. Simply NETLOAD the sample application, a paletteset appears docked on the left side (I do not know how to change the default startup position of the palette without screen flickering), then move your mouse over the button (a tooltip is displayed) and then hit F2 (drawing must be active) to see whether the command line window displays normally (I tested it on 4 different PCs with the same result and that is the window is shown as minimized and it refuses to activate).
Message 5 of 6
Anonymous
in reply to: PeterKelec3372

I tried your project and noticed the same issue on AutoCAD 2010.

Try setting the ToolTip's ShowAlways property to true.

--
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:6295566@discussion.autodesk.com...
Thanks Tony, I was hoping you would reply as you seem to be quite an expert.

I attached a sample VS2008 (express edition) solution (it also contains the
compiled DLL in the Debug folder). It was compiled against the AutoCAD 2007
libraries, so it should be loadable in AutoCAD 2007, 2008, 2009, 2010. The
sample contains just 1 paletteset and 1 usercontrol containing 1 button and
1 tooltip control.

No effort is really required to replicate the problem. Simply NETLOAD the
sample application, a paletteset appears docked on the left side (I do not
know how to change the default startup position of the palette without
screen flickering), then move your mouse over the button (a tooltip is
displayed) and then hit F2 (drawing must be active) to see whether the
command line window displays normally (I tested it on 4 different PCs with
the same result and that is the window is shown as minimized and it refuses
to activate).
Message 6 of 6

Thanks for the tip Tony. Unfortunately, this does not solve the issue either.

Nevermind, I found out that the ToolStrip control does not affect the command line window appearance, so I ended up using a custom Renderer with a toolstrip control.

Thanks anyway for your help.

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