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

Фокус в MDI приложении.   Найти похожие ветки 

← →
Vovans   (2004-03-23 21:59) [0]

Народ, подскажите пожалуйста, как вернуть фокус в дочерние окошко после, скажем использования, ComboBox на главной форме.
Вот мой код, подскажите пожалуйста что не так.
procedure TForm1.ComboBox1Change(Sender: TObject);
var i:integer;
begin
if (activeMDIchild as Tform2)=nil then begin showmessage("Íè÷åãî íå çàãðóæåíî"); exit; end;
for I := MDIChildCount-1 downto 0 do
begin
(MDIchildren[i] as Tform2).richedit1.SelAttributes.name:=form1.ComboBox1.text;
end;
(MDIchildren[0] as Tform2).richedit1.setfocus;
end;


← →
Vovans   (2004-03-23 22:25) [1]

!!!!!!!!!!!ЛЮДИ!!!!!!!!!!!
Вы меня слышите?!?!?!!?!?!?


← →
Deflorator++   (2004-03-24 00:48) [2]

может и тупо, но я делаю так:
TMDIChild(MDIChildren[i]).BringToFront;
PostMessage(TMDIChild(ActiveMDIChild).RichEdit2.Handle, WM_LBUTTONDOWN, 0, 0);


← →
Diamond Cat ©   (2004-03-24 04:24) [3]

а прото setfocus не катит???



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

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



Память: 0.44 MB
Время: 0.032 c
9-1063739901
DolginD
2003-09-16 23:18
2004.04.11
игра the Empire


11-1060548296
Dimaxx
2003-08-11 00:44
2004.04.11
Гэндальфу


1-1080323670
Anton
2004-03-26 20:54
2004.04.11
QReport. Компоненты фильтра экспорта


6-1079792117
Ihor
2004-03-20 17:15
2004.04.11
Delphi&LAN


7-1075277667
ogursoft
2004-01-28 11:14
2004.04.11
"Гладкий прогрессбар" в XP




   Наверх