Topic: Splitter bar
Hi Guys,
Is it possible to have vertical and horizontal splitter bars in MVD? If so, how?
God... please help me become the person my dog thinks I am.
My Visual Database → General → Splitter bar
Hi Guys,
Is it possible to have vertical and horizontal splitter bars in MVD? If so, how?
Hello Adam,
A little tricky to implement, and probably a pain in the *** to use with other visual components on the form, but... here you go
Have a good week-end
Cheers
Mathias
Hi Mathias,
Thanks for the example.....
I can see tricky aspects when there is other components on those panels and if it's a sizable window it may cause further headaches perhaps. Instead of creating panels with script can we use MVD panels and code splitter?
Please see the attached sample project.
Easy Example :
http://wiki.freepascal.org/TSplitter
procedure Form1_OnShow (Sender: TObject; Action: string);
var
splitter1,splitter2 : Tsplitter;
begin
Form1.Panel2.Align:= alLeft ;
Form1.Panel3.Align:= alClient ;
Splitter1:=TSplitter.Create(Form1);
with Splitter1 do begin
Splitter1.Name:='Splitter1';
Splitter1.Parent:= form1.Panel1;
Splitter1.Left:=100;
Splitter1.Align:=alLeft;
end;
Form1.Panel4.Align:= alTop ;
Form1.Panel5.Align:= alClient ;
Splitter2:=TSplitter.Create(Form1);
with Splitter2 do begin
Splitter2.Name:='Splitter2';
Splitter2.Parent:= form1.Panel3;
//Splitter1.Left:=100;
Splitter2.Align:=alTop;
end;
end;
begin
end.
Thank you for the example.
My Visual Database → General → Splitter bar
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi