Lazarus

Programming => Packages and Libraries => KOL => Topic started by: bobby100 on September 13, 2009, 08:57:45 pm

Title: KOL-CE on PNA
Post by: bobby100 on September 13, 2009, 08:57:45 pm
I'm just starting my adventures in WinCE world, so I got to some beginner problems.
I'm trying to create a start-up menu for my GPS (Becker Z103 with WinCE 5.0)
I'm using KOL-CE because of EXE-size, but I got into problems with fullscreen.
There is no Desktop on my PNA, so I have no taskbar, but I can't get KOL-CE to draw on the area where the taskbar is to be found on PDA devices.
My app can't extend to the bottom of the screen. I always get a gray strip on the bottom of the screen.

Is there any solution for this problem?
Title: Re: KOL-CE on PNA
Post by: chrgra on September 13, 2009, 09:21:59 pm
hello,

for the bottom bar, i have no solution, but for the taskbar i do the following

procedure TForm1.KOLForm1Show(Sender: PObj);
{$ifdef wince}
Var
  hTaskBar : handle;
{$endif}
begin
  {$ifdef wince}
  //hiding the taskbar, but a for you the taskbar has allready been hidden?
  hTaskBar := findwindow('HHTaskBar','');
  ShowWindow(hTaskBar,SW_HIDE);
  {$endif}
 // i think the following three lines will do the trick
  form.HasCaption:=false;
  form.Top:= 1;
  form.Height := 320;

end;   


regards chris Gradussen
Title: Re: KOL-CE on PNA
Post by: bobby100 on September 13, 2009, 09:29:37 pm
Thanks, but I made a mistake in my explanation of the problem.
(I have forgot that taskbar is on top of the screen on PDAs)
I have no problem with the top part of the screen, but with the bottom part of the screen.
There is a gray strip on the bottom part of the screen that I can't get rid of.
TinyPortal © 2005-2018