[futurebasic] Fwd: [FB] Grow a window [ sans dirt ]

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2006 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Thu, 1 Jun 2006 22:14:55 -0700
Steve,

The following example on the FB4R3 CD shows the basics of using  
HILayout. Reminder: Some of the new calls such as HI are limited to  
OS 10.3 and higher.

/Examples/Appearance Examples/HILayout 1.35

>
> 2) The other method (there might be more - and I'm not including  
> methods that use the standard FB runtime) is to use theTB  fn  
> HIViewSetLayoutInfo to "bind" the controls to the parent. In the  
> case of a scrolling text view (something I've been wrestling with  
> on and off for a few weeks now) the scrollview (essentially where  
> the text will be shown - but much more complicated at an  
> implementation level) is bound to the sides of the window so it  
> grows and shrinks automatically as the window does the same. Other  
> controls (such as buttons) can also be bound (to say the bottom and  
> right  sides of the window). The advantage is: there is no bch.  
> Once you set up the binding, you can forget it. An example of this  
> is too big to post,  but I can send you an example (just email me  
> offlist) and Bernie has posted numerous examples too.
>