@timob256 First of all, I recommend against using protected mode. It is a subtle violation of the Liskov Substitution Principle that will bite you (or whomever gets stuck with the maintenance of this code).
The immediate cure is to add an accessor in the public section of class wgt_screen:
public: ... texnStructur getMyTexpr() {return _myTexpr;} ...Then, wherever you use_myTexpr.[fieldname] in the main window, use getMyTexpr().[fieldname] instead.
Example:
if(wgt->_myTexpr.outline)
would become
if(wgt->getMyTexpr().outline)