|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » FIX: ArrayCtrl to support Style
|
Re: FIX: ArrayCtrl to support Style [message #30234 is a reply to message #30196] |
Fri, 17 December 2010 11:58 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
a problem arises, TheIDE would need some fixes, since it is using the EvenRowColor etc.. things that are in Style now, so there one would need to use own Style per control..
EDIT:
some packages use the EvenRowColor/OddRowColor thing..
Quote: |
C:\uppsvn\uppsrc\CtrlLib\AKeys.cpp(112): keys.NoHorzGrid().NoCursor();//.EvenRowColor();
C:\uppsvn\uppsrc\ide\Goto.cpp(157): //list.EvenRowColor();
C:\uppsvn\uppsrc\ide\OutputMode.cpp(113): //package.EvenRowColor();
C:\uppsvn\uppsrc\ide\SelectPkg.cpp(316): //alist.EvenRowColor();
C:\uppsvn\uppsrc\ide\Setup.cpp(409): hlt.hlstyle.NoHorzGrid().SetLineCy(EditField::GetStdHeight() + 2);//.EvenRowColor()
C:\uppsvn\uppsrc\ide\Thisbacks.cpp(50): //list.EvenRowColor();
C:\uppsvn\uppsrc\ide\Virtuals.cpp(104): //list.EvenRowColor();
C:\uppsvn\uppsrc\RichEdit\StyleKeys.cpp(32): list.NoHorzGrid().NoCursor();//.EvenRowColor()
C:\uppsvn\uppsrc\usvn\SvnSync.cpp(26): list.NoCursor();//.EvenRowColor();
|
bazaar/Controls_4U
[Updated on: Sun, 26 December 2010 13:51] Report message to a moderator
|
|
|
|
|
|
|
|
|
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 324 times)
-
Attachment: ArrayCtrl.cpp
(Size: 62.43KB, Downloaded 304 times)
[Updated on: Wed, 20 April 2011 11:03] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 07:40:46 CET 2024
Total time taken to generate the page: 0.01973 seconds
|
|
|