Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: outputing a real time counter on the gui
Pages: [1] Print
Author Topic: outputing a real time counter on the gui  (Read 365 times)
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
outputing a real time counter on the gui
« on: November 19, 2007, 03:29:31 AM »

Code:
count: 0
counter: does [count: add count 1]

view layout [
button "TEST" [print counter]

]
I'm trying to output the counter on the gui instead of the console, but can't figure out how.
I can print out things like strings and words like NOW using TEXT, but i haven't been able to find out much on how to print results from real time events (like the one above) without throwing alert signs on the screen.

Thanks.
Logged

Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: outputing a real time counter on the gui
« Reply #1 on: November 19, 2007, 03:49:49 AM »

Code:
view layout [
    disp: info
    button "TEST" [
        disp/text: form counter
        show disp
    ]
]
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Re: outputing a real time counter on the gui
« Reply #2 on: November 19, 2007, 07:40:53 AM »

Thanks! I've prettified a bit...
Code:
count: 0
counter: does [count: add count 1]

view layout [
    disp: info "0" center bold font-size 50 font-color red 150x70 edge [color: black effect: none]
    button "TEST" [
        disp/text: form counter
        show disp
    ]
]
FACE STYLE -> info - http://www.rebol.com/how-to/fields.html
« Last Edit: November 19, 2007, 07:42:56 AM by leke » Logged

Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: outputing a real time counter on the gui
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 01:35:11 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