Graeme Geldenhuys schreef:
On 2/5/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:

Depending on the readonly property an OnwerDrawn combobox (i.e. with style csOwnerDrawFixed or csOwnerDrawVariable) behaves like a combobox with csDrownDown (readonly:=false) style or like a combobox with csDrownDownList (readonly := true)
style.

And what happens with Style = clDropDownList (readonly := true) and
then you set ReadOnly = False?  The two properties are not mutually
exclusive, which causes confusion, which is probably why Borland
didn't include a ReadOnly property.

The style changes to cbDropDown.



How does the VCL handle the difference between dropdown and dropdownlist for
csOwnerDrawFixed and csOwnerDrawVariable.


Ummm...I give up. Tell me?  :-)

Ok, seriously...

-------------  From the Kylix 3 Help --------------------
csDropDown      Creates a drop-down list with an edit box for manually
entered text. All items are strings of the same height.

csDropDownList  Creates a drop-down list with no edit box; the user
cannot enter text manually. All items are strings of the same height.

csOwnerDrawFixed Creates an owner-draw drop-down list with no edit
box. Each item in the list is the height specified by the ItemHeight
property.

csOwnerDrawVariable Creates an owner-draw drop-down list with no edit
box. List items can have varying heights.
---------------------------------------------------------------

 From this I conclude that csDropDown in the only one where the user
can edit text (ReadOnly = False).  All other options, there is no edit
box, which means ReadOnly = True.  Am I understanding the help
correctly?  If so, I still don't see the use of the ReadOnly property
in LCL.

Well, the LCL extends this. In the LCL you can edit text in all styles except csDropDownList.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to