Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Docked toolbars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docked toolbars

 Post Reply Post Reply
Author
Message
Detlev Schubert View Drop Down
Groupie
Groupie


Joined: 14 August 2006
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detlev Schubert Quote  Post ReplyReply Direct Link To This Post Topic: Docked toolbars
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2006 at 3:42am

Hello,

You can call DockRightOf again after you delete icons...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Detlev Schubert View Drop Down
Groupie
Groupie


Joined: 14 August 2006
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detlev Schubert Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Detlev Schubert View Drop Down
Groupie
Groupie


Joined: 14 August 2006
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detlev Schubert Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Detlev Schubert View Drop Down
Groupie
Groupie


Joined: 14 August 2006
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detlev Schubert Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2006 at 3:32pm
Hi,
Unfortunately for second question answer no :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.