Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Non "standard" button sizes for Linux? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Urgent: Need Dial/Circular Slider Control
Next thread: European RB conference next week (Germany, especially)


Reading *CSV Files versus *.Txt Files   -   Claude Stone
  Non "standard" button sizes for Linux?   -   Mark O'Neill
   Re: Non "standard" button sizes for Linux?   -   William Yu
   Re: Non "standard" button sizes for Linux?   -   Tim Jones
   Re: Non "standard" button sizes for Linux?   -   Mark O'Neill
   Re: Non "standard" button sizes for Linux?   -   Mark O'Neill

Non "standard" button sizes for Linux?
Date: 21.11.08 15:34 (Fri, 21 Nov 2008 14:34:17 +0000)
From: Mark O'Neill
Hi All,

SUSE and Ubuntu seem to be creating different sized default buttons.

I did a screen grab of them both and the default "ok" button height on
a MsgBox comes out as follows:

SUSE = 26
Ubuntu = 34

I take it there's not "standard" for this on Linux, so I could either
just find an average height that looks ok, or make the heights
platform specific.

I use a modified version of Aaron's and Charles' code to determine
Windows and Mac OS versions respectively. Does anyone know of some
similar code that can return the Linux platform name - such as Ubuntu
etc so that I can add platform-specific heights to my custom button?

Thanking you.

All the best,

Mark.
------------------------------------------------------------
RB Class
"Killer Tool Bar" - theme-based x-platform toolbar
www.rbclass.com




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Non "standard" button sizes for Linux?
Date: 21.11.08 16:06 (Fri, 21 Nov 2008 09:06:36 -0600)
From: William Yu
Mark,
The button sizes on Linux depends on the theme, and not distro. This is not
an easy thing to obtain and determine properly especially when you factor in
the numerous Window managers (although most distros use metacity) that
control the themes. Having said that, it never hurts to have a bigger
looking button.

Regards,
William Yu
REAL Software

On Fri, Nov 21, 2008 at 8:34 AM, Mark O'Neill <<email address removed>> wrote:

> Hi All,
>
> SUSE and Ubuntu seem to be creating different sized default buttons.
>
> I did a screen grab of them both and the default "ok" button height on a
> MsgBox comes out as follows:
>
> SUSE = 26
> Ubuntu = 34
>
> I take it there's not "standard" for this on Linux, so I could either just
> find an average height that looks ok, or make the heights platform specific.
>
> I use a modified version of Aaron's and Charles' code to determine Windows
> and Mac OS versions respectively. Does anyone know of some similar code that
> can return the Linux platform name - such as Ubuntu etc so that I can add
> platform-specific heights to my custom button?
>
> Thanking you.
>
> All the best,
>
> Mark.
> ------------------------------------------------------------
> RB Class
> "Killer Tool Bar" - theme-based x-platform toolbar
> www.rbclass.com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

Re: Non "standard" button sizes for Linux?
Date: 21.11.08 16:40 (Fri, 21 Nov 2008 08:40:50 -0700)
From: Tim Jones
On Nov 21, 2008, at 7:34 AM, Mark O'Neill wrote:

> Hi All,
>
> SUSE and Ubuntu seem to be creating different sized default buttons.
>
> I did a screen grab of them both and the default "ok" button height
> on a MsgBox comes out as follows:
>
> SUSE = 26
> Ubuntu = 34
>
> I take it there's not "standard" for this on Linux, so I could
> either just find an average height that looks ok, or make the
> heights platform specific.

I use the following values with success:

Normal button:
Height = 30
TextSize = 12

Midsized button:
Height = 28
TextSize = 11

Small button:
Height = 25
TextSize = 9

That has worked well for me on all Linux releases where I control the
button size. However, the users has a great amount of customization
under Linux, so the sizes and fonts used in the system dialogs (Save,
Open, Alert/Msg, et al) may be completely different.

As for Ubuntu versus OpenSUSe or stock Debian, because of the
customizability of the desktop settings, you'll even find that the
same distro will look different for different users.

Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Non "standard" button sizes for Linux?
Date: 21.11.08 17:51 (Fri, 21 Nov 2008 16:51:44 +0000)
From: Mark O'Neill
Hi William,

On 21 Nov 2008, at 15:06, William Yu wrote:

> The button sizes on Linux depends on the theme, and not distro.
> This is not
> an easy thing to obtain and determine properly especially when you
> factor in
> the numerous Window managers (although most distros use metacity) that
> control the themes. Having said that, it never hurts to have a bigger
> looking button.

Ah, ok. So is there no way of finding the system height of a button,
or similar?

All the best,

Mark.
------------------------------------------------------------
RB Class
"Killer Tool Bar" - theme-based x-platform toolbar
www.rbclass.com




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Non "standard" button sizes for Linux?
Date: 21.11.08 17:58 (Fri, 21 Nov 2008 16:58:21 +0000)
From: Mark O'Neill
Hi Tim,

On 21 Nov 2008, at 15:40, Tim Jones wrote:

> That has worked well for me on all Linux releases where I control
> the button size. However, the users has a great amount of
> customization under Linux, so the sizes and fonts used in the system
> dialogs (Save, Open, Alert/Msg, et al) may be completely different.
>
> As for Ubuntu versus OpenSUSe or stock Debian, because of the
> customizability of the desktop settings, you'll even find that the
> same distro will look different for different users.

Thanks Tim. I was hoping there'd be a way of finding out the button
heights programatically because of the various different flavours, but
if I can't do that I'll do what you do and set general heights and
maybe allow users to change the heights of the buttons in a preference
file also.

All the best,

Mark.
------------------------------------------------------------
RB Class
"Killer Tool Bar" - theme-based x-platform toolbar
www.rbclass.com




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>