Set RadioGroup's ParentShowHint to False?
However, when the user is with the mouse over the TRadioGroup, no hint should be shown. How can I achieve this?Set property ShowHint for the RadioGroup to True, then:
One would think that setting both ParentShowHint and ShowHint to False would work too (and display nothing), but it doesn't:
Set property ShowHint for the RadioGroup to True, then:
...
If you have multiple RadioGroups, the above method will silence them all, but then you can play with the Tag property to enable/disable hint for a particular RadioGroup.
Thanks. Unfortunately it doesn't work for me, see my attached demo program with your solution.You're welcome! It works if you set Pump1DirectionRG1's ShowHint property to true, as I mentioned in my previous post.
Nevertheless, I have in total 58 (sic!) radio groups in my program. It would be a nightmare to handle them differently that some show a hint, some not.You don't have to handle it differently for all 58 radio group. If you don't want to show hint for a particular radiogroup, just set Tag to 1 and add that condition to:
In general, I need a solution in which the child of a groupbox does not show any hint, nevertheless if the groupbox itself shows a hint or not.You could file a bugreport, but if delphi behaves in a similar way, I don't think it will be changed(maybe I'm wrong here).
It seems this is not possible. The question is now, could this be implemented to the LCL for future or not. If yes, I would like to open an enhancement issue in the bugtracker.
You're welcome! It works if you set Pump1DirectionRG1's ShowHint property to true, as I mentioned in my previous post.
You don't have to handle it differently for all 58 radio group. If you don't want to show hint for a particular radiogroup, just set Tag to 1 and add that condition to:
QuoteIn general, I need a solution in which the child of a groupbox does not show any hint, nevertheless if the groupbox itself shows a hint or not.You could file a bugreport, but if delphi behaves in a similar way, I don't think it will be changed(maybe I'm wrong here).
It seems this is not possible. The question is now, could this be implemented to the LCL for future or not. If yes, I would like to open an enhancement issue in the bugtracker.
I don't know how Delphi behaves. Can one have there a hing for the GroupBox but no hint for a child of this GroupBox?See Bart's comment above. :)
@MusoQuoteI don't know how Delphi behaves. Can one have there a hing for the GroupBox but no hint for a child of this GroupBox?See Bart's comment above. :)
I don't understand. If "D7" means Delphi 7Yes Delphi 7.
this version is from 2002, so almost 20 years old. If it means Delphi 2007, this is still 14 years old.OK, fair enough. I just tested with the latest Delphi(10.4.4 - Sydney)...same behaviour.
I think such old versions cannnot be the benchmark for the development.
I don't understand. If "D7" means Delphi 7, this version is from 2002, so almost 20 years old. If it means Delphi 2007, this is still 14 years old.I don't agree. Delphi 7 was one of the last versions before the change from ANSI to UTF16 strings. Because Lazarus uses UTF8 strings it is closer to D7 than to the current version. Furthermore, Delphi is fairly conservative regarding breaking changes, so most of the features of Delphi 7 are still valid today. And Delphi did not introduce significant changes to the VCL (the counterpart of our LCL) since the XE series, most of the changes are in Firemonkey which Lazarus does not support at all. Therefore, D7 is a good basis for a reference version.
I think such old versions cannnot be the benchmark for the development.
I don't understand. If "D7" means Delphi 7, this version is from 2002, so almost 20 years old. If it means Delphi 2007, this is still 14 years old.
I think such old versions cannnot be the benchmark for the development.
Bu besides that, anyone with a newer version can test if this behaviour is still present.Delphi XE 10.3.3 behaves in the same way.
(To me, the behaviour feels like a bug.)To me, too.
Delphi XE 10.3.3 behaves in the same way.
(To me, the behaviour feels like a bug.)To me, too.