[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dr. Geo] Simple script
From: |
Hliaire Fernandes |
Subject: |
[Dr. Geo] Simple script |
Date: |
Sun, 22 Apr 2018 11:56:14 -0700 (MST) |
Benoît,
Responding to you on the forum for the record.
The slider only updates its label when its value is request through a *a
value*,'*b value* or *c value* message.
This should logically happen later in your script code, otherwise your
slider is not used and not needed.
You may have already read the* wave.st* script example.
You may add a :
* a inspect*
at the end of your script.
The slider is quick hack I wrote directly at DrGeoCanvas class to answer to
a request. It does pretty well it job so far.
Hilaire
/
Hi Hilaire
I'm trying to be a simple script to experiment a few thing and I'm not
successful!
I just want a "slider", a point I can move on a segment and display it's
value. So far, it looks like this but the value is never displayed:
------------
|canvas a b c|
canvas := DrGeoCanvas new.
a := canvas float: 0 at: address@hidden from: -10.0 to: 10.0 name: 'a'
showValue:
true.
b := canvas float: 0 at: address@hidden from: -10.0 to: 10.0 name: 'b'
showValue:
true.
c := canvas integer: 0 at: address@hidden from: -10.0 to: 10.0 name: 'c'
showValue:
true.
-------------
Am I missing something?
-----------------
Benoît St-Jean/
--
Sent from: http://forum.drgeo.eu/Dr-Geo-users-f4023913.html
- [Dr. Geo] Simple script,
Hliaire Fernandes <=