Re: Modern user interface elements will be added to MFC!



Robert Giesecke wrote:

Why would you need such a thing?
In SWF, a ListBox doesn't necessarily hold strings, but objects and
you chose one property to be the DisplayMember. How would you write
this into a file? Binary serialization?

Well, exactly that is the problem: it gets so complicated and
convoluted. You keep on instantiating classes and setting properties to
do something you do with one or two lines in Delphi. Listboxes or
comboboxes containing strings are IMO still the common case. That they
decided to use objects doesn't make them more useful for the common
case.

What I hate about such components in WinForms is that they do not have
a uniform way to handle strings, like TStrings in the VCL. In some,
strings are exposed as an array, in others, as a class (but not the
same kind of class in each of them), or a list, etc.
--
Rudy Velthuis [TeamB]

"About the use of language: it is impossible to sharpen a pencil
with a blunt axe. It is equally vain to try to do it with ten
blunt axes instead." -- Edsger W. Dijkstra
.



Relevant Pages

  • Re: AutoComplete ComboBox Search on Substring for KeyPress
    ... AutoCompleteSource properties of the combobox, ... The second is a ListBox (mine is named ArtistNameList. ... list of strings and those strings will be bound to the listbox. ... Private Sub ArtistName_TextChanged(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Drag and drop between ListBoxes
    ... I need to be able to move strings between the two at will. ... However, the built in drag and drop functionality seems very, very, limited (ie, nothing more than functionally useless cursor changes and additional events that would be easily attainable without built in dragging and dropping). ... I am having issues with removing the old data from the original ListBox. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Array oder Listbox?
    ... > zwischen Strings berechnen soll und mir als Beispiel ... > einen Vergleich zwischen Ortsnamen in einer Datenbank ... Z.B. weil man ja einer Listbox ... Du wirst mit einem Array immer besser fahren als mit einer ListBox, ...
    (microsoft.public.de.vb)
  • Re: Intercept messages of an app.
    ... owner-draw listbox it will also require reverse-engineering the ItemData field. ... Is there a way for a separate application to log strings ... Look at MSDN to see what type of hook ...
    (microsoft.public.vc.mfc)
  • Re: Copy TStringList to TListBox
    ... I have a TStringList containing some strings, ... I wish to copy this list to a TListBox, ... but it seems that this only assigns pointers to the original ... These are normally pointers to objects (ie a TObject refererence) but ...
    (comp.lang.pascal.delphi.misc)

Loading