[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] SCTestView editable_ (from SF Bugs)



sorry but i won't change that in SwingOSC. i think it's illogic to block programmatical control of a view just because user interaction is blocked. you can resize a window even if its not resizable, you can close it even if userCanClose is false, you can change the values of a multislider even if its readonly etc.

ciao, -sciss-


Am 16.01.2008 um 11:40 schrieb Fredrik Olofsson:

hi Jan,
ok. i thought editable referred to the act of typing things into the graphical box - not setting the content with a message. i understand now. just slightly annoying that you have to remember the order of the messages when creating a textview with non- changeable text.

(still works differently in swingosc0.57b btw)

(advanced find seem to work great here on both ppc and intel - thanks)
_f


Am 16.01.2008 um 09:25 schrieb Jan Trutzschler:

Hi Fredrik,

i think the code below works as expected. If the textView is not
editable you cannot set a string.  So i don't consider this to be a
bug. (It's a feature ;-} ). It's like a closet, you can't put
something in, when it is locked.

GUI.cocoa
(
w= GUI.window.new;
GUI.textView.new(w, Rect(10, 10, 100, 20))
.editable_(false)
.string_("asdf"); //not displayed
w.front;
)

best,
Jan


  #|
     fredrikolofsson.com     klippav.org     musicalfieldsforever.com
  |#

_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel