[Lazarus] IDE Component-dialog: small button

Vojtěch Čihák vojtech.cihak at atlas.cz
Mon Feb 6 13:17:16 CET 2017


AFAIK in Lazarus dialogs is often used component TButtonPanel (Misc palette) with OK, Cancel, Close and Help buttons. These buttons are autosized with Constraints.MinWidth:=DefButtonSize.cx; (this value is taken from Themes: DefButtonSize := ThemeServices.GetDetailSize(Details); it is 75 on Qt).
 
V.
______________________________________________________________
> Od: C Western via Lazarus <lazarus at lists.lazarus-ide.org>
> Komu: Lazarus mailing list <lazarus at lists.lazarus-ide.org>
> Datum: 06.02.2017 09:49
> Předmět: Re: [Lazarus] IDE Component-dialog: small button
>
On 06/02/17 02:28, wkitty42--- via Lazarus wrote:
 > On 02/05/2017 07:41 PM, Alexey via Lazarus wrote:
 >> In this dialog, button Use is too narrow. Can i make diff, to make it
 >> wide, e.g.
 >> 80pix?
 >
 > ummm, it looks plenty big enough... all of the letters show with no
 > clipping on either side... what am i missing??
 >
 It looks like a button that has been autosized; I must admit my feeling 
 is that autosized buttons should have a minimum width, something like 
 the width of a "Cancel" button, say. The general GUI convention seems to 
 be to have all buttons of similar sizes, and the lazarus autosize 
 algorithm produces buttons that can often look on the small side 
 compared to most programs. Turning off autosizing is a bad idea because 
 of the variety of system fonts.
 
 Colin
 -- 
 _______________________________________________
 Lazarus mailing list
 Lazarus at lists.lazarus-ide.org
 http://lists.lazarus-ide.org/listinfo/lazarus <http://lists.lazarus-ide.org/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170206/2bcd52b7/attachment.html>


More information about the Lazarus mailing list