Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class doesn't respond to visible=.f
Message
From
17/01/2017 14:47:17
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
15/01/2017 18:54:47
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01646692
Message ID:
01646772
Views:
123
John,

As an experiment, add an offscreen textbox with the myclass.visible=.f. in the WHEN or GOTFOCUS of the textbox. Then set focus to it when you want the class to be rendered invisible. Does the combo stay visible now? IME that's a reliable way to avoid curious display artifacts that can consume happy days pursuing phantoms!

FWIW, I remember something similar where the .visible setting was in an object inside the class being made invisible (especially if it has focus at the time) and/or code was present along the event sequence to display/update the combo after it is rendered invisible. Thisform.lockscreen=.f. can help if it's to do with code in events, but there's no value in picking through screeds of working event code if you can prevent it every time by setting focus elsewhere...
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform