[interfacekit] Re: programming problems
- From: "Andrew Bachmann" <shatty@xxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Sun, 01 Feb 2004 14:06:23 -0800 PST
Hi Adi,
You may want to look at the ViewGeneral.html from the BeBook relating to
resizing. Some of
these constants operate in perhaps non-obvious ways.
Here's a key quote:
"Note that B_FOLLOW_LEFT_RIGHT is not the same as combining B_FOLLOW_LEFT and
B_FOLLOW_RIGHT , an illegal move. The resizingMode mask can contain only one
horizontal
constant and one vertical constant. "
Assuming that the constants are multi-bit, I think the most reliable way to
test would be to use a
construct like this:
if (ResizingMode() & B_FOLLOW_LEFT_RIGHT == B_FOLLOW_LEFT_RIGHT)
....
if (ResizingMode() & B_FOLLOW_LEFT == B_FOLLOW_LEFT)
....
if (ResizingMode() & B_FOLLOW_RIGHT == B_FOLLOW_RIGHT)
....
Above code untested. :-)
Andrew
- Follow-Ups:
- [interfacekit] Re: programming problems
- From: Ingo Weinhold
- References:
- [interfacekit] programming problems
- From: Adi Oanca
Other related posts:
- » [interfacekit] programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- » [interfacekit] Re: programming problems
- [interfacekit] Re: programming problems
- From: Ingo Weinhold
- [interfacekit] programming problems
- From: Adi Oanca