Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.10.16;
Скачать: CL | DM;

Вниз

KolSplitter   Найти похожие ветки 

 
murtix   (2004-07-06 01:42) [0]

Здрасти люди
поставил на форму два сплиттера
чего-то они неправильно работают
особенно не зацикливался на этом, но хотелось бы...

Form1
___________________________
|           |             |
|           |             |
| Panel1    |  Panel2     |
|           |             |
|___________|_____________|
|                         |
|        ListBox1         |
|_________________________|

Это схема расположения сплиттеров
 спасибо с ув. /murtix/


 
Gandalf ©   (2004-07-09 14:16) [1]

Спитер умеет делить только два контрола. Потому придеться те их парами разводить по нанелям - иначе никак.


 
Lars   (2005-01-26 02:21) [2]

Hello,
How do I place a splitter between two controls?
I figure out how to do this with mck controls in the IDE.

_______________________
|         |            |
|         |            |
| Panel1  | Panel2     |
|  caLeft |  caClient  |
| ________|____________|
         ^    
     Splitter
      caLeft

The splitter always goes to the very left of the form, instead
of above.. betwen two panels. Even if I drag it with the mouse,
like in VCL.


 
Lars   (2005-01-26 02:23) [3]

Ackkk so much for my drawing, I need a <pre> tag here.. haha.


 
Lars   (2005-01-26 03:10) [4]

Ok so here is what I mean, I am trying to get the
splitter between Panel 2 and Panel 4 .
It always goes to the left of form, never between.

http://positivesale.com/KOLDelphi/UrlEnc.zip
(sources, no exe.. URL encoding project)


 
thaddy   (2005-01-26 04:05) [5]

Result.Splitter1 := NewSplitterEx( Result.form, 10, 10, esNone );


 
thaddy   (2005-01-26 04:19) [6]

Template, Creation order is important:

procedure NewForm1( var Result: PForm1; AParent: PControl );
begin
 New(Result,Create);
 with Result^ do
 begin
   Form:= NewForm(AParent,"KOLForm").SetSize(600,80).centeronparent.Tabulate;
   Applet:=Form;
   Form.Add2AutoFree(Result);
   Panel1:=Newpanel(form,esRaised).setalign(caTop);
   Panel1.Height:=20;
   Panel2:=Newpanel(form,esLowered).SetAlign(caLeft);
   Splitter1:=Newsplitter(form,10,10);
   Panel3:=Newpanel(form,esLowered).SetAlign(caClient);
 end;
end;


 
Lars   (2005-01-26 04:59) [7]

thanks much, so I just always hack this in manually in the INC file, no lazy visual way yet? ;-)


 
thaddy   (2005-01-26 11:36) [8]

You can do it with the mck too, provided that you do it in this order...once..to avoid trouble.


 
gent   (2005-01-26 14:37) [9]

If you use MCK, you can manually update *.dfm file, TabOrder field for every control you are interested. This will change the creation order.


 
Lars   (2005-02-13 05:41) [10]

Thanks for taborder trick. I changed the Tab order property of the Splitter and by trial and error I got it to work in the correct position and alignment. I didn"t have resort to adjusting the DFM file manually - I just fooled with taborder Property in the IDE of the splitter itself.



Страницы: 1 вся ветка

Текущий архив: 2005.10.16;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.079 c
2-1126613672
Kolan
2005-09-13 16:14
2005.10.16
Стек элементы которого - объекты


1-1126457728
Артем Кудлаенко
2005-09-11 20:55
2005.10.16
DCOM. Interface not supported.


2-1125919778
lmz
2005-09-05 15:29
2005.10.16
Запрос на выборку


3-1125640655
-=snoop=-
2005-09-02 09:57
2005.10.16
Добавление записей в таб...


1-1127753973
Charly22
2005-09-26 20:59
2005.10.16
двойной клик или 2 одинарных