Hi, Helmut,
I currently need to rewrite my C# applications in C++. Applications must be cross-platform.
To do this, I wanted to use your library, which is cross-platform, fast and has good support in your person.
In my C# applications, I link the Start and Stop buttons to the GroupBox and have the ability to move them to the place I need.
I didn't really understand how to make it so that with the given widget sizes, the buttons can be placed one under the other where I need them.
For example, in the lower right or lower left corner of the widget.
When I start the program:
int main()
{
int screen_width, screen_height;
int width = 1000, height = 800;
g.getscr (&screen_width, &screen_height);
g.swgwin ((screen_width - width) / 2, (screen_height - height) / 2, width, height);
int ip = g.wgini ("form");
int ip_1 = g.wgbas (ip, "hori");
int ip_2 = g.wgbas (ip, "hori");
int id_pbtn1 = g.wgpbut (ip_1, "Start");
int id_pbtn2 = g.wgpbut (ip_2, "Stop");
g.wgfin ();
}
I see only one button Stop.
How do I make the buttons fit in the right places?
With best regards, Alex