Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » FIX: ArrayCtrl to support Style
Re: FIX: ArrayCtrl to support Style [message #32076 is a reply to message #32067] |
Wed, 20 April 2011 11:01 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
that's more clear now..
attached is a version that leaves all the api as is. the ArrayCtrl::Style has paper, ink and gridcolor now. which can be overridden by the local evenink, evenpaper, etc.. if not Null..
otherwise style stuff is used.
generally, the question is how to handle Style.
on one hand, it's great to have a one-colorset-fits-all-controls possibility (deriving stuff directly from SColor, which is still used in a lot of Ctrl's) and only specifying the 'additional extensions' in Style.
OTOH it is also good to let the colors used in a Ctrl be entirely overridable in Style, i.e like paper and ink and the like. they are initialized from the common chameleon color set but are changeable anytime at runtime by editing the global Style for that Ctrl family (or a separate Style instance for some Ctrl instances only).
up to now, the Upp Ctrl's are a mix of these 2 ways. maybe generalizing would help the usability for newcomers.
(want to deal with appearance -> take a look at Style).
-
Attachment: ArrayCtrl.h
(Size: 26.26KB, Downloaded 329 times)
-
Attachment: ArrayCtrl.cpp
(Size: 62.43KB, Downloaded 309 times)
[Updated on: Wed, 20 April 2011 11:03] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 06 01:36:56 CEST 2024
Total time taken to generate the page: 0.05311 seconds
|