A anaylor01 Well-Known Member Licensed User Longtime User May 28, 2011 #1 How can you determine what the current layout/screen is?
Erel B4X founder Staff member Licensed User Longtime User May 28, 2011 #2 - To find the actual width and height of the activity use Activity.Width or Activity.Height. - To get the device screen dimensions call GetDeviceLayoutValues. - Activity.LoadLayout returns a LayoutValues object with the values of the loaded variant. Upvote 0
- To find the actual width and height of the activity use Activity.Width or Activity.Height. - To get the device screen dimensions call GetDeviceLayoutValues. - Activity.LoadLayout returns a LayoutValues object with the values of the loaded variant.
A anaylor01 Well-Known Member Licensed User Longtime User May 29, 2011 #3 I need to know if Activity.LoadLayout("Screen1") or Activity.LoadLayout("Screen2") is the active screen. Upvote 0
I need to know if Activity.LoadLayout("Screen1") or Activity.LoadLayout("Screen2") is the active screen.
K kickaha Well-Known Member Licensed User Longtime User May 29, 2011 #4 You can maintain your own variable for this. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User May 29, 2011 #5 You mean create a variable that when I load a layout I set that variable to the name of the layout? I see what your saying. Cool Thanks. Upvote 0
You mean create a variable that when I load a layout I set that variable to the name of the layout? I see what your saying. Cool Thanks.
aklisiewicz Active Member Licensed User Longtime User May 30, 2011 #6 If would be cool if we could determine that by something like: IF LayoutName.Active=TRUE ......... Arthur Upvote 0
If would be cool if we could determine that by something like: IF LayoutName.Active=TRUE ......... Arthur