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

Mac OSX specific forum
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

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

Post 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
Last edited by Niffo on Fri Nov 22, 2013 10:51 am, edited 1 time in total.
Niffo
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

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

Post by J. Baker »

ScrollAreaGagdet() seems to be off a bit too.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Fred
Administrator
Administrator
Posts: 18499
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post 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.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

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

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Fred
Administrator
Administrator
Posts: 18499
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Could you post a small snippet in bug report forum please ?
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

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

Post 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
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply