Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: MList Selected Item Text



Permlink Replies: 1 - Last Post: Sep 11, 2015 7:55 PM Last Post By: Erick Engelke Threads: [ Previous | Next ]
Ernst Stimmer

Posts: 5
Registered: 10/21/13
MList Selected Item Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 6, 2014 4:03 PM
Hi,

I can fill the MList, but how can I get the clicked Itme Text ? I only found a documentation for ComboBox.

        $This->MLabel1->Caption = $This->MList1->Items->Stings[$Sender->Text];
        $This->MLabel1->Caption = $This->MList1->Items->Stings[ListItemIndex];
        $selectedItem = $this->MList1->Items[$this->MList1->ListItemIndex];
        $This->MLabel1->Caption = $selectedItem;


Can the clicked Item highlighted and highlighted multi select items ?

Ernst
Erick Engelke

Posts: 101
Registered: 12/5/02
Re: MList Selected Item Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 11, 2015 7:55 PM   in response to: Ernst Stimmer in response to: Ernst Stimmer
Ernst Stimmer wrote:
Hi,

I can fill the MList, but how can I get the clicked Itme Text ? I only found a documentation for ComboBox.

        $This->MLabel1->Caption = $This->MList1->Items->Stings[$Sender->Text];
        $This->MLabel1->Caption = $This->MList1->Items->Stings[ListItemIndex];
        $selectedItem = $this->MList1->Items[$this->MList1->ListItemIndex];
        $This->MLabel1->Caption = $selectedItem;


Can the clicked Item highlighted and highlighted multi select items ?

Ernst

reset( $items );
while ( list( $key, $value ) = each( $items ) {
if ( $this->ListBox1->readSelected( $key )
print "$key is selected
";
}

--
Erick Engelke
HTML5 Builder Book
http://www.erickengelke.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02