Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2005.10.16;
Скачать: [xml.tar.bz2];

Вниз

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 вся ветка

Форум: "KOL";
Текущий архив: 2005.10.16;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.46 MB
Время: 0.042 c
14-1127454649
nk
2005-09-23 09:50
2005.10.16
Что есть DNS, и где он нужен ?! )


14-1127299293
leonidus
2005-09-21 14:41
2005.10.16
Генератор отчетов


14-1127673789
Kerk
2005-09-25 22:43
2005.10.16
Рахманинов. Когда он придет?


1-1127809979
Wolferio
2005-09-27 12:32
2005.10.16
FileListBox маска


2-1126212783
veronika
2005-09-09 00:53
2005.10.16
Hot Key





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский