![]() |
Docked toolbars |
Post Reply ![]() |
Author | |
Detlev Schubert ![]() Groupie ![]() Joined: 14 August 2006 Location: Germany Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, You can call DockRightOf again after you delete icons...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Detlev Schubert ![]() Groupie ![]() Joined: 14 August 2006 Location: Germany Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Detlev Schubert ![]() Groupie ![]() Joined: 14 August 2006 Location: Germany Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Detlev Schubert ![]() Groupie ![]() Joined: 14 August 2006 Location: Germany Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Unfortunately for second question answer no :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |