Forum > PDAs and Smartphones
Windows Mobile 6.5 and FullScreen ?
swierzbicki:
Hello,
I'm really lost ! I can't find a way to make my application Fullscreen !
Yes, I have read the Wiki and yes I've search arroun dthe web (google wasn't my friend).
I'm using an Motorola MC3190 Device, has anyone been able to switch to full screen ?
Thank you in advance
zariq:
Have you tried this?
http://wiki.freepascal.org/WinCE_Programming_Tips#Going_Full_Screen
swierzbicki:
Yes ! The menubar is still displayed... It's really a showstopper forme me (ans m'y usées).
zariq:
I tried it a few years ago and didn't get it to work either. Around that time I gave up on windows mobile and decided to wait for android. You could report it as a bug and see if anything happens.
swierzbicki:
Too bad for the bottom menubar but I'll live with it.
I'm almost done with my fullscreen issue : have a look at the two attached screenshoots :
The first picture display my form with it's top taskbar.
The second picture is the same form but with the taskbar disabled (see code bellow).
--- Code: ---procedure TfrmPrincipale.RemoveTaskbar(AFullScreen: Boolean);
const
MENU_HEIGHT = 20;
var
rc: TRect;
begin
if AFullScreen then
begin
GetWindowRect(Handle, @rc);
SHFullScreen(Handle, SHFS_HIDETASKBAR);
MoveWindow(Handle,
rc.left,
rc.top-MENU_HEIGHT,
rc.right,
rc.bottom+MENU_HEIGHT,
TRUE);
end
else
begin
GetWindowRect(Handle, @rc);
SHFullScreen(Handle, SHFS_SHOWTASKBAR);
MoveWindow(Handle,
rc.left,
rc.top+MENU_HEIGHT,
rc.right,
rc.bottom-MENU_HEIGHT,
TRUE);
end;
end;
--- End code ---
GetWindowRect(Handle, @rc) retreive this informations :
rc.left : 0
rc.top : 20
rc.right : 240
rc.bottom : 240
Navigation
[0] Message Index
[#] Next page