Hi,
I'm making a visual component that emulates the Explorer Bar in
Windows XP (it's the bar on the left side when you're looking at
folders that has tasks and details on files and folders). I made a
component editor so that you can add groups and items at design time,
and it stores this data using DefineProperties and I used a Reader and
Writer to get and set this data. I have 1 problem with this. Sometimes
at run time it will read old values of variables I just set at design
time using my component editor. For example, in my component editor, I
can set the ID of an item, which is just an integer. When I run the
program and I try reading that ID, sometimes it gives me it's old
value, and sometimes the new value. I've found that it only takes the
new value if I view the form as text (DFM) and then switch it back to
visual mode and then compile. The reason this makes it work is because
this triggers the reading and writing of the data so that it takes the
most recent data. I was wondering if there's a way to manually call my
read data and write data procedures, not only by overriding the
DefineProperties procedure and calling DefineProperty in that
procedure.
My other question is not so complicated: in the DefineProperty
procedure, the last parameter is supposed to be a boolean. Right now
I'm just sending true to it, but I've seen from other component
examples that you're not supposed to send true all the time. So when
do you send true and when do you send false to that procedure?
Thanks.


|