1

Using Delphi 10.4.1

Buttons, when set to Invisible, will hide in iOS. However, the same buttons will not hide in iPadOS 14.4.

Similarly, the text on a TLabel will not refresh automatically when updated.

However, when I click the iPad button (iPad Air), and re-show the iPad app, all the changes that were supposed to be made show up!

I've tried TControl.Repaint() and even the inefficient Application.ProcessMessages(). Both do not work.

Any suggestion?

2
  • 1
    A minimal reproducible example would help Commented Feb 19, 2021 at 21:05
  • 1
    @DaveNottage was about to work on an example, then found the solution as below. Thanks for replying. Commented Feb 20, 2021 at 11:44

1 Answer 1

2

After final testing on a simple project, I concluded that:

  • this issue does not exist in a simple project

If I'm able to replicate this issue again in a simple project, I'll update again.

  • however, if you experience this in a bigger complex project instead of placing the controls on a TToolbar, it may cause this problem of not updating the controls (whether setting the text or hiding it). My solutino is: do not use TToolbar if deploying to iPad. iPhone works fine.

Note this happens on iPad but not iOS for some strange reason.

Sign up to request clarification or add additional context in comments.

3 Comments

After further testing with a simple example, it's in my bigger project that this happens. :( for a project with simple Toolbar etc, it does not happen. Shall I remove my answer?
I'd rather you edit (or remove, if it's a mistake) the answer once you find out what the problem is :-)
Noted, I've updated as per actual experience.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.