[sc-users] Check box
Jan Trutzschler
sc3 at sampleAndHold.org
Sun Apr 27 16:51:13 PDT 2008
the max toggle thus ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TToggle.sc.zip
Type: application/zip
Size: 920 bytes
Desc: not available
Url : http://lists.create.ucsb.edu/pipermail/sc-users/attachments/20080428/b0d016b5/attachment-0001.zip
-------------- next part --------------
On Apr 28, 2008, at 1:26 AM, TomD wrote:
> Yes nearly that, but just a square in which you click and appears or
> diseappears a cross, not a button which you push or not
> ( not exactly a tick like in SCNSObject, but something more basic,
> a cross like your example, but with no button, just a square hole.
> Did I just invent it or do I confuse with html or something else ...?)
>
> Le 26 avr. 08 ? 12:14, Stephan Wittwer a ?crit :
>
>>
>> Am 25.04.2008 um 11:23 schrieb TomD:
>>
>>> I'm looking desesperatly for a kind of "tick box" (a box which you
>>> just tick with a cross or not) in GUI and can't find it back. Can
>>> somebody help ? Thanks a lot...
>>
>>
>> Just a button with two states maybe?
>>
>> (
>> var win, btn;
>> win = GUI.window.new("x", Rect.new(120, 90, 200, 150));
>> btn = GUI.button.new(win, Rect.new(20, 15, 24, 24));
>> btn.states = [[""], ["x"]];
>> btn.action = { |view| (view.value > 0).postc; };
>> win.front;
>> )
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
More information about the sc-users
mailing list