TGComboBox text justification

Hi,

In one of my GUIs, I have the following entry:

fCBFSizeSelect->AddEntry("512 MB ",1);

where fCBFSizeSelect is a pointer to a TGComboBox.

When I run the GUI, the text (512 MB) is always left-justified. I want that text to be right-justified.
How can I do that? I can provide more information if needed,

Thank you very much for your time and help.

Regards,

Ajay

Hi Ajay,

Sorry, but there is no simple way of achieving this, as far as I know…

Cheers, Bertrand.

Thank you Bertrand.

Not a problem. But it would have looked consistent with all other entries in the GUI which are all right-justified.

I wanted to do that just as a part of cosmetics of the GUI :slight_smile:-

Regards,

Ajay

Hi Ajay,

What do you mean with “all other entries”? Text entries for example, can be left or right-justified…

Cheers, Bertrand.

Hi Bertrand,

Yes, I mean NumberEntries and TextEntries.

Ajay

So I confirm, the text alignment can only be adjusted in NumberEntries and TextEntries. See
TGTextEntry::SetAlignment(ETextJustification mode = kTextLeft);
the mode can be kTextLeft, kTextCenterX or kTextRight

Cheers, Bertrand.