csroberts
2002-08-05 16:31:26 UTC
I am thinking of writing a simple todo list application (as kind of a
learning experience). A list box would have multiple columns, with a
Done checkbox, a Due Date, and a task name. If the user double
clicked, a Notes box (TMemo) would appear. I noticed you can store
objects with a Listbox. Here is the AddItem method:
procedure AddItem(Item: String; AObject: TObject);
What can AObject be? Does it have to be something descended from a
TObject?
Can it be a simple data type like a string or integer?
Can it be a complex data type like TStringList?
I looked at the Delphi help and it wasn't very useful. I'm trying to
store this todo list and notes in a file for later use.
Thanks.
learning experience). A list box would have multiple columns, with a
Done checkbox, a Due Date, and a task name. If the user double
clicked, a Notes box (TMemo) would appear. I noticed you can store
objects with a Listbox. Here is the AddItem method:
procedure AddItem(Item: String; AObject: TObject);
What can AObject be? Does it have to be something descended from a
TObject?
Can it be a simple data type like a string or integer?
Can it be a complex data type like TStringList?
I looked at the Delphi help and it wasn't very useful. I'm trying to
store this todo list and notes in a file for later use.
Thanks.