Recent

Author Topic: HowTo: FullScreen application (TaskBar + BottomBar not visible)  (Read 5056 times)

vincococka

  • Full Member
  • ***
  • Posts: 101
Hi all,

let me first time contribute here.
I`d like to show you how to create fullscreen application for windows mobile.

We need following ingrediences :)
1, Form designer -> Properties of Form1 (or FormX/Y/Z etc)
  BorderStyle -> bsNone
  BorderIcons -> []
  WindowState -> wsMaximized

2, Code required

  a, Form1.Show (handle property exists, dont be afraid)
      SetWindowPos(Handle, HWND_TOPMOST, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);   // fullscreen

  b, Form1.Activate
    ShowWindow (SHFindMenuBar(Handle), SW_HIDE); // hides bottom bar

  c, Form1.Deactivate
      SipShowIM(SIPF_OFF); // hide keyboard - not required


PS: this worked for me, but your mileage may vary

Regards,
  V.
---
  Guide me God and I`ll find you

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: HowTo: FullScreen application (TaskBar + BottomBar not visible)
« Reply #1 on: July 13, 2014, 01:55:26 pm »
Hi vincococka,

Thanks for posting & welcome! If you want to, you can also/instead contribute this kind of info on the wiki where it is perhaps a bit easier to find, e.g. on this page:
http://wiki.lazarus.freepascal.org/Windows_CE_Interface

... but of course, contributing on the forum is fine, too!
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018