Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit and AutoSelect and SelectAll #104

Open
shineworld opened this issue Nov 13, 2024 · 1 comment
Open

Edit and AutoSelect and SelectAll #104

shineworld opened this issue Nov 13, 2024 · 1 comment
Assignees

Comments

@shineworld
Copy link

shineworld commented Nov 13, 2024

I'm using DelphiFMX 1.0.9 but this happen also in 1.0.8.
If in Delphi Designer I set Edit.AutoSelect the settings is in the pyfmx file but raise an error during python load phase.

If I use Edit.OnEnter to activate Edit.SelectAll this does not select graphically the test but in Edit.SelStart and Edit.SelLength the
values are correct:

    def __on_edit_enter(self, Sender):
        # TAKE CARE
        # =========
        # DelphiFMX does not support AutoSelect property.
        # I've tried to force SelectAll on the OnEnter event but seems does not work!
        Sender.SelectAll()
        Sender.Repaint()
        self.Caption = f"Sender : {Sender.name} | {Sender.Text} | {Sender.SelStart} | {Sender.SelLength}"

image

@lmbelo
Copy link
Member

lmbelo commented Dec 9, 2024

Hi @shineworld,
Thank you for reporting this issue. I’ll investigate and get back to you with a solution as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants