Hi,

Sorry if I am asking too  much n00b questions. I'm still in the learning mode.

I want to control the positioning of a widget. To test that I made an
application with only the following code:

  WAnchor *wan = new WAnchor("aa", "tst", root());
  wan->setMargin(300, WWidget::Top);

However, the setMargin does not work, the anchor still shows up at the top.
But if I use Left then the setMargin call works.

Guess I am overlooking something obvious, but what?

Best regards, Frans.

PS: one more Q: is it possible to find out the size of the browser area.
What I actually want is to control the position. (e.g. if I have 4
buttons or anchors, I would like to have them as
A B
C D
centered in the screen.

Suggestions on how to do this are welcome! Frans.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to