Главная страница
    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.038 c
3-1125630197
skiph
2005-09-02 07:03
2005.10.16
2 Query на одну таблицу


6-1119424079
Макс Т.
2005-06-22 11:07
2005.10.16
embeddedwb


14-1127824913
Knight
2005-09-27 16:41
2005.10.16
Какая-то чертовщина с ноутбуком...


2-1126454439
Зм1й
2005-09-11 20:00
2005.10.16
Вывести собщение


1-1127395980
.::AndreW::.
2005-09-22 17:33
2005.10.16
На мультемелийной клаве есть три кнопки запуск Word, Exel...





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский