Best way to convert a method of Class Control
Posted: Tue Mar 02, 2021 12:13 pm
Last week I supervised the first steps to convert a large project from VO to X# which is maintained on site by one of my employees. They often use methods like this:
method ShowControl(lShow) CLASS Control
if lShow
self:Show()
else
self:Hide()
endif
return true
This makes it easy to quickly hide/show all controls in a screen.
In VOPorter this generates CLASS control_external_class INHERIT control which of course is not a solution to the problem.
Is there another way to solve this without creating subclasses for every type of control and changing 1000's of controls in 100's of windows to the inherited classes?
Dick
method ShowControl(lShow) CLASS Control
if lShow
self:Show()
else
self:Hide()
endif
return true
This makes it easy to quickly hide/show all controls in a screen.
In VOPorter this generates CLASS control_external_class INHERIT control which of course is not a solution to the problem.
Is there another way to solve this without creating subclasses for every type of control and changing 1000's of controls in 100's of windows to the inherited classes?
Dick