BCB Components rotating around DirectX

Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register Here Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    FORUM MESSAGE
    Go to the Welcome Page
        FORUM MESSAGE

    You are reading a General forum message.

    Re: Need some help...MEMO, TreeView solution...

    Author: Israel Luengo

    Date Posted: 2005-08-04 20:14:10



    Hey Eileen, may be here's the solution....

    void __fastcall TForm1::Memo1Click(TObject *Sender)
    {
       //////////////////////////////////////////////////////////////////////////////////
        int row,col;
        AnsiString CON2; //The "string" of Memo when Memo clicked

       row = SendMessage(Memo1->Handle,EM_LINEFROMCHAR,Memo1->SelStart,0);
        CON2 = Memo1->Lines->Strings[row].c_str();  //this line is for view the value of string

        TreeView1->Selected->Text = CON2; //Finally we assign the "string" of Memo line, to the TreeView Selected Node

        //cheers and have a good holidays ;) ....huggs from me and Leo (the friend that gives me the solution) ;)))
    }




    REPLY TO THIS MESSAGE?
    Top    

    You can post a reply to this General message using the form below:
    Your Name:


    Message Subject:


    Message Body:


    Verification:





    When ready, click on the submit button below:






Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2007 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.