PDA

View Full Version : DFO properties not reflected in views



Natasha
30-Aug-2005, 01:32 PM
How do you get the IDE to recognize new properties identified in the DFO
file?
Created a subclass of dBForm but the previous dBForms are not affected by
the new changes in previous views.
Only new dBForms reflect the property changes that were made in the DFO
file. Can anyone
explain how to get the previous views containing dBForms to reflect the
changes without manually deleting
and recreating them on existing views?

David Martinko
30-Aug-2005, 01:41 PM
This belongs in the Visual-Dataflex newsgroup instead.. but let me try an
answer. It's been a while for this type of thing but let me see if I
remember correctly.

DFO's contain properties you want to display in the properties dialog within
the IDE. The value of the properties in the DFO need to be the same as the
default property of the class. The reason is this: If the class says the
default color is clWindow, then it doesn't need to write "Set Color to
clWindow"... it's already the default. So the IDE only writes out the code
if the value you choose does not match that of the DFO. Now, lets say you
subclass this and change the Class color to clCyan. The DFO needs to reflect
this change also. All old DBForms will reflect the change once they are
changed to cMyDBForm. HOWEVER!!! if you changed the color of a dbform to
clWhite, then the IDE wrote out the code setting it to clWhite and you
subclass will have no affect unless you remove the line of code from your
view stating the color change.

--
David Martinko
Redeemed Software
248-535-7495
RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
www.redeemedsoftware.com

"Natasha" <ayana_joseph81@yahoo.co.uk> wrote in message
news:SPW5IAZrFHA.632@dacmail.dataaccess.com...
> How do you get the IDE to recognize new properties identified in the DFO
> file?
> Created a subclass of dBForm but the previous dBForms are not affected by
> the new changes in previous views.
> Only new dBForms reflect the property changes that were made in the DFO
> file. Can anyone
> explain how to get the previous views containing dBForms to reflect the
> changes without manually deleting
> and recreating them on existing views?
>

Chris Spencer
30-Aug-2005, 05:31 PM
PMJI
I guess you mean DFC file as the DFO has default code for the created object
in the Studio and is not required for every custom class

Chris Spencer
TUFware Systems

"David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
news:j9PzSJZrFHA.1276@dacmail.dataaccess.com...
> This belongs in the Visual-Dataflex newsgroup instead.. but let me try an
> answer. It's been a while for this type of thing but let me see if I
> remember correctly.
>
> DFO's contain properties you want to display in the properties dialog
> within the IDE. The value of the properties in the DFO need to be the same
> as the default property of the class. The reason is this: If the class
> says the default color is clWindow, then it doesn't need to write "Set
> Color to clWindow"... it's already the default. So the IDE only writes out
> the code if the value you choose does not match that of the DFO. Now, lets
> say you subclass this and change the Class color to clCyan. The DFO needs
> to reflect this change also. All old DBForms will reflect the change once
> they are changed to cMyDBForm. HOWEVER!!! if you changed the color of a
> dbform to clWhite, then the IDE wrote out the code setting it to clWhite
> and you subclass will have no affect unless you remove the line of code
> from your view stating the color change.
>
> --
> David Martinko
> Redeemed Software
> 248-535-7495
> RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> www.redeemedsoftware.com
>
> "Natasha" <ayana_joseph81@yahoo.co.uk> wrote in message
> news:SPW5IAZrFHA.632@dacmail.dataaccess.com...
>> How do you get the IDE to recognize new properties identified in the DFO
>> file?
>> Created a subclass of dBForm but the previous dBForms are not affected by
>> the new changes in previous views.
>> Only new dBForms reflect the property changes that were made in the DFO
>> file. Can anyone
>> explain how to get the previous views containing dBForms to reflect the
>> changes without manually deleting
>> and recreating them on existing views?
>>
>
>

Natasha
14-Sep-2005, 10:07 AM
Hi guys,I do apologize profusely for not replying promptly. I really
appreciate that you took the time to answer my question. I am currently
working on many different projects at the same time and was not well for the
past few days. Do forgive my tardiness.I am new or as they call me in work,
green to VDF. I am currently in the process of cleaning up the classes. It
was suggested to me to create a new global subclass layer, make necessary
changes and test views.Will let you know when I get it working.
Thanks again.

Kind Regards
Natasha

"David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
news:j9PzSJZrFHA.1276@dacmail.dataaccess.com...
> This belongs in the Visual-Dataflex newsgroup instead.. but let me try an
> answer. It's been a while for this type of thing but let me see if I
> remember correctly.
>
> DFO's contain properties you want to display in the properties dialog
> within the IDE. The value of the properties in the DFO need to be the same
> as the default property of the class. The reason is this: If the class
> says the default color is clWindow, then it doesn't need to write "Set
> Color to clWindow"... it's already the default. So the IDE only writes out
> the code if the value you choose does not match that of the DFO. Now, lets
> say you subclass this and change the Class color to clCyan. The DFO needs
> to reflect this change also. All old DBForms will reflect the change once
> they are changed to cMyDBForm. HOWEVER!!! if you changed the color of a
> dbform to clWhite, then the IDE wrote out the code setting it to clWhite
> and you subclass will have no affect unless you remove the line of code
> from your view stating the color change.
>
> --
> David Martinko
> Redeemed Software
> 248-535-7495
> RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> www.redeemedsoftware.com
>
> "Natasha" <ayana_joseph81@yahoo.co.uk> wrote in message
> news:SPW5IAZrFHA.632@dacmail.dataaccess.com...
>> How do you get the IDE to recognize new properties identified in the DFO
>> file?
>> Created a subclass of dBForm but the previous dBForms are not affected by
>> the new changes in previous views.
>> Only new dBForms reflect the property changes that were made in the DFO
>> file. Can anyone
>> explain how to get the previous views containing dBForms to reflect the
>> changes without manually deleting
>> and recreating them on existing views?
>>
>
>