What is my Memo's Name ??? Any ideas?

This is a discussion on What is my Memo's Name ??? Any ideas? within the Windows Programming forums, part of the Platform Specific Boards category; How do I get in touch with my Runtime-Made Memo. How do I call them, if I like to write ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    64

    What is my Memo's Name ??? Any ideas?

    How do I get in touch with my Runtime-Made Memo.
    How do I call them, if I like to write some TEXT in some of
    them...?
    I have tried to call some names, but It has to be called runtime, 'couse at Designtime, I can't call them offcouse..

    Any good ideas...

    Here is some of my code.
    Tx for helping..

    Gugge

    code clip----------------

    void TBrugerflade::InsertMemoFelter(TWinControl *Control, int screen)
    {

    int number;
    char namebuffer[20];
    char nameLabel[20];
    int memotop = 40;
    int memoleft = 60;
    int labeltop = memotop;

    for(int Rows=1; Rows<Antal2persBorde+1; Rows++)
    {
    sprintf(namebuffer,"objekt%d",x);
    sprintf(nameLabel,"%d",x);

    TMemo *namebuffer = new TMemo(Control);
    namebuffer->Height = 21;
    namebuffer->Width = 120;
    namebuffer->Left = memoleft;
    namebuffer->Top = memotop;
    namebuffer->Parent = Control;
    memotop += 23;
    }
    }
    !G!

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Don't have a clue but I found this link through google that might help:

    TMemo class Reference.

  3. #3
    Davros
    Guest
    The simplest way is to hold the pointer to TMemo as data your TBrugerflade class, rather than a variable which goes out of scope when your function terminates.

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    64
    I'm not sure, I understand it.

    How can I see what my memo is called, so I can see if the right name is on the memo.

    Is it possible to fx. right click on a memo, and then get the name from it.?
    Then it will be easier to get hold of all the runtime made memos..

    !G!
    !G!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ideas, how do you get them? xD
    By Akkernight in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 01-22-2009, 03:53 AM
  2. any beginner ideas?
    By gunder in forum C Programming
    Replies: 6
    Last Post: 11-25-2005, 10:09 AM
  3. cool ideas for a game
    By Shadow12345 in forum Game Programming
    Replies: 7
    Last Post: 05-18-2004, 09:37 PM
  4. idea's idea's idea's
    By mithrandir in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 04-29-2002, 01:30 AM
  5. Small app ideas
    By dirkduck in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 02-15-2002, 08:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21