#PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Regenduft
Enthusiast
Enthusiast
Posts: 121
Joined: Mon Mar 02, 2009 9:20 pm
Location: Germany

#PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Post 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).
User avatar
Bisonte
Addict
Addict
Posts: 1233
Joined: Tue Oct 09, 2007 2:15 am

Re: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Post by Bisonte »

Would OutputWidth and OutputHeight not be able to take over ?
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
Regenduft
Enthusiast
Enthusiast
Posts: 121
Joined: Mon Mar 02, 2009 9:20 pm
Location: Germany

Re: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight

Post 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:)
Post Reply