Removing the Task Bar on Win CE 5.0

Tex8503

Active Member
Licensed User
Longtime User
[Solved]Removing the Task Bar on Win CE 5.0

Hey guys,
I'm working on this again and I'm pretty sure I'm doing something similar to what Erel was trying to do in the Kiosk thread to help me.

I'm using the DZHW library on the device and running

Dzhw.New1
hwndtaskbar = Dzhw.GetWindowHandle("HHTaskBar","")
Dzhw.ShowWindow(hwndtaskbar, SW_MINIMIZE)

This gets rid of the task bar at the bottom of the screen, but I'm left with with taskbar-sized hole at the bottom of my screen and I can't figure out how to get my b4P form to take up that spot.

also - I can't seem to get the taskbar back when I close the form.

Any ideas?

EDIT: the goal is to get rid of the task bar - I'm not married to the method I'm trying above. I've had a couple other possible solutions with problems too though:

1) Editing the registry and turning off 'Always on top' for the taskbar. I found the setting to turn off 'Always on Top' but even if I change the dword to 0 - the task bar remains on top, unless you go into the taskbar settings and check and uncheck the box... any idea why this happens or how to fix it?

2) Moving the taskbar. I read somewhere else online that others have accomplished this by moving the taskbar off screen. This would be a good solution - but I can't figure out how to do it inside B4P.
 
Last edited:

Tex8503

Active Member
Licensed User
Longtime User
alright... I figure this out... finally... Only took me the better part of forever - and the solution came from Erel and Agraham really...

1) Because you're using CE, you need to hard set the screen size as Erel described here: http://www.b4x.com/forum/code-samples-tips/6313-changing-form-size-windows-ce-devices.html

2) Then you need to use code based on Erel's original Kiosk code with one change and an addition.

The change is that the fullscreen command needs to a fullscreen2 and has to be set to only get rid of the menubar (IE flb.FullScreen2(True,False) )

3) Then you need to have a door to set the borderstyle (credit to agraham http://www.b4x.com/forum/code-samples-tips/2932-small-form-size-without-titles-menus.html ):

'New Code
AddObject("obj","Object")
obj.new1(False)
obj.FromControl("Form1")
obj.SetProperty("FormBorderStyle",0)

I believe the order matters - you need to set the kiosk code BEFORE you set the border style...

Anyway - I've included a sample. Hopefully this helps someone else too.

EDIT: All this does is put your application in front of the taskbar - it doesn't actually get rid of it - but it will help you get around the problem presented by Erel's original Kiosk code.
 

Attachments

  • cefullscreendemo.sbp
    1.5 KB · Views: 296
Top