Centering windows as they appear. Another odd question.



I'm trying to put some polish on a particular application,
and I have a window that I'd like to center on the screen
when it appears. The hitch? I don't know how big it is when
I'm in _new/_init, so I need to do it after the allocation
is done, but before it's realized. Right?

	Is there a "best" way to handle this?

	The only things I could find in the tutorials didn't cover
variable-sized objects. (Wheelbarrow already knows it's own width)

-Jeff Evarts



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