Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Image, Text & HTML
Wed, Sep 2 2015 9:29 AMPermanent Link

F. van Daalen

Just replaced my Intraweb based with webbuilder.  Was very easy because
it was a very simple website (1 text page with a image carousel).

Some questions:
- How do you place text on a page? I was using tlabel but large text in
a caption is not that easy/simple. So switched to disabled MultiLineEdit
but could not remove the borders. Is there something like a tlabel but
with a lines property?
- Used the background setting of the timage to have images on the page
but learned very quickly that that would bring the editor to its knees
if those images are large. So switch to use the url settings, however
now I don't see the images during designing?
- Is it possible to include HTML tags in text? if not how can you have
bold etc within text?

Frans
Wed, Sep 2 2015 10:03 AMPermanent Link

Uli Becker

Frans,

I can't see what's wrong with a TLabel. If you want to display larger texts you can use the wordwrap property.
The layout options will allow you to position your labels properly.

Uli
Wed, Sep 2 2015 3:46 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frans,

<< - How do you place text on a page? I was using tlabel but large text in a caption is not that easy/simple. >>

I'll be adding a caption editor dialog soon for the object inspector.  It will make editing multi-line captions easier.  2.02 will see some general improvements to the caption/font property editors.

<< So switched to disabled MultiLineEdit but could not remove the borders. Is there something like a tlabel but
with a lines property? >>

I wouldn't use a TMultiLineEdit for that purpose.  You'll be fighting a losing battle.  The TLabel control has complete alignment, auto-sizing, wrapping, etc.

<< - Used the background setting of the timage to have images on the page but learned very quickly that that would bring the editor to its knees if those images are large. >>

That's because it has to save the image as a base-64-encoded string so that it can be packaged in the HTML loader file.

<< So switch to use the url settings, however now I don't see the images during designing? >>

That's correct.  Images in TImage controls are visible only at runtime.

<< - Is it possible to include HTML tags in text? >>

No.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Sep 3 2015 1:56 AMPermanent Link

Uli Becker

Frans,

after Tim's respone: sorry, I didn't realize that you were talking about
design time editing of Lables.

Uli
Thu, Sep 3 2015 7:22 AMPermanent Link

F. van Daalen

On 2-9-2015 21:46, Tim Young [Elevate Software] wrote:
> Frans,
>
> << - How do you place text on a page? I was using tlabel but large text in a caption is not that easy/simple. >>
>
> I'll be adding a caption editor dialog soon for the object inspector.  It will make editing multi-line captions easier.  2.02 will see some general improvements to the caption/font property editors.


That would indeed be great option

>
> << So switched to disabled MultiLineEdit but could not remove the borders. Is there something like a tlabel but
> with a lines property? >>
>
> I wouldn't use a TMultiLineEdit for that purpose.  You'll be fighting a losing battle.  The TLabel control has complete alignment, auto-sizing, wrapping, etc.
>

Ok

> << - Used the background setting of the timage to have images on the page but learned very quickly that that would bring the editor to its knees if those images are large. >>
>
> That's because it has to save the image as a base-64-encoded string so that it can be packaged in the HTML loader file.

Clear.

>
> << So switch to use the url settings, however now I don't see the images during designing? >>
>
> That's correct.  Images in TImage controls are visible only at runtime.

Ok

>
> << - Is it possible to include HTML tags in text? >>
>
> No.
>

if not how can you have bold etc within a text?

Frans
Thu, Sep 3 2015 3:16 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frans,

<< if not how can you have bold etc within a text? >>

If you're trying to display a block of HTML, then you can use the TBrowser control, and just assign an HTML document to it using the DocumentText property:

  Browser1.DocumentText:='<!doctype html><html><body>This <b>is</b> a test</body></html>';

Tim Young
Elevate Software
www.elevatesoft.com
Image