Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: on-click the name on textlist to display the data?
Pages: [1] Print
Author Topic: on-click the name on textlist to display the data?  (Read 409 times)
newbie
Guest


Email
on-click the name on textlist to display the data?
« on: April 11, 2004, 10:46:19 PM »

Hi, may I ask how to on click the one of the name on the text-list in order to display the whole list of data on the textbox? Thank you
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
on-click the name on textlist to display the data?
« Reply #1 on: April 12, 2004, 12:01:55 AM »

Not sure if I fully understand your question, but if it's that you want to select all items in a list, this little script shows how to do that...
Code:
rebol []
a-list: [
   "aaa"
   "bbbb"
   "ccccc"
]
view layout [
   t: text-list data a-list [
       probe face/picked
   ]
   button "Select All" [
       clear t/picked
       insert t/picked t/data
       show t
   ]
   button "Clear All" [
       clear t/picked
       show t
   ]
]
It also outputs the contents of the picked block to the console when you click on a list item.  Use Ctrl/click to select more than one item manually and see the output reflect that.

Hope this was some help - was answering the question you were asking...
Logged

- Carl Read
newbie
Guest


Email
on-click the name on textlist to display the data?
« Reply #2 on: April 12, 2004, 03:04:29 AM »

Quote
Not sure if I fully understand your question, but if it's that you want to select all items in a list, this little script shows how to do that...
Code:
rebol []
a-list: [
   "aaa"
   "bbbb"
   "ccccc"
]
view layout [
   t: text-list data a-list [
       probe face/picked
   ]
   button "Select All" [
       clear t/picked
       insert t/picked t/data
       show t
   ]
   button "Clear All" [
       clear t/picked
       show t
   ]
]
It also outputs the contents of the picked block to the console when you click on a list item.  Use Ctrl/click to select more than one item manually and see the output reflect that.

Hope this was some help - was answering the question you were asking...
But if I want to select only one of the content not select all to be display on the textbox not on the console.. thank you  
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: on-click the name on textlist to display the data?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:09:55 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4139 Members
Latest Member: DietaVato

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc