Print Page | Close Window

Docked toolbars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5012
Printed Date: 20 June 2025 at 3:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docked toolbars
Posted By: Detlev Schubert
Subject: Docked toolbars
Date Posted: 09 September 2006 at 12:12pm
Hallo,
 
I have three toolbars, which I have docked behind each other (I have found the sub DockRightOf). When I delete in custom mode one or more Icons from one toolbar or one toolbar, the other toolbars do not move over the left. They always stay at the same place, because I have not found the right way. How can I  realize it and please show me the way.
 
thx Detlev



Replies:
Posted By: Oleg
Date Posted: 10 September 2006 at 3:42am

Hello,

You can call DockRightOf again after you delete icons...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Detlev Schubert
Date Posted: 11 September 2006 at 5:19am
Hello Oleg,
 
sorry but that doesn't work.  When I remove one or more Icons, or one toolbar, this interrests the commandbar not in the least, look below:
 
 
I even place the DockRightOf in the CommandBars_ControlSelected-Event but nothing happens. Please show me the way how can I realized it. So it looks like fu** sh*t.
 
Another Question, can I use the ballon tooltip feature for other controls on other forms too? When yes, please show me the way.
 
thx Detlev


Posted By: Oleg
Date Posted: 11 September 2006 at 8:42am
Hi,
 
also try modify DockRightOf:
 
Private Sub DockRightOf(BarToDock As CommandBar, BarOnLeft As CommandBar)
    Dim Left As Long
    Dim Top As Long
    Dim Right As Long
    Dim Bottom As Long
   
    CommandBars.RecalcLayout
    BarOnLeft.GetWindowRect Left, Top, Right, Bottom
   
    CommandBars.DockToolBar BarToDock, Left + 1, (Bottom + Top) / 2, BarOnLeft.Position
and if you save state, delete previous state in registry.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Detlev Schubert
Date Posted: 11 September 2006 at 9:22am
Hello Oleg,
 
it works now, thx a lot.
 
Now I must look how, and in which event I can place the DockRightOf. The CommandBars_ControlSelected-Event is the worst way to place it but so it works. Perhaps you may have a much better solution.
 
By the way, can you answer my second Question please,  thx
 
Detlev


Posted By: Detlev Schubert
Date Posted: 11 September 2006 at 11:30am
Hi Oleg,
 
I hope, that I have found the best solution.
 
I have debugged the Control ID's, and so I saw that the ID is 59392, the ID for ID_VIEW_TOOLBAR_STANDARD.  I have placed it now into the Select Case requet of the CommandBars_Update event, and it works perfectly.
 
Well,  now only the second part of my first question left.
 
thx Detlev


Posted By: Oleg
Date Posted: 11 September 2006 at 3:32pm
Hi,
Unfortunately for second question answer no :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net