Re: D2006 Object inspector component
- From: Jim P <Jim_P@xxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 12:27:03 -0700
DoctorC wrote:
Jim P pisze:
Tvaluelisteditor
Is it possible to divide the values in categories with this component?
not directly - - -
it works by having a set of strings that are name value pairs - - with typically and '=' as the separator character (changeable)
you would then have to use your own draw of each cell to provide the functionality of the OI.
say have the Plus or minus or other special character as the first character. if present - - then you know you have a Category heading - -
and change the color or font or any combination as you are drawing the cell. add special logo - - - the plus or minus symbol that OI uses for example.
Then draw the next item in the next cell - - -
(if it is a plus - skip to the next special character - - - )
----
it might be simpler to have a Tstringlist with the information that you
need to display - - -
and then simply reflect what is to be displayed in the Tvaluelisteditor
Note that the Tstringlist can have objects attached to each string - - -
this can be the drop down list for those that need it - - or
and information for triggering other action such as the font select in OI.
also note that Tstringlist and Tvaluelist editor (it uses Tstrings internally - have search and return functionality - - -
that is can search on the name (first col) and return the value in the second col. so precise linking is not needed - - it is taken care of by the names (if there are no duplicates )
----------------
more comments about the objects that can be added - - to each string
this is any object of any type can be added - - to each string - -
and these objects can be other Tstringlists and each string in the Tstringlist can have an object attached - - - and if they are Tstringlist - - each can have an object attached - - - so this can be a bit crazy - - really crazy - - - if you need or desire - - -
Jim P.
.
- References:
- D2006 Object inspector component
- From: DoctorC
- Re: D2006 Object inspector component
- From: Jim P
- Re: D2006 Object inspector component
- From: DoctorC
- Re: D2006 Object inspector component
- From: Jim P
- Re: D2006 Object inspector component
- From: DoctorC
- D2006 Object inspector component
- Prev by Date: Re: Rich Edit and wordwrap
- Next by Date: String access error in class
- Previous by thread: Re: D2006 Object inspector component
- Next by thread: Re: D2006 Object inspector component
- Index(es):
Relevant Pages
|