Re: D2006 Object inspector component



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.

.



Relevant Pages

  • Re: string delimiter
    ... >>Now the complete file is loaded in a single string. ... is a TStrings) with TMemo.Lines, ... >> How do I instruct LoadFromFile to create a new string for each line? ... or an paragraph of HTML text? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Best way to use a stringlist as a parameter
    ... TStrings descendent since it isn't one. ... So you cannot pass a TMemofield to ... It might be easier to pass a simple String value, ... TMemofield directly and extract its contents inside the Passmemo method. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Tstrings und IndexOf nicht casesensitive?
    ... Quellcode TStrings aus Unit Classes.pas ... Function IndexOFCaseSensitiv(AStrings: TStrings; Const AText: String): Integer; ...
    (de.comp.lang.delphi.misc)
  • Re: Fastcode Next String Challenge
    ... We started off with a TStrings descendant, ... TStrings, but based on a dynamic array of string. ... > another interface design is faster, is not a good thing to do. ...
    (borland.public.delphi.language.basm)
  • VB, implementing the high score within this code
    ... Private possibleAs String ... Private Function SolvePuzzleAs Boolean ... ' Calculates the possible values for all the cell ...
    (microsoft.public.dotnet.languages.vb)