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

Вниз

Поработать до создания формы   Найти похожие ветки 

 
parovoZZ ©   (2006-06-23 19:39) [0]

Здарова

В проекте одна форма, надо до создания этой формы кое-чего поделать. Как я понял, надо писать в _1.inc. Но смущает следующее в _0.inc:
 NewForm1( Form1, nil );

Ничего умнее, чем включить в проект DataModule (автосоздаваемый) и писать всё в его юните не придумал.


 
ECM ©   (2006-06-23 21:29) [1]

Есть для этих целей Inc файлы проекта (не формы)
Например:

{ Project1_1.inc
 This file is for you. Place here any code to run it
 just following Applet creation (if it present) but
 before creating other forms. E.g., You can place here
 <IF> statement, which prevents running of application
 in some cases. TIP: always use Applet for such checks
 and make it invisible until final decision if to run
 application or not. }


 
AndreyRus   (2006-06-23 21:37) [2]


> В проекте одна форма, надо до создания этой формы кое-чего
> поделать.


Почитать документацию :)
Сколько можно спамить форум? У меня сложилось впечатление, что KOL для Вас рановат. Пишите на VCL, читайте книги, а то уже даже не смешно стало читать Ваши сообщения.


 
AndreyRus   (2006-06-23 21:38) [3]

Юзай - OnBeforeCreateWindow, OnFormCreate.


 
parovoZZ ©   (2006-06-25 06:43) [4]

Ну есть такой код, который сейчас в _3.inc

LoadDll_Res (Applet.Handle);
if not LoadDll_SQL (Applet.Handle) then exit;

repeat
  if not Form2.Login then
   begin
    DtMd.UnloadDll_Res;
    DtMd.UnloadDll_SQL;
    //Form2.Form.Close;
    exit;
   end;
until Form2.Authorization = true;  
NewForm1 (Form1, Applet);


Его можно смело вставлять в _1.inc (удалив DataModule) и он будет также рабоать?



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

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

Наверх





Память: 0.45 MB
Время: 0.038 c
2-1172676429
Slimer
2007-02-28 18:27
2007.03.25
TQuery


2-1172900738
Roman_S
2007-03-03 08:45
2007.03.25
Выделить несколько строк в ListView


15-1172672040
Александр Иванов
2007-02-28 17:14
2007.03.25
Перенос БД


2-1172850945
pasha star
2007-03-02 18:55
2007.03.25
Переместить форму в право низ..


15-1172505939
Cyrax
2007-02-26 19:05
2007.03.25
С#: интерфейсы с модификатором доступа internal





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