Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Button disappiers



Permlink Replies: 3 - Last Post: Jun 18, 2014 8:24 AM Last Post By: Jeff Overcash (...
Janne Kekki

Posts: 7
Registered: 7/12/14
Button disappiers
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 17, 2014 11:52 AM
Hello,

I have this kind of problem. I have simple application where is one TWebBrowser and one TButton component. If I leave it background and phone goes to screensaver state. And after that if I use application again TButton component disappiers. TButton is used to kill my application using Application.Terminate.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Button disappiers
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 17, 2014 12:02 PM   in response to: Janne Kekki in response to: Janne Kekki
Am 17.06.2014 20:52, schrieb Janne Kekki:
Hello,

I have this kind of problem. I have simple application where is one TWebBrowser and one TButton component. If I leave it background and phone goes to screensaver state. And after that if I use application again TButton component disappiers. TButton is used to kill my application using Application.Terminate.

Hello,

1. why has your app a "kill button" anyway? Android apps are either
terminated by the user via swiping them off to the right of the
device or if the system should run out of ressources and your app
has not been used longest (in comparision with other apps)

2. You might want to trap the system events which should afaik tell
you that your app is being brought to foreground again and then do a
screen refresh/repainting. That might help.

Greetings

Markus
Janne Kekki

Posts: 7
Registered: 7/12/14
Re: Button disappiers
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2014 6:43 AM   in response to: Markus Humm in response to: Markus Humm
How to refresh or repaint form components in Firemonkey? I used Realign but it doesnt work my button still disappiers. Now it disappiers sometimes when I start my application.

Markus Humm wrote:

Hello,

1. why has your app a "kill button" anyway? Android apps are either
terminated by the user via swiping them off to the right of the
device or if the system should run out of ressources and your app
has not been used longest (in comparision with other apps)

2. You might want to trap the system events which should afaik tell
you that your app is being brought to foreground again and then do a
screen refresh/repainting. That might help.

Greetings

Markus
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Button disappiers
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2014 8:24 AM   in response to: Janne Kekki in response to: Janne Kekki
Janne Kekki wrote:
How to refresh or repaint form components in Firemonkey? I used Realign but it doesnt work my button still disappiers. Now it disappiers sometimes when I start my application.

Calling Invalidate on the component will cause it to repaint.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted corridors of Whitehall.
(Fish)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02