 | | From: | Ahmed LAZREG | | Subject: | How to force a position of a toolbar at the right of the tbDock. | | Date: | Wed, 15 Dec 2004 12:09:14 +0100 |
|
|
 | I would like to have a toolbar positioned to the right most of a tbDock. Is there a mean to do that automatically without modifying DocPos in source codes ?
|
|
 | | From: | Jordan Russell | | Subject: | Re: How to force a position of a toolbar at the right of the tbDock. | | Date: | Wed, 15 Dec 2004 21:22:13 -0600 |
|
|
 | "Ahmed LAZREG" wrote in message news:cpp60q$gai$1@news.jrsoftware.org... > I would like to have a toolbar positioned to the right most of a tbDock. Is > there a mean to do that automatically without modifying DocPos in source > codes ?
No, I'm afraid not.
-- Jordan Russell
|
|
 | | From: | Ahmed LAZREG | | Subject: | Re: How to force a position of a toolbar at the right of the tbDock. | | Date: | Thu, 16 Dec 2004 10:20:18 +0100 |
|
|
 | I have modified the DocPos or my toolbar in the OnResize event of the tbdock, so when my window is resized, my toolbar is always at the right
procedure TfrmPhotoEditor.TBDockBottomResize(Sender: TObject); begin tbNavigator.DockPos := TBDockBottom.Width - tbNavigator.Width end; where tbNavigator is my ToolBar and TBDockBottom is the Dock component aligned at the bottom of my Form.
I have a problem and i could not understand it, when i undock my toolbar, the tbdock is hidden (because it's the alone toolbar in this dock). And When i re-Dock it again (the Dock component is resized to hold the toolbar), the toolbar is not right aligned, the Resize event of the tbDock is not triggered at all. ? so what's the problem ? and is there any solution to that (proposal) ?
Great Thanks :)
"Jordan Russell" a écrit dans le message de news:cpqv15$kci$1@news.jrsoftware.org... > "Ahmed LAZREG" wrote in message > news:cpp60q$gai$1@news.jrsoftware.org... > > I would like to have a toolbar positioned to the right most of a tbDock. > Is > > there a mean to do that automatically without modifying DocPos in source > > codes ? > > No, I'm afraid not. > > -- > Jordan Russell > >
|
|