[haiku-3rdparty-dev] Re: changing the frame of a BView

  • From: Ryan Kingston <ryanmk54@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Wed, 21 Mar 2012 14:49:03 -0600

>> Is it possible to zoom a BView or else change the frame of a BView?
>
> It depends on what you're actually trying to do. The frame of a BView
> just indicates its bounds within the parent. If you're trying to
> enlarge or shrink the view itself, then you would want to be using
> {Resize,Move}By() but if you're trying to just draw zoomed contents
> within the same visible area, then SetScale() is probably closer to
> what you want. A little more detail would help though.
>
> Regards,
>
> Rene
>
I am trying to do something more or less like the zoom on LibreOffice
writer or calc.
What I can do right now is draw a page and put text inside one page.
I don't want to go any further until I know how I could zoom.
The page is its own BView so I'm not sure how I would go about zooming
all the BViews and their content at once.

Other related posts: