EFFECTIVE WORKING SCREENRECT doesnt work with FullScreenMode
Posted: Sat Dec 20, 2014 3:53 am
Why doesn't effective working screenrect or most of the screenrect type functions on mobile work when the fullscreenmode is set?
I feel that Livecode is suppose to make developing on multiple screens easy, so why is it that I am continually having to find out how livecode works to just be able to do simple actions that ideally take one line of code.
By looking at the forums, I noticed that a lot of people are having trouble with finding a way to find the top edge of the mobile keyboard. Maybe I am wrong and there is a simple solution. Please someone tell me that there is a simple solution to this. If not I have created a solution that kind of works within (+/-) a few pixels.
Here is the solution I created:
This works for most devices, but will be a few pixels off on some devices
I feel that built into the FullScreenMode functionality should be a way for the LC engine to translate the pixels of the screen to the pixels of the stack because they are much different
I just feel frustrated because Livecode creates one of the best tools ever! Then has one simple and most needed feature that doesn't work. Why go 95% of the way to making it usable and then stop??
How do you feel about this?
-Will
I feel that Livecode is suppose to make developing on multiple screens easy, so why is it that I am continually having to find out how livecode works to just be able to do simple actions that ideally take one line of code.
By looking at the forums, I noticed that a lot of people are having trouble with finding a way to find the top edge of the mobile keyboard. Maybe I am wrong and there is a simple solution. Please someone tell me that there is a simple solution to this. If not I have created a solution that kind of works within (+/-) a few pixels.
Here is the solution I created:
Code: Select all
constant tBuffer = 2 --I did this just to seal up any line that happened to be showing
on KeyboardActivated
put round((item 4 of the effective working screenrect) * (the height of me) / (item 4 of the screenrect - item 2 of the effective working screenrect) - item 2 of the effective working screenrect) + tBuffer into tScreenBottom
set the bottom of grp "MyGroup" of this card to tScreenBottom
end KeyboardActivated
I feel that built into the FullScreenMode functionality should be a way for the LC engine to translate the pixels of the screen to the pixels of the stack because they are much different
I just feel frustrated because Livecode creates one of the best tools ever! Then has one simple and most needed feature that doesn't work. Why go 95% of the way to making it usable and then stop??
How do you feel about this?
-Will