2010-01-16, 00:45
Cheers spiff, for your help and patience,
ad 1.: it is still not quite clear to me how the controls declared in the skin are accessible from the cpp code, I presume by ID as defined in the xml file. But then, I noticed that the xml file is only read after the INIT message was processed by the base class, e.g. after an ActivateWindow() call. So I need to do my stuff in the OnMessage handler before the call of OnMessage() of the base class, and this somehow confused me.
ad 2.: I wonder how I can debug that, i.e. how can I know whether the control declared in the XML file is actually there (well I iterated through the group and found the ID), but is it displayed, do I have to define a background color, or setVisible(true) ...
I'll have a look what GUIDialogBoxBase offers more than GUIDialog.
Cheers,
peter
ad 1.: it is still not quite clear to me how the controls declared in the skin are accessible from the cpp code, I presume by ID as defined in the xml file. But then, I noticed that the xml file is only read after the INIT message was processed by the base class, e.g. after an ActivateWindow() call. So I need to do my stuff in the OnMessage handler before the call of OnMessage() of the base class, and this somehow confused me.
ad 2.: I wonder how I can debug that, i.e. how can I know whether the control declared in the XML file is actually there (well I iterated through the group and found the ID), but is it displayed, do I have to define a background color, or setVisible(true) ...
I'll have a look what GUIDialogBoxBase offers more than GUIDialog.
Cheers,
peter