in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

RibbonEditBox alignment when disabled

Last post 07-02-2008 7:51 PM by shamirj. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-02-2008 2:24 PM

    RibbonEditBox alignment when disabled

    When I change the enabled property of a RibbonEditBox, its vertical alignment changes as does the alignment of other components above and below it. Is this a known behavior and is there a workaround to maintain the alignment?

     

    Thanks in advance,

    Shamir

    Filed under:
  • 07-02-2008 4:50 PM In reply to

    Re: RibbonEditBox alignment when disabled

    Hi Shamir,

    How did you change the vertical alignment of a RibbonEditBox?
    It doesn't seem to have the corresponding property.

    You might change alignment of the embedded TextBox control
    via the RibbonEditBox.TextBox property. If so, that was an
    undocumented trick. Then, you will have to update the modified
    property each time when the other properties of the RibbonEditBox
    have changed, for example, when it becomes enabled/disabled
    or visible/invisible.

    We are planning to add the TextAlign property to the
    RibbonEditBox soon.

    Regards,

    -Andrey
  • 07-02-2008 5:56 PM In reply to

    Re: RibbonEditBox alignment when disabled

     Hi Andrey:

     I didn't change the  vertical alignment. All I did was I had 3 RibbonEditBoxes one above the other in one column and in the adjacent column I had 3 more RibbonEditBoxes, again one above the other. In one of the columns I set the 'Enabled' property for all the RibbonEditBoxes to false and in the other column I set the 'Enabled' property to true. The end result was that the column disabled, the top and bottom RibbonEditBoxes moved closer to the vertical center. In other words, they no longer aligned to the RibbonEditBoxes they are adjacent to.

     I hope that is clearer.

     Thanks,

    Shamir

  • 07-02-2008 6:16 PM In reply to

    Re: RibbonEditBox alignment when disabled

     Andrey:

     Actually, when you disable a RibbonEditBox the vertical and horizontal placement both change.

     Shamir

  • 07-02-2008 7:36 PM In reply to

    Re: RibbonEditBox alignment when disabled

    Shamir,

    Hopefully, this problem has now been fixed in the following build:

    http://download3.componentone.com/pub/Net/c1ribbon/misc/C1Ribbon.2_2.0.20082.102.zip

    Though I'm not sure because I was unable to reproduce the
    issue on my machine. If it is not fixed please send me a small
    sample with a C1Ribbon and several RibbonEditBox items
    that shows this issue?

    Thanks.

    -Andrey
  • 07-02-2008 7:51 PM In reply to

    Re: RibbonEditBox alignment when disabled

     That did the trick Andrey. Thanks for your help.

Page 1 of 1 (6 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.