Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't Remove Object added to _Screen
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00008239
Message ID:
00008328
Views:
27
>>>>I have created a visual navigation class for my application. After instantiating the object with
>>>>
>>>>oNavigate = CREATEOBJECT('navigation'),
>>>>
>>>>I add the object to _SCREEN using
>>>>
>>>>_SCREEN.AddObject('oNavigate')
>>>>
>>>>Before exiting the application, I want to remove this object.
>>>>
>>>>I issue _SCREEN.RemoveObject('oNavigate'). I am expecting the object to disappear from the screen. But this does not happen. After my application calls CLEAR EVENTS, I still have to issue a CLEAR ALL command to remove the object.
>>>>
>>>>Is there another way to remove the object from the _SCREEN programatically?
>>>>
>>>>Thanx in advance.
>>>
>>>what about 'release oNavigate'
>>
>>Hi Dave,
>>
>>I have tried RELEASE oNavigate, but this does not remove the object from the _SCREEN.
>
>why are you adding it to the screen? unless there is something special about adding it as an object to the screen, i'd just say oNavigate.show after creating it.

oNavigate is based on a Container Class which does not have a Show method. I am using a Container Class so that the User dosen't see a title bar or any borders even when he maximizes the SCREEN on a large monitor.
Previous
Reply
Map
View

Click here to load this message in the networking platform