Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: [Android] status bar hide and ShowMessage



Permlink Replies: 11 - Last Post: Mar 3, 2018 4:24 PM Last Post By: Dave Nottage Threads: [ Previous | Next ]
Lena Ilicheva

Posts: 83
Registered: 9/22/06
[Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 4, 2018 3:44 AM
Hello.
Project-> Options-> Version Info (Android 4.4.4) set No TitleBar
In the Object Inspector for the two forms of the application set FullScreen = true.
When start the application, everything is OK with the hide status bar.
On the main form, click on the button with ShowMessage and the status bar climbs and then hides. It looks ugly.
 
void __fastcall TFormMenu::Button2Click(TObject *Sender)
{
 ShowMessage(L"Why the status bar pops up if use ShowMessage?");
}

How to get rid of status bar when calling ShowMessage?
Maybe this is not possible for Android and FireMonkey?
RAD Berlin...

Edited by: Lena Ilicheva on Jan 26, 2018 1:11 PM
Eli M

Posts: 1,346
Registered: 11/9/13
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 5, 2018 7:15 PM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Maybe ditch ShowMessage()? Make your own message popup.
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 8, 2018 12:46 AM   in response to: Eli M in response to: Eli M
Eli M wrote:
Maybe ditch ShowMessage()? Make your own message popup.

I tried, but it did not help me. I created a separate Form with my custom message. When I call this Form the status bar again appears. :(
 
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  MultiView1->HideMaster();
  FormMenu->Show();//here my custom message
}
Eli M

Posts: 1,346
Registered: 11/9/13
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 8, 2018 5:54 PM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Yeah, I mean something like this though. Which should work unless you have a TWebBrowser on the form.

https://community.embarcadero.com/blogs/entry/cross-platform-activity-progress-dialog-for-android-ios-macos-and-windows-in-delphi-10-2-tokyo
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 9, 2018 5:27 AM   in response to: Eli M in response to: Eli M
Eli M wrote:
Yeah, I mean something like this though. Which should work unless you have a TWebBrowser on the form.

https://community.embarcadero.com/blogs/entry/cross-platform-activity-progress-dialog-for-android-ios-macos-and-windows-in-delphi-10-2-tokyo

In my application there will be several forms. Now it is clear that the call (e.g.Form2->Show()) of any form will result that the status bar will pop up.
Conclusion:
It is not possible to create application in FMX with several forms if you want to hide the status bar.
It is very sad. :(
My application shows the menu on the tablet in the restaurant and visitors do not need to see the status bar.
Scott Pinkham

Posts: 54
Registered: 3/19/07
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 9, 2018 8:42 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Lena Ilicheva wrote:
Eli M wrote:
Yeah, I mean something like this though. Which should work unless you have a TWebBrowser on the form.

https://community.embarcadero.com/blogs/entry/cross-platform-activity-progress-dialog-for-android-ios-macos-and-windows-in-delphi-10-2-tokyo

In my application there will be several forms. Now it is clear that the call (e.g.Form2->Show()) of any form will result that the status bar will pop up.
Conclusion:
It is not possible to create application in FMX with several forms if you want to hide the status bar.
It is very sad. :(
My application shows the menu on the tablet in the restaurant and visitors do not need to see the status bar.

Instead of using separate forms, you could put each 'page' in frame and show/hide the frames as needed. You can create the frames as needed, so the application will load faster.
-Scott
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 10, 2018 1:08 AM   in response to: Scott Pinkham in response to: Scott Pinkham
Scott Pinkham wrote:
Lena Ilicheva wrote:
Eli M wrote:
Yeah, I mean something like this though. Which should work unless you have a TWebBrowser on the form.

https://community.embarcadero.com/blogs/entry/cross-platform-activity-progress-dialog-for-android-ios-macos-and-windows-in-delphi-10-2-tokyo

In my application there will be several forms. Now it is clear that the call (e.g.Form2->Show()) of any form will result that the status bar will pop up.
Conclusion:
It is not possible to create application in FMX with several forms if you want to hide the status bar.
It is very sad. :(
My application shows the menu on the tablet in the restaurant and visitors do not need to see the status bar.

Instead of using separate forms, you could put each 'page' in frame and show/hide the frames as needed. You can create the frames as needed, so the application will load faster.
-Scott

Yes, I have to completely remake the interface. It is a pity that I spent a lot of time.
Another additional question:
Is this the standard android behavior that we can not use the mode to hide status bar when we use Form.Show/ShowMessage or is it a problem FMX?
Thank you all for your advice!

Edited by: Lena Ilicheva on Feb 14, 2018 7:10 AM
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: [Android] status bar hide and ShowMessage [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 14, 2018 11:30 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Lena Ilicheva wrote:

Is this the standard android behavior that we can not use the mode to hide status bar when we use
Form.Show/ShowMessage or is it a problem FMX?

It looks like it's an FMX problem, since other Android apps are able to hide the status bar. I expect it's fairly
simple, like the docs suggest:

https://developer.android.com/training/system-ui/status.html

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
E Spelt

Posts: 24
Registered: 12/26/09
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2018 2:46 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
I got some quirks when using showmessage when clicking on a TSwich. When I used the platform dialog service like : https://stackoverflow.com/questions/42852945/delphi-correctly-displaying-a-message-dialog-in-firemonkey-and-returning-the-m things worked.

Although working with frames is a good strategy.
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2018 4:33 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Rudy Velthuis (...


Posts: 7,730
Registered: 9/22/99
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2018 5:43 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Lena Ilicheva wrote:


Rather chaotic report, IMO. Try to use real steps like:

* Create new FireMonkey app
* Add this and that to main form
* Set his and that property
* Deploy
etc..

--
Rudy Velthuis http://www.rvelthuis.de

"I'm so poor I can't even pay attention." -- Unknown
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: [Android] status bar hide and ShowMessage
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2018 4:24 PM   in response to: Lena Ilicheva in response to: Lena Ilicheva
Lena Ilicheva wrote:


Have you tried my suggestion in my other reply?

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02