I need CGXDateTimeCtrl to show right-aligned time in a cell. Unfortunally, style.SetHorizontalAlignment(DT_RIGHT) has no effect - the cell remains left-aligned.

CGXStyle style;
style.SetControl(GX_IDS_CTRL_DATETIMENOCAL);
style.SetFormat(GX_FMT_TIME);
style.SetUserAttribute(GX_IDS_UA_DATEFORMATTYPE, GX_DTFORMAT_CUSTOM);
style.SetUserAttribute(GX_IDS_UA_CUSTOMFORMAT, "HH':'mm");
style.SetUserAttribute(GX_IDS_UA_FASTINPUT, 1L);
style.SetHorizontalAlignment(DT_RIGHT);

OGrid 12.0.2

Thank you.