Recent

Author Topic: KOL CE - Can't access Form.Handle on FormCreate Event.  (Read 4211 times)

oranke

  • New member
  • *
  • Posts: 8
    • Really poor developer...
KOL CE - Can't access Form.Handle on FormCreate Event.
« on: November 21, 2008, 12:17:54 pm »
Hello Yury, I'm really thanks for your greate library  :D

I use WinCE 5.0 core machine and you suggested a code for hide menu area.

http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&p=25283#25283

Code: [Select]

Form.CreateWindow;
DestroyWindow(SHFindMenuBar(Form.Handle));
Form.BoundsRect:=GetWorkArea;
Form.HasBorder:=False;


But in new KOL-CE 2.80.2, that did not work.
So I checked Form.Handle in KOLForm1FormCreate event, but it was 0.

Code: [Select]

procedure TForm1.KOLForm1FormCreate(Sender: PObj);
begin
  Button1.Caption := IntToStr(Form.Handle);
end;


How can I fix this probrem?

oranke

  • New member
  • *
  • Posts: 8
    • Really poor developer...
Re: KOL CE - Can't access Form.Handle on FormCreate Event.
« Reply #1 on: January 28, 2009, 01:05:44 pm »
It just my mistake ~~ :P

I forgot "Form.CreateWindow" and now it works fine~.