Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Feb 12, 2008 - 4:16 PM
|
Hi,
I need to place a check-box next to a color box. The layout should be one of two:
+------------------------------------+
| CLR CHK DRP |
+------------------------------------+
Or:
+------------------------------------+
| CHK CLR DRP |
+------------------------------------+
When CHK is the check-box CLR is the color box. DRP is the drop-down button of the color drop-down. The only way I came close was this:
+------------------------------------+
| CLR CHK DRP |
+------------------------------------+
How can I switch the places of the color and the check-box? Thanks, Ron.
|
|
Offer Har
|
Feb 14, 2008 - 5:26 AM
|
|
|
Offer Har
|
Feb 13, 2008 - 6:40 AM
|
Correct - no text only check box, color box and drop-down. Will try that out...
|
|
Technical Support
|
Feb 13, 2008 - 6:36 AM
|
Yes, you are right. But we assume you are not displaying text in color cells.
|
|
Offer Har
|
Feb 13, 2008 - 4:46 AM
|
Will it true to say that I need to switch rcIcon and rcCheck ?
|
|
Technical Support
|
Feb 13, 2008 - 3:31 AM
|
You should override the CExtGridCell::OnCalcLayout() in your color grid cell class. Your method should invoke the parent class method and then you should shift the rectangles computed by default.
|
|