Docking toolbars in custom order
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Docking toolbars in custom order

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
hoenes1
Guest





Posted: Wed Sep 21, 2005 12:31 pm    Post subject: Docking toolbars in custom order Reply with quote

Hi all,

When I dock a toolbar to the top, for example row 2, position 3,
reading the toolbars' left, top and dockstatus properties yields
left=2, top=1 and dockstatus=0 (acToolbarDockTop). This perfectly makes
sense assuming the left and top properties define the toolbar position
in the "2-dimensional toolbar-array" in this case. On application
unload, I save the left, top, dockstatus values of the toolbar to the
registry. When I load my application in the next AutoCAD session, I
assign these saved values to the toolbar:

m_pMyToolbar->put_Left(left);
m_pMyToolbar->put_Top(top);
m_pMyToolbar->put_DockStatus(dockstatus);

However, put_DockStatus() seems to reset the left and top values to 0
(reading left and top after put_DockStatus() yields left=0, top=0) and
dock the toolbar to the top-leftmost corner. This behaviour is true for
each DockStatus except floating (which works perfectly fine).
Ideas or workarounds anyone? Or is it a (more or less unsolicited)
customization restriction?

Thanks in advance!

P.S.: AutoCAD 2004, ObjectARX 2004

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB