Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: display the data on the texbox not console
Pages: [1] Print
Author Topic: display the data on the texbox not console  (Read 307 times)
newbie
Guest


Email
display the data on the texbox not console
« on: April 13, 2004, 02:50:06 AM »

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
Guest
Guest


Email
display the data on the texbox not console
« Reply #1 on: April 13, 2004, 04:49:36 AM »

Try This...
Code:
rebol []
a-list: [
   "aaa"
   "bbbb"
   "ccccc"
]
view layout [
   t: text-list data a-list [
       f/text: first t/picked
      ; could be...    f/text: first face/picked
       show f
   ]
   f: field
   button "Select All" [
       clear t/picked
       insert t/picked t/data
       show t
   ]
   button "Clear All" [
       clear t/picked
       show t
   ]
]
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: display the data on the texbox not console
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 01:47:31 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2240 Posts in 584 Topics by 2210 Members
Latest Member: Wqmsewzb

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

RT design by Defiant Pc