Page 1 of 1

[5.21b3] Offset or bad size of gadgets in Panel container

Posted: Wed Nov 20, 2013 12:25 pm
by Niffo
In the code below, the button fits in the tab of the PanelGadget on Windows and Linux but not on MacOS. It seems it is shifted or bad sized.
The same was reported (by me) for ContainerGadget before and was corrected (no more present on the forum)

Code: Select all

OpenWindow(0, 100, 100, 300, 200, "Test")
;ContainerGadget(0, 10, 10, 280, 180, #PB_Container_Single)
PanelGadget(0, 10, 10, 280, 180)
AddGadgetItem(0, -1, "Tab")
ButtonGadget(1, 10, 10, 260, 130, "Test")

Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow

Re: [5.21b3] Offset or bad size of gadgets in Panel containe

Posted: Fri Nov 22, 2013 7:53 am
by J. Baker
ScrollAreaGagdet() seems to be off a bit too.

Re: [5.21b3] Offset or bad size of gadgets in Panel containe

Posted: Wed Feb 26, 2014 11:34 am
by Fred
I don't think we can do anything, Panel control on OS X have invisible borders so the inner area in smaller. If we mess with that, I fear we will have other strange bugs raising.

Re: [5.21b3] Offset or bad size of gadgets in Panel containe

Posted: Wed Feb 26, 2014 12:56 pm
by J. Baker
Fred wrote:I don't think we can do anything, Panel control on OS X have invisible borders so the inner area in smaller. If we mess with that, I fear we will have other strange bugs raising.
ScrollAreaGagdet() use to be fine until 5.20/5.21. I now keep compiling my app with 5.11 in order for it to look right. I fiddle with the size offset in 5.21 and for some reason it just wouldn't work the same with my app.

Re: [5.21b3] Offset or bad size of gadgets in Panel containe

Posted: Wed Feb 26, 2014 1:57 pm
by Fred
Could you post a small snippet in bug report forum please ?

Re: [5.21b3] Offset or bad size of gadgets in Panel containe

Posted: Wed Feb 26, 2014 7:10 pm
by J. Baker
Ok, Fred solved my issue with ScrollAreaGagdet() by pointing me to the #PB_ScrollArea_Bordeless flag. :D

As for Niffo's issue. When I ported a Windows app over to OS X, some gadgets needed reworked. I believe it's just a different sizing in OS X that can't be avoided without using CompilerIf.

Code: Select all

CompilerIf #PB_Compiler_OS = #PB_OS_MacOS
  ;gadget size for osx
CompilerElse
  ;gadget size for windows and linux
CompilerEndIf