Thread View: borland.public.delphi.vcl.components.using.general
4 messages
4 total messages
Started by slycaper
Tue, 01 Jul 2008 21:46
TSplitter won't split
Author: slycaper
Date: Tue, 01 Jul 2008 21:46
Date: Tue, 01 Jul 2008 21:46
38 lines
2043 bytes
2043 bytes
Hi, I'm trying to use a TSplitter to vary the size of a dockable panel I have. I have 2 other splitters in use that seem to work fine but this one is causing grief and I'm not sure what I'm missing. From left to right I have: 1. TPanel (DockSite, UsingDockManager = True, alLeft) 2. Splitter (alLeft - works fine) 3. TPanel (alClient) 4. Splitter (This is the new one! - alRight) 5. TPanel (DockSite, UsingDockManager = True, alRight) I have the AutoSize property set to true during the UnDock. procedure TMFrm.SideDockPanelUnDock(Sender: TObject; Client: TControl; NewTarget: TWinControl; var Allow: Boolean); begin Allow := True; Splitter3.Visible := false; (Sender as TPanel).AutoSize := True; end; I set the AutoSize to false during the Dock: procedure TMFrm.SideDockPanelDockDrop(Sender: TObject; Source: TDragDockObject; X, Y: Integer); begin (Sender as tPanel).Width := (Source.Control as tForm).Width; Splitter3.Visible := true; (Sender as tPanel).Autosize := False; end; I grab the splitter bar and try to move it but it snaps back to its original position. I've made sure there are no constraints set so I don't know what I'm missing. Thanks!
Re: TSplitter won't split
Author: Remy Lebeau (TeamB)
Date: Tue, 01 Jul 2008 23:07
Date: Tue, 01 Jul 2008 23:07
13 lines
1388 bytes
1388 bytes
"slycaper" <sly_caper@yahoo.com> wrote in message news:486aa5a6$1@newsgroups.borland.com... > I grab the splitter bar and try to move it but it snaps back to > its original position. Which version of Delphi are you using? Works fine for me when I just tried it in D6. What does your DFM look like? Are #4 and #5 contained inside of #3, or inside of the same container as #1 and #2? Gambit
Re: TSplitter won't split
Author: slycaper
Date: Wed, 02 Jul 2008 13:44
Date: Wed, 02 Jul 2008 13:44
37 lines
2106 bytes
2106 bytes
Hi Gambit, I'm using BDS version 2006. That's just it, it works fine for me with the other two splitters. My splitters look like this: From left to right: TPanel(dockable alLeft)|| alLeft Splitter || TPanel(alClient) || alRight Splitter || TPanel (dockable alRight) The alRight splitter won't work here. The wierd thing is if I move the alRight splitter to the left side it works fine. My third, and functional, splitter is beneath the TPanel(alClient) and goes over to the right side of the application with an alBottom alignment. It is beneath the alRight splitter and TPanel (dockable alRight) as well. There is some limitation that I must not be aware of...? Thanks Remy Lebeau (TeamB) wrote: > "slycaper" <sly_caper@yahoo.com> wrote in message > news:486aa5a6$1@newsgroups.borland.com... > >> I grab the splitter bar and try to move it but it snaps back to >> its original position. > > Which version of Delphi are you using? Works fine for me when I just tried > it in D6. What does your DFM look like? Are #4 and #5 contained inside of > #3, or inside of the same container as #1 and #2? > > > Gambit > >
Re: TSplitter won't split
Author: slycaper
Date: Wed, 02 Jul 2008 15:23
Date: Wed, 02 Jul 2008 15:23
46 lines
2496 bytes
2496 bytes
Hi Gambit, I actually figured it out. The splitter on the left went from top to bottom in my application. The splitter on the right only went from top to the bottom splitter. Once I reconfigured it to go from top to bottom it worked. Must have to do with Autosizing. Thanks! slycaper wrote: > Hi Gambit, > > I'm using BDS version 2006. That's just it, it works fine for me with > the other two splitters. My splitters look like this: > > From left to right: > > TPanel(dockable alLeft)|| alLeft Splitter || TPanel(alClient) || alRight > Splitter || TPanel (dockable alRight) > > The alRight splitter won't work here. The wierd thing is if I move the > alRight splitter to the left side it works fine. > > My third, and functional, splitter is beneath the TPanel(alClient) and > goes over to the right side of the application with an alBottom > alignment. It is beneath the alRight splitter and TPanel (dockable > alRight) as well. > > There is some limitation that I must not be aware of...? > > Thanks > > Remy Lebeau (TeamB) wrote: >> "slycaper" <sly_caper@yahoo.com> wrote in message >> news:486aa5a6$1@newsgroups.borland.com... >> >>> I grab the splitter bar and try to move it but it snaps back to >>> its original position. >> >> Which version of Delphi are you using? Works fine for me when I just >> tried it in D6. What does your DFM look like? Are #4 and #5 >> contained inside of #3, or inside of the same container as #1 and #2? >> >> >> Gambit >>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads