Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

WinCE task bar

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Fortuny

Hi ALl.

Do you know any method to completely hide the top taskbar on a WinCE 5 handheld device ?
The following snippet works

but it only disables the topmost taskkbar so the true clickable taskbar cannot be dropped down
BTW, at the bottom of the screen theare are two more buttons: the Windows button on the bootom left and the OK (sometimes a cross) button on the bottom right. Is it any way to hide or disable them ?

{$IFDEF WINCE}
var
     FTaskHandle : THandle;
   FTaskHandle := FindWindow('HHTaskBar', nil);
   ShowWindow(FTaskHandle, SW_HIDE);
   WindowState := wsMaximized
{$ENDIF}

Thanks,

Antonio.

Reply by email

Antonio Fortuny
to Antonio Fortuny

Le 06/07/2012 13:59, Antonio Fortuny a ?crit :

Show quoted text 20 lines
Hi ALl. Do you know any method to completely hide the top taskbar on a WinCE 5 handheld device ? The following snippet works but it only disables the topmost taskkbar so the true clickable taskbar cannot be dropped down BTW, at the bottom of the screen theare are two more buttons: the Windows button on the bootom left and the OK (sometimes a cross) button on the bottom right. Is it any way to hide or disable them ? {$IFDEF WINCE} var FTaskHandle : THandle; FTaskHandle := FindWindow('HHTaskBar', nil); ShowWindow(FTaskHandle, SW_HIDE); WindowState := wsMaximized {$ENDIF}
After some tests I've got the answer for the first item.
Intert this snippet into the FormCreate event:
   {$IFDEF WINCE}
   FTaskHandle := FindWindow('HHTaskBar', nil);
   ShowWindow(FTaskHandle, SW_HIDE);
   {$ENDIF}
and the next one in the FormShow event
   {$IFDEF WINCE}
   Height := Screen.Height;
   Width := Screen.Width;
   Top := 0;
   Left := 0;
   WindowState := wsMaximized
   {$ENDIF}
The topmost taskbar is hidden bte the bottom one not so my form shown
below the bottom taskbar.

Antonio.

Reply by email

Antonio Fortuny
to Antonio Fortuny: Hi ALl. Do you know any method to completely hide the top taskbar on a WinCE 5 handheld…

Along with preceeding code snippet, the property BorderStyle should be set to bsNone to have the form overlapping the top taskbar but then we loose the Form window title. The bottom taskbar still overloads the displayed form.

The very best should be to have the form title to be displayed (for which I guess that a border should be drawn) along with to bottom taskbar being overloaded.

Antonio.

Reply by email