How to define NULL

HARRY

Active Member
Licensed User
Longtime User
Hi,

In the dzHW library is said that a parameter can be null. How to define this, e.g.
wh=dzHw1.GetWindowHandle(?,"TestForm")
dzHw1.ShowWindow (wh,0)

I try to use this function as, under unknown circumstances, ShowTodayScreen does not work in a program of me. In others it does.

Harry
 

sitajony

Active Member
Licensed User
I think you can write this:
B4X:
hwnd=dzHw1.GetActiveHandle
dzHw1.ShowWindow(hwnd,0)

On Device you can use Hardware library, If the .ShowTodayScreen() doesn't work you can use the KeyPress Library...
Try:
B4X:
hw.KeyPress("s") [COLOR="Lime"]'Normaly this emulate an Call Ended/Minimize all...[/COLOR]

If your Form is in fullscreen I noticed that it's hard to minimize it...
I hope it's usefull

Edit: An other soluce:

You can also use the Door library:

B4X:
door.New1
door.FromControl("TestForm")
door.SetPropriete("WindowState",0)

But i think this work only on desktop but not sure...
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…