Recent

Author Topic: Simple Q. on Tedit or Tmemo (* SOLVED *)  (Read 6027 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
Simple Q. on Tedit or Tmemo (* SOLVED *)
« on: July 06, 2011, 05:27:58 am »
I am exploring Lazarus on and ad/hoc basis, and when I put a Tedit or a Tmemo object on the Form, and I execute it, the Memo field has as content  "Memo1" or whatever its identifier is.

Usually I'd want the memo field to be empty, and I thought this would be a Property of the object to "not show" or "show" any content when starting. I have been through most of its properties and can't seem to find one that would make the object start empty.

I hope one does not have to code an empty value to the object in order for the object to contain no text when it starts.

So a brief "how to" would be appreciated.

Thanks!
« Last Edit: July 07, 2011, 11:43:23 am by Elmug »

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: Simple Q. on Tedit or Tmemo
« Reply #1 on: July 06, 2011, 06:29:28 am »
For TMemo, take a look the the property "Lines".  Clicking on the right column, "TStrings" should bring up an editor where you can enter whatever text you want to display on startup.

For TEdit, look at the property "Text".
Lazarus Trunk / fpc 2.6.2 / Win32

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Simple Q. on Tedit or Tmemo
« Reply #2 on: July 06, 2011, 07:06:06 am »
For TMemo, take a look the the property "Lines".  Clicking on the right column, "TStrings" should bring up an editor where you can enter whatever text you want to display on startup.

For TEdit, look at the property "Text".

Hi Avishai,

I got it!

Thanks for the help.

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: Simple Q. on Tedit or Tmemo
« Reply #3 on: July 06, 2011, 07:08:50 am »
Welcome.  I think you are in for a pleasant surprise with the people here on the forum.  They are very helpful and a great bunch of folks.
Lazarus Trunk / fpc 2.6.2 / Win32

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Simple Q. on Tedit or Tmemo
« Reply #4 on: July 06, 2011, 07:45:33 am »
Welcome.  I think you are in for a pleasant surprise with the people here on the forum.  They are very helpful and a great bunch of folks.

This above is much part of my having been at Lazarus ON without blinking for a few impressive days.

I am happy I did find this great forum.

Shebuka

  • Sr. Member
  • ****
  • Posts: 429
Re: Simple Q. on Tedit or Tmemo
« Reply #5 on: July 06, 2011, 11:15:15 am »
for TEdit i'm using .Caption, in this way it's much more uniform with TLable and you mustn't even think about what to use, caption or text.

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Simple Q. on Tedit or Tmemo
« Reply #6 on: July 06, 2011, 08:31:43 pm »
for TEdit i'm using .Caption, in this way it's much more uniform with TLable and you mustn't even think about what to use, caption or text.

Good point. I did notice some slight inconsistency. "Caption" throughout would have sufficed, as you say, for consistency..But surely there can be more in those designs that I am missing.

Thanks.

 

TinyPortal © 2005-2018