MacOS (Carbon) gadget sizes

Mac OSX specific forum
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2158
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

MacOS (Carbon) gadget sizes

Post by Andre »

Hi,

anyone noticed, that displaying ButtonImageGadgets on MacOS does need larger gadget sizes and more spaces between the gadgets, than doing the same on Windows?

Depending on the gadget sizes, MacOS seems to automatically switch from (smaller) "rounded" buttons to
(larger) "square" buttons...

For example:
I have loaded 16x16 pixel images for displaying as ButtonImageGadget.

On Windows it's enough to use a gadget size of 22x20 pixel, and a space of 2 pixel between the gadgets.

On MacOS I need to use a gadget size of at least 26x25 pixel, and a space of at least 6 pixels between the gadgets. Else the images aren't fully displayed or the gadgets are overlapping (if space value is to small). So it seems that MacOS (Carbon) gadgets seems to need a greater width/height and even some space around the gadget....


Anyone with same experiences?

Do you know some "rules" about creating gadget sizes on MacOS?
Maybe some good internet sites with further informations?

Especially when creating cross-plattform programs, it seems to need a completely new-calculated GUI design on MacOS...

Thanks!
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
freak
PureBasic Team
PureBasic Team
Posts: 5960
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: MacOS (Carbon) gadget sizes

Post by freak »

You usually need even bigger gadgets for Linux.

Try this: http://www.purebasic.fr/english/viewtop ... 12&t=38349
quidquid Latine dictum sit altum videtur
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2158
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: MacOS (Carbon) gadget sizes

Post by Andre »

Thanks, Timo, for this suggestion!
Even if there are not all gadgets supported, it should be a start...

Beside the calculation of correct (minimum) gadget sizes: it would be interesting for me, according to which "rules" the gadgets switches from rounded buttons into square buttons?

And is the needed additional space around the (painted) gadget borders a normal behaviour?

Thanks!
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply