‎2019-12-02
10:54 AM
- last edited on
‎2022-09-29
09:54 AM
by
Daniel Kassai
Solved! Go to Solution.
‎2019-12-03 02:31 PM
‎2019-12-02 12:52 PM
‎2019-12-03 01:55 AM
Akos wrote:Thanks.
Hi,
DG::Button has such a constructor is you do not want to load it from a resource file (see DGButton.hpp):
Button (const Panel& panel, const Rect& rect, ButtonType type = Normal, FrameType frameType = Frame);
Pass the palette as the first param, and the desired rect in the second.
Best, Akos
‎2019-12-03 10:40 AM
‎2019-12-03 02:31 PM
‎2019-12-04 02:33 AM
Akos wrote:Thanks.
Hi,
Please find below some sample code (it uses a Dialog, not a Palette).
Best, Akos
‎2019-12-04 08:40 AM
‎2019-12-05 12:41 PM
Akos wrote:Thank you very much.
Hi,
Please include "Owner.hpp"; it is in the GSRoot module.
Best, Akos