Page 1 of 1

#PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Posted: Sat Oct 06, 2018 12:22 am
by Regenduft
At the Moment it is hard to determine the inner size of a CanvasGadget when it was created with #PB_Canvas_Border flag.
So it would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight for GetGadgetAttribute() (as an equivalent to #PB_ScrollArea_InnerWidth and #PB_ScrollArea_InnerHeight).

Re: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Posted: Sat Oct 06, 2018 6:31 am
by Bisonte
Would OutputWidth and OutputHeight not be able to take over ?

Re: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Posted: Mon May 06, 2019 7:01 am
by Regenduft
Thanks Bisonte! Yes, that is a viable way! I completely forgot these two functions!

But IMHO it still would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight so you can get the information without Start/StopDrawing(CanvasOutput()).

(Hmmm... Why don't I get an email on replies anymore? On a quick look into my forum settings I can't find the reason... Guess I have to take a deeper look in the near future... (Damn, I'm getting lazy :wink:)