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

Вниз

Applet and Forms?   Найти похожие ветки 

 
Jon ©   (2008-02-13 04:05) [0]

If I set HasBorder or HasCaption to False to forms within a multi-form applet, then the form is not shown:

program Project1;

uses
 KOL;

var
 Form1, Form2: PControl;

begin
 Applet := NewApplet("");
 Form1 := NewForm(Applet,"Form1");
 Form2 := NewForm(Applet,"Form2");
 Form1.HasBorder := False;      // Form will not show
//  Form2.HasBorder := False;
//  Form1.HasCaption := False;
//  Form2.HasCaption := False;
 Run(Applet)
end.


If I remove the Applet, then the forms work correctly. Bug?


 
Jon ©   (2008-02-15 03:38) [1]

I found the problem:

program Project1;

uses
KOL;

var
Form1, Form2: PControl;

begin
Applet := NewApplet("");
Form1 := NewForm(Applet,"Form1").SetSize(640,480);
Form2 := NewForm(Applet,"Form2").SetSize(640,480);
Form1.HasBorder := False;
//  Form2.HasBorder := False;
//  Form1.HasCaption := False;
//  Form2.HasCaption := False;
Run(Applet)
end.


The size of the form has to be defined.
I hope that I did not waste anyone"s time.


 
_vadim   (2008-02-15 05:57) [2]

To Jon:
Yes, Yes... :-)
If to write:

Form1.HasBorder := False;      // Form will not show
MsgOk(Int2Str(Form1.Width)+", "+Int2Str(Form1.Height)); // -- My addition
Run(Applet)

then I can see "0, 0"... :-)



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

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

Наверх





Память: 0.44 MB
Время: 0.006 c
15-1239183575
rulllesss
2009-04-08 13:39
2009.06.21
SmartClient для Делфи


15-1239620213
ZeroDivide
2009-04-13 14:56
2009.06.21
Лицензионные фильмы


2-1241354318
oleg_teacher
2009-05-03 16:38
2009.06.21
Как узнать количество дочерних узлов в дерева?


2-1240986826
Nameziz
2009-04-29 10:33
2009.06.21
New и GetMem


9-1179168683
Pa5ha
2007-05-14 22:51
2009.06.21
Джойстик





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