Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Creating a new component
Wed, Jan 28 2015 9:20 AMPermanent Link

Matthew Jones

Did I miss how to make a new component somewhere?

I presume that the steps are to create a new interface to look how I
want it. Or it and the sub-components.

Okay, no, just found the Library menu, with New Component, which
derives from an existing something. TPanel's interface seems quite
simple, but the code has a TCaptionBar. Okay, I presume that this means
that the TPanel creates a caption bar at run time (it does), and
somehow the layout makes it work. Both the panels' client and the
Caption bar are set to the same layout - TopLeft and consume to right
bottom.

How does the caption bar know where to go in the order of things?

I can see this working nicely for my first purpose, though I've just
spotted a small flaw... (See other post)
Wed, Jan 28 2015 10:12 AMPermanent Link

Mark Brooks

Slikware

Avatar

"Matthew Jones" wrote:

>>Did I miss how to make a new component somewhere?

Yup. Wanna try this too. Need a bit of advice (but I think that Tim may be working up a  video for this one)
Wed, Jan 28 2015 5:20 PMPermanent Link

Raul

Team Elevate Team Elevate

On 1/28/2015 9:20 AM, Matthew Jones wrote:
> Did I miss how to make a new component somewhere?

There was the preview video :

https://www.youtube.com/watch?v=ZV7CKDuQJEw

It has some useful getting started and basic info.

Until more videos/manuals arrive i believe this is it as well as looking
at existing components

Raul
Wed, Jan 28 2015 6:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Did I miss how to make a new component somewhere? >>

Seeing that there's no documentation yet, probably not. Smile

I'm finishing up the video for creating a control this evening, so it should
be available by tomorrow by the time you wake up.

<< Okay, no, just found the Library menu, with New Component, which derives
from an existing something. TPanel's interface seems quite simple, but the
code has a TCaptionBar. Okay, I presume that this means that the TPanel
creates a caption bar at run time (it does), and somehow the layout makes it
work. Both the panels' client and the Caption bar are set to the same
layout - TopLeft and consume to right bottom. >>

Actually, the caption bar is set to consume to the bottom, not the bottom
right.

<< How does the caption bar know where to go in the order of things?  >>

In the TPanelControl base class (WebCtrls), you'll see this:

procedure TPanelControl.InitializeProperties;
begin
  inherited InitializeProperties;
  InterfaceState:=NORMAL_STATE_NAME;
  FCaptionBar:=CreateCaptionBar;
  FCaptionBar.LayoutOrder:=0;   <<<<<<<<<<<<<<<<<<<<<<  This puts the
caption bar *in front* of the client element for layout purposes

At the point that the caption bar is created, the client element has already
been created as part of the CreateInterfaceElements method.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jan 29 2015 4:18 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

>  FCaptionBar.LayoutOrder:=0;   <<<<<<<<<<<<<<<<<<<<<<  This puts the
> caption bar *in front* of the client element for layout purposes

Ahah. Thanks.

Presumably the default would be that it is at the end of the layout,
that is, you put something on the component, and it automatically takes
the last place. Thus you can easily control where things go. Nice
system.
Thu, Jan 29 2015 5:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Presumably the default would be that it is at the end of the layout, that
is, you put something on the component, and it automatically takes the last
place. Thus you can easily control where things go. Nice system. >>

Yes, both the layout order and display order work that way.

Tim Young
Elevate Software
www.elevatesoft.com
Image