Recent

Author Topic: CheckBox disapears  (Read 4890 times)

carlangas

  • Jr. Member
  • **
  • Posts: 59
CheckBox disapears
« on: October 29, 2007, 12:47:43 pm »
I'm using the linux port, so I have to paint a a FillRect if I want to change my form's background, but when I try this, I can't see the checkboxes on that form, they become hidden by the background color. How could I fix it?

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: CheckBox disapears
« Reply #1 on: October 29, 2007, 03:39:25 pm »
Couldn't you change the Color property of the form?

Even if you must use FillRect, you could use a CheckGroup box.

carlangas

  • Jr. Member
  • **
  • Posts: 59
CheckBox disapears
« Reply #2 on: October 30, 2007, 08:51:07 pm »
No, it seems to be a bug in the linux version that doesn't do anything changing the Color property. The second option works, but I don't get the expected result (it keeps another background color).

Anyway, trying this, I have probed TPanel, and it does exactly what I needed. I can draw a Tpanel with the same width/height of the form, and place the components inside it. Then, you can change the background of the panel. Of course it must have some disadvantages, but is the best option I have found.

There is another annoying thing: I have to cut my Checkbox and paste it on the created TPanel, or it wouldn't show.

Thanks, Antonio.

 

TinyPortal © 2005-2018