[interfacekit] Re: programming problems

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


Other related posts: