Re: Something simple I can't do



Thank you.
I don't know what was what I was doing wrong, but copying that code did exactly what I wanted it to do. Now, changing the size of my window change also the size of my widgets.
Again, thank you.

Yasser Greyeb

2012/2/5 Kjell Ahlstedt <kjell ahlstedt bredband net>
Strange! When I add

#if 0
  cmdOne->property_expand() = true;
  cmdTwo->property_expand() = true;
  cmdThree->property_expand() = true;
#else
  cmdOne->set_hexpand(true);
  cmdOne->set_vexpand(true);
  cmdTwo->set_hexpand(true);
  cmdTwo->set_vexpand(true);
  cmdThree->set_hexpand(true);
  cmdThree->set_vexpand(true);
#endif

the buttons fill all of the window when it's resized. And it works both with "#if 0" and "#if 1", and both with

  grdMain.attach (*cmdOne, 1, 1, 1, 1);
and
  grdMain.attach (*cmdOne, 0, 0, 1, 1);

Kjell




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]