Вниз
Скачать: CL | DM;

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

 
AlexXn   (2004-12-29 14:57) [0]

Как сделать Popup форму, т.е. ечть форма со всеми мне нужными контролами, классами и прочее. Хотелось бы, чтобы она вела себя также как и  popup контролы( пряталась при деактивизации).
procedure CMCancelMode(var Message: TCMCancelMode); message CM_CANCELMODE;
procedure WMKillFocus(var Message: TWMKillFocus); message WM_KILLFOCUS;
procedure CreateParams(var Params: TCreateParams); override;
не помогли... Хелп.


 
Programmix ©   (2004-12-29 16:35) [1]

1)Главная форма

unit Unit1;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, StdCtrls;

type
 TForm1 = class(TForm)
   Button1: TButton;
   procedure Button1Click(Sender: TObject);
 private
   { Private declarations }
 public
   { Public declarations }
 end;

var
 Form1: TForm1;

implementation

uses Unit2;

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
 form2.Show;
end;

end.

2)Вторая форма (popup)

unit Unit2;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs;

type
 TForm2 = class(TForm)
 private
   { Private declarations }
   procedure OnActivate(var msg: TWMActivate); message WM_ACTIVATE;
 public
   { Public declarations }
 end;

var
 Form2: TForm2;

implementation

{$R *.dfm}

procedure TForm2.OnActivate(var msg: TWMActivate);
begin
 inherited;
 if msg.Active=WA_INACTIVE then Close;
end;

end.



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

Скачать: CL | DM;



Память: 0.45 MB
Время: -0.964 c
4-1101726107
NetDigger
2004-11-29 14:01
2005.01.16
Траблы с NamedPipes


14-1103808425
Koala
2004-12-23 16:27
2005.01.16
Срочно!!! посоветуйте аппарат....


6-1098771266
ArMellon
2004-10-26 10:14
2005.01.16
Народ как реливать быструю пересылку скриншотов по


9-1096063372
Jus
2004-09-25 02:02
2005.01.16
Помогите! Не могу придумать как мне обнулить анимацию! (DelphiX)


3-1102693499
Fedor
2004-12-10 18:44
2005.01.16
Вычисляемые поля




   Наверх