[Lazarus] Anchor editor + themes

Mattias Gärtner nc-gaertnma at netcologne.de
Fri Dec 18 13:22:33 CET 2009


Zitat von Juha Manninen <juha.manninen at phnet.fi>:

> On tiistai, 15. joulukuuta 2009 12:03:03 Mattias Gaertner wrote:
>> JoshyFun <joshyfun at gmail.com> wrote:
>> > Controls are being moved quite sure because they are anchored ones to
>> > others, maybe you must remove all anchors (to other objects) while you
>> > design.
>>
>> Maybe Juha has not yet spotted the anchor editor?
>
> What anchor editor? Ah, that one! I was looking at it some time ago and
> wondered what it does. Delphi doesn't have such, or does it? At least I never
> used one. It seems to be very powerful now that I learned it. Great!

Delphi does not have it.


> But I have complaints (again), too. The anchors (set of booleans) in object
> inspector map directly to anchor editor window settings. However there is no
> indication of which control the selected one is anchored to. I though it is
> anchored to the parent control, but no.

If no anchor controls are set the Anchors work Delphi compatible and  
the object inspector makes sense.


> I suggest removing the set of booleans from object inspector's anchors and
> instead have a button there which opens the anchor editor. (A button like
> Listbox.Items has).

?
Anchors has this button since the anchor editor exists.


> This would be a deviation from Delphi but who cares.
> Now it is misleading and duplicate. I know, it is a small thing once you know
> it but an intuitive GUI is still an important goal, IMO.

Many properties depend on others.
If we would hide all properties that might confuse users there would  
not be many left in the OI.


> I was able to fix all the small alignment problems.
> JoshyFun: the Radiogroup alignment problem was due to BorderSpace settings.
>
>
>> About colors:
>> Don't mix fixed colors and themed colors.
>> You can use fixed text color on fixed background or theme color on
>> theme background, but not fixed color on theme background.
>
> Is themed color such as clWindowText and clCaptionText?

Yes

> And fixed color is like clMaroon which I used for text, or how?

Yes


> By theme background you mean the actual control's color property, right?

It depends.


> Or, is there some hidden setting for themes somewhere?

Well, there are lots of theme settings hidden to LCL apps.


Mattias






More information about the Lazarus mailing list