Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
750
column style set to button and image justification
posted

Hi!

I've looked around a little on this form and haven't seen this problem. Here's the situation: I have a column in a grid with a style Button and a datatype bitmap. First problem is possibly more of a misunderstanding on my part, to properly display the bitmap I have to set the set both the ButtonAppearance.Image and the cell Value to the bitmap. Otherwise I only see the bitmap when I mouse over the button (without clicking on it). I have the CellActivation set to ActivateOnly.

The first problem is tolerable, since it has no effect on the user. The second problem is what's forced me to post. I set both the Value and the ButtonAppearance.Image to the desired bitmap value the the bitmap is displayed nicely. However, when I mouse over the cell/button (again without clicking on the cell) it left justifies the image. When I mouse out of the cell, it returns to center justification.  Take a look at the attached image.

When I click on the button it leaves the image left justified until I move out of that cell. It's as if there's a separate Appearance object for the cell when it's activated. So far I've only found three places that could potentially control the justification:

  • Column appearance: this is set for all values in the column. I've set the HAlign and VAlign to Center and Middle, respectively, inside the designer.
  • Cell.ButtonAppearance: this is a property on the cell itself. Again I've set HAlign and VAlign.
  • Cell.Appearance: again, I've set the HAlign and VAlign values.

Any ideas how I can fix this? Is there an appearance setting for an activated or highlighted (mouse-over) button/cell?

Thanks!

Craig

Parents Reply Children
No Data