Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Right aligned checkbox
Tue, Oct 13 2015 7:05 AMPermanent Link

Matthew Jones

I think a right-aligned version of the TCheckBox, perhaps
TRightCheckBox, would be a good addition. Display would be like:

Enable action: [x]

This is particularly good for display of info - my current case I have
text items like:

Last data: Today, 3pm

and I want the visual check, but it looks wrong on the left for this
purpose.

Just a thought.

Matthew
Tue, Oct 13 2015 7:32 AMPermanent Link

Christian Kaufmann

> I think a right-aligned version of the TCheckBox, perhaps
> TRightCheckBox, would be a good addition. Display would be like:

Good idea. Or it could be like in Delphi: New property Alignment:TLeftRight for the regular
checkbox. I think this could be done quite easy by changing the Layout for the Icon element.

As far as I understand interfaces I would try like this:

 TMyCheckBox = class(TStateButtonControl)
 protected
   function CreateInterfaceElements; override;  
 end;


The only thing I don't see without testing is how to access the FIconElement and the
FCaptionElement in order to change their Layout properties.


cu Christian
Tue, Oct 13 2015 11:25 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< As far as I understand interfaces I would try like this:

 TMyCheckBox = class(TStateButtonControl)
 protected
   function CreateInterfaceElements; override;  
 end; >>

No, don't use that method.  I'll try to work up an example of how to do this, which means that I'll probably just modify the existing check box control. Smile

<< The only thing I don't see without testing is how to access the FIconElement and the FCaptionElement in order to change their Layout properties. >>

That's where things get a little difficult, because they aren't exposed anywhere.

Tim Young
Elevate Software
www.elevatesoft.com
Image