Re: problem with the scrollbar inside the notebook

Zoran Bošnjak <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
>  I think you're getting the sizes too early, as with the actual size 
> equal
> to the virtual size there shouldn't be any need for the scrollbar in 
> either
> version. Try to put the debugging code in wxEVT_SIZE handler or maybe 
> add a
> button/menu item to run it manually later.

Indeed. Running debug from the button gives the following results... 
"p1" sizes are now strange, but I am not sure what could I do to 
workaround the problem:

old setting (scrollbar OK)
--- f ---
Size {sizeW = 400, sizeH = 200} <- outerSize
Point {pointX = 2676, pointY = 401} <- position
Rect {rectLeft = 2676, rectTop = 401, rectWidth = 400, rectHeight = 200} 
<- area
Size {sizeW = 6, sizeH = 18} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- p ---
Size {sizeW = 392, sizeH = 173} <- outerSize
Point {pointX = 0, pointY = 0} <- position
Rect {rectLeft = 0, rectTop = 0, rectWidth = 392, rectHeight = 173} <- 
area
Size {sizeW = 57, sizeH = 489} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- nb ---
Size {sizeW = 392, sizeH = 173} <- outerSize
Point {pointX = 0, pointY = 0} <- position
Rect {rectLeft = 0, rectTop = 0, rectWidth = 392, rectHeight = 173} <- 
area
Size {sizeW = 57, sizeH = 489} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- p1 ---
Size {sizeW = 386, sizeH = 134} <- outerSize
Point {pointX = 3, pointY = 36} <- position
Rect {rectLeft = 3, rectTop = 36, rectWidth = 386, rectHeight = 134} <- 
area
Size {sizeW = 36, sizeH = 435} <- bestSize
Size {sizeW = 371, sizeH = 134} <- clientSize
Size {sizeW = 371, sizeH = 435} <- virtualSize

new setting (scrollbar NOT OK)
--- f ---
Size {sizeW = 400, sizeH = 200} <- outerSize
Point {pointX = 756, pointY = 414} <- position
Rect {rectLeft = 756, rectTop = 414, rectWidth = 400, rectHeight = 200} 
<- area
Size {sizeW = 0, sizeH = 29} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- p ---
Size {sizeW = 392, sizeH = 173} <- outerSize
Point {pointX = 0, pointY = 0} <- position
Rect {rectLeft = 0, rectTop = 0, rectWidth = 392, rectHeight = 173} <- 
area
Size {sizeW = 52, sizeH = 480} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- nb ---
Size {sizeW = 392, sizeH = 173} <- outerSize
Point {pointX = 0, pointY = 0} <- position
Rect {rectLeft = 0, rectTop = 0, rectWidth = 392, rectHeight = 173} <- 
area
Size {sizeW = 52, sizeH = 480} <- bestSize
Size {sizeW = 392, sizeH = 173} <- clientSize
Size {sizeW = 392, sizeH = 173} <- virtualSize
--- p1 ---
Size {sizeW = 392, sizeH = 435} <- outerSize
Point {pointX = 0, pointY = 27} <- position
Rect {rectLeft = 0, rectTop = 27, rectWidth = 392, rectHeight = 435} <- 
area
Size {sizeW = 36, sizeH = 435} <- bestSize
Size {sizeW = 392, sizeH = 435} <- clientSize
Size {sizeW = 392, sizeH = 435} <- virtualSize

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/48898e881aa45919af013d76324462f3%40via.si.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.