This project is read-only.

flat style input controls; Mirroring problems

Sep 19, 2009 at 2:46 PM
Edited Sep 19, 2009 at 2:48 PM

Hello,

I have two minor problems:

1. I'd like the combo boxe and check box (and possibly button) cells to have a flat look. Is that possible and how?

2. I use a mirrored grid (right to left direction of columns; rtl), but miroring the structure of the grid does not mean I want the text in the cells mirrored or the picture of the checkbox mirrored... But thats what happens!

I managed to overcome mirroring for text cells and combo cells by using overrides of the corresponding views:

    public class RTLTextCellView: SourceGrid.Cells.Views.Cell
    {
      public RTLTextCellView()
      {
        this.ElementText = new DevAge.Drawing.VisualElements.TextRenderer();
      }
    }

    public class RTLTextDisabledCellView: SourceGrid.Cells.Views.Cell
    {
      public RTLTextDisabledCellView()
      {
        this.ElementText = new DevAge.Drawing.VisualElements.TextRenderer();
        this.BackColor = Color.Silver;
      }
    }

    public class RTLCbxCellView: SourceGrid.Cells.Views.ComboBox
    {
      public RTLCbxCellView()
      {
        this.ElementText = new DevAge.Drawing.VisualElements.TextRenderer();
      }
    }
Unfortunatly it does not work for checkboxes. That is waht I tried:
    public class RTLCheckBoxView: SourceGrid.Cells.Views.CheckBox
    {
      public RTLCheckBoxView()
      {
        this.ElementText = new DevAge.Drawing.VisualElements.TextRenderer();
      }
    }

How an I redraw the checkbox to have the usual left-to-right view?
TIA
gold
Sep 23, 2009 at 8:39 PM

Anybody out there?

Sep 24, 2009 at 10:09 AM

We are here, but no concrete help to you :)

I guess you willl have to work it out yourself, and then post a solution here for others to see