Lazarus

Miscellaneous => Suggestions => IDE/CodeTools => Topic started by: Gald on June 12, 2021, 10:25:05 pm

Title: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Gald on June 12, 2021, 10:25:05 pm
I know this is has nothing to do with Lazarus, but with the OS, which is not so user-friendly.
Linux, as far as I know, can't do simple things as I did in these gifs, it's quite buggy and needs a precisely horizontal mouse direction to the left.

My suggestion to improve productivity on Object Inspector while using Linux is to automatically select the text when the Row of the Object Inspector gets focus.

What do you think about it?
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: MarkMLl on June 12, 2021, 10:27:57 pm
This is far more to do with whatever widget set you're using than with Linux.

MarkMLl
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Gald on June 12, 2021, 11:05:18 pm
But the problem does exist, right?
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: lucamar on June 12, 2021, 11:54:06 pm
But the problem does exist, right?

Not really. It's more a user problem: you're used to the behaviours of other OSs and find yourself a little "lost" in Linux. Other people (like, say, I myself) are more used to the "normal" Linux behaviour (if there is such a thing) and would find strange if Lazarus behaved otherwise.

For example, first thing I do after an initial install of Lazarus on Linux is to change a lot of the hotkeys to Linux's "standard": Ctrl+W to close an editor Window, and so on, because a lot of the default hotkeys (with Ctrl+, Alt+ some function key) are usually taken already by the Window Manager to change workareas, virtual screen, or whatever. For similar reasons, our default Linux application template has a FileExit action associated to Ctrl+Q, etc.

In the end it's a question of expectations, and the proper (or conventional) thing to do is to follow the platform rules as close as possible, even such "loose" rules as Linux has, not try to mimic in one system the behaviour of another.

IMHO, of course :)
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Leledumbo on June 16, 2021, 06:28:44 pm
Does this gif show your expectation?
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Gald on June 17, 2021, 04:28:25 am
Does this gif show your expectation?

No, because if you type something after clicking in Align, you'll type after the text, and not replacing it.
Let's say you want to type "alRight":

In this scenario, the combox won't help you to rewrite the correct content, but instead will right something like the related image.
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: zeljko on June 17, 2021, 12:43:08 pm
Looks like AutoSelect of editable control does not work under Linux when control gets focus via command SetFocus.
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Leledumbo on June 17, 2021, 09:17:23 pm
In this scenario, the combox won't help you to rewrite the correct content, but instead will right something like the related image.
Ah, I see. I didn't quite catch what you mean earlier. In this case, it's the TComboBox implementation inside the object inspector grid. I believe this is a custom component, as trying other similar IDE (Qt Creator) it also draws its own version, so the behavior can be changed. It already behaves the way you expected for TEdit fields, so TComboBox should be possible as well.
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: AlexTP on June 17, 2021, 09:52:21 pm
I confirm this issue and posted report
https://bugs.freepascal.org/view.php?id=39015
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: JuhaManninen on June 18, 2021, 03:51:34 pm
In this case, it's the TComboBox implementation inside the object inspector grid. I believe this is a custom component, as trying other similar IDE (Qt Creator) it also draws its own version, so the behavior can be changed. It already behaves the way you expected for TEdit fields, so TComboBox should be possible as well.
Actually a native LCL TComboBox is used there. One TEdit, one TComboBox and one (custom drawn) Checkbox are first created and then placed on the focused cell as appropriate.
Title: Re: Object Inspector is smart in Windows but not in Linux (Mint & Manjaro at least)
Post by: Leledumbo on June 22, 2021, 11:43:39 am
Actually a native LCL TComboBox is used there. One TEdit, one TComboBox and one (custom drawn) Checkbox are first created and then placed on the focused cell as appropriate.
Owh, so the behavior is native to the widgetset then. Or is it not?
TinyPortal © 2005-2018