Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Writing > DefinePropertie...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 68 of 155
Post > Topic >>

DefineProperties and Reading/Writing Data

by liron2k@[EMAIL PROTECTED] (LY) Mar 24, 2004 at 04:55 PM

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.
 




 3 Posts in Topic:
DefineProperties and Reading/Writing Data
liron2k@[EMAIL PROTECTED]  2004-03-24 16:55:11 
Re: DefineProperties and Reading/Writing Data
liron2k@[EMAIL PROTECTED]  2004-03-25 14:10:02 
Re: DefineProperties and Reading/Writing Data
Richard C Haven <richa  2004-04-11 18:43:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:33:20 CDT 2008.