Recent

Author Topic: ReadOnly property for TRadioGroup and TCheckGroup  (Read 2634 times)

bkeevil

  • New member
  • *
  • Posts: 5
    • Prognosti Computer Services Ltd.
ReadOnly property for TRadioGroup and TCheckGroup
« on: December 19, 2013, 11:04:12 pm »
Is there a good reason why TRadioGroup and TCheckGroup don't have a ReadOnly property like most of the other visual controls do? 

Unless I'm missing something it seems like an obvious improvement.  What is the process for submitting feature requests?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: ReadOnly property for TRadioGroup and TCheckGroup
« Reply #1 on: December 19, 2013, 11:05:05 pm »
BugTracker.

Bart

  • Hero Member
  • *****
  • Posts: 3541
    • Bart en Mariska's Webstek
Re: ReadOnly property for TRadioGroup and TCheckGroup
« Reply #2 on: December 19, 2013, 11:36:40 pm »
Delphi does not have this property.
Setting Enabled to False will make it "read-only" and indicate this visually to the end user.

Bart

wp

  • Hero Member
  • *****
  • Posts: 6370
Re: ReadOnly property for TRadioGroup and TCheckGroup
« Reply #3 on: December 20, 2013, 12:17:33 am »
I'd be happy to have such a property too. In a form which is clearly intended to display read-only information the visual feedback of the grayed radiobutton looks strange and distracting.

In Delphi, there is a workaround to place the radiobutton on a disabled panel - this makes the button unchangeable but keeps its normal appearance. In Lazarus, however, the radiobutton is grayed out again.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

bkeevil

  • New member
  • *
  • Posts: 5
    • Prognosti Computer Services Ltd.
Re: ReadOnly property for TRadioGroup and TCheckGroup
« Reply #4 on: December 20, 2013, 07:05:50 am »
OK, Delphi compatibility is a reason.  One of the main problems with Delphi was that the VCL was missing many properties and event handlers and as a result people wound up having to create descendant components that did nothing but add a property or event handler or two to the stock components to get them to do what they wanted.  One of the things I'm really liking about Lazarus is that a lot of those issues have been or are being fixed.

Setting Enabled to false also makes the font "grayed" such that it doesn't look consistent with the other components and some people might not like that. 

Bart

  • Hero Member
  • *****
  • Posts: 3541
    • Bart en Mariska's Webstek
Re: ReadOnly property for TRadioGroup and TCheckGroup
« Reply #5 on: December 20, 2013, 12:47:34 pm »
Does anyone even know if the underlying widgetsets support this?

Bart