Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Override defalut picture from parent class
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00167255
Message ID:
00167298
Views:
25
>Changing a value is one thing, however, by eliminating the value entirely where the result = (none) in the properties window will go to the parent definition. Did you try physically putting in "" for the picture so it will at least have a value (albeit empty)?
>
>
>>>Add to the init event
>>>
>>>dodefault()
>>>This.Picture = ""
>>>
>>>Because anything not defined will go to the parent hierarchy for settings.. by explicitly clearing it in the init(), that should solve your issue.
>>>
>>>>In my base classes I have a button the has a picture on it and a description as the caption. I placed this button on my form and wanted only the description not the picture, so I went to the properties window for that button and chose the picture property and hit the delete key. The property was set to none. Everything is fine until I go back into the form to do something else and save it. The button picture property automatically gets set to l:\vf\acmds (this is my defalut directory) and when I rebuild the project an error occurs. I can go into the form and repeat the above steps for setting the picture property to (none), but it comes back again when I edit the form and resave it. My fellow programmers here have seen this happen to them and would like to know how can I get over this problem.
>>>>TIA
>>
>>I know we can get around it with code, but that still does not answer why the picure property can not be overwrote. Other parent properties can be changed why is the picture property different.

When you do that you get the error FILE "" Does not exist
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform