Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Is it possible to center a check box style in an OI edittable?

This is in OI 9.4.4. I have the data justification set to Centered, but the checkbox still comes out left justified.
Thanks in advance for your help.

Comments

  • I think using the COLSTYLE method with the DTCS_CHECKBOXCENTER$ (0x40000000) value (see RTI_STYLE_EQUATES) should do this for you.
  • Hi Don,
    How exactly do I apply that style?
    I am currently using the following logic to make the column into a checkbox:

    ColStyle = Send_Message(CTL%Edt_User_Info$, "COLSTYLE", 2)
    Colstyle = 65536
    ColStyle = Send_Message(CTL%Edt_User_Info$, "COLSTYLE", 2, ColStyle)

    I tried your suggestion by replacing the second statement with:

    Colstyle = DTCS_CHECKBOXCENTER$

    The check box doesn't show at all.

    Thanks,
    Roger
  • Try using BitOr() as you see in the other examples.
  • That worked, but it requires doing the bitor on the DTCS_CHECKBOX$ as well. Thanks.
  • ColStyle = Send_Message(CTL%Edt_User_Info$, "COLSTYLE", 2)
    ColStyle = bitor(ColStyle, DTCS_CHECKBOX$)
    ColStyle = bitor(ColStyle, DTCS_CHECKBOXCENTER$)
    ColStyle = Send_Message(CTL%Edt_User_Info$, "COLSTYLE", 2, ColStyle)
Sign In or Register to comment.