RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ValEdit.TDisplayOption Enumeration

TDisplayOption and TDisplayOptions control the appearance of a value list editor.

Pascal
TDisplayOption = (
  doColumnTitles,
  doAutoColResize,
  doKeyColFixed
);
C++
enum TDisplayOption {
  doColumnTitles,
  doAutoColResize,
  doKeyColFixed
};

ValEdit

TDisplayOption is a set of TDisplayOptions values. The possible values of TDisplayOptions are

Option 
Meaning 
doColumnTitles  
The first row of the value list editor is a fixed (nonscrolling) row that displays the captions specified by the TitleCaptions property.  
doAutoColResize  
When the editor is resized, the column widths automatically adjust so that they completely fill the new width of the editor. If DisplayOptions does not include doKeyColFixed, each column has a width equal to half the width of the editor. Otherwise, the value column takes up any space left over after the fixed (key) column.  
doKeyColFixed  
The first (key) column of the value list editor is fixed in width. When the value list editor is resized, only the second (value) column resizes. This option is only used when DisplayOptions includes doAutoColResize.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!