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

Re: [sc-users] How to change the default server window colors, fonts, etc



I don't know about that errors, which seems to be a syntax error.
But  it's true, effectively there should be something going on on startup which may prevent the code to work... hmm, sorry I cannot remember here..

Best
-a-


On 4 Mar 2009, at 23:39, tomaso wrote:


I think the first way its ok for me now...

So i wrote in the startup as you said to test it


Server.local.window.close ;
w = GUI.window.new("Test") ;
w.view.decorator = FlowLayout(w.view.bounds) ;
w.view.background = "" ; // whatever
w.bounds_(Rect(0, 500, 650, 100)) ; // ex.
s.makeWindow(w)

but in the post window appears: 

Class tree inited in 0.02 seconds
• ERROR: Parse error
   in file 'selected text'
   line 5 char 10:
  w ="Test")• ;

-----------------------------------
unmatched ')'
  in file 'selected text' line 5 char 10
• ERROR: Parse error
   in file 'selected text'
   line 5 char 10:
  w ="Test")• ;

Its weird cause there isnt any mistakes...  
When i execute this from SC it works, but not from the startup file....

Thanx again




andrea valle-3 wrote:

There are two ways:

1. you can put something like this in startup

Server.local.window.close ;
w = GUI.window.new("Test") ;
w.view.decorator = FlowLayout(w.view.bounds) ;
w.view.background = "" ; // whatever
w.bounds_(Rect(0, 500, 650, 100)) ; // ex.
s.makeWindow(w)



But I was suggesting that you cannot customize it  a lot (e.g. fonts)  
without rewriting  the method, as Fredrik noted.
Hence the second way


2. you can simply change the the graphic related code in the makeGui  
method (e.g. instead of
GUI.font.new("Helvetica", 10);
you can put another font name)

Then you need to save the file and recompile (pretty easy, Lang -->  
Compile Library)
And you should see some changes

Best

-a-

On 4 Mar 2009, at 23:00, tomaso wrote:


Ok i found the ServerPlusGui class, but i cant find the makeGui method
Do i have to replace this class with a new one, modified, if can  
understand?
And then in the Startup file to close the default server and read  
the new
class?







andrea valle-3 wrote:

Well, that's not a separate issue, in your startup you can close the
window and recreate it (I do it in my startup).
E.g.
Server.local.window.close

But maybe -In order to customize the window- the easy way is to
overwrite the makeGui method of Server (ServerPluGUI.sc)


-a-

On 4 Mar 2009, at 22:43, tomaso wrote:


Thanx for your reply..

I dont try to make a new server, just to modify the existing...To
have other
colors, transparency and other fonts...




andrea valle-3 wrote:

As far as I can understand on the fly, examining sources you should
be able to pass a window you created to an instance of Server, e.g.

s.makeWindow(Window.new)

but there's a problem with w.decorator.nextLine, as the  
decorator in
this case is nil.

Hmm...

-a-

On 4 Mar 2009, at 22:15, tomaso wrote:


Hello

I would like to change the default colors, fonts and backgrounds
for the
internal/localhost server windows..

With the Post window its easy by making a startup.rtf file with
Document.listener...
What can i do to change the look of the servers?

Thanx..
-- 
View this message in context: http://www.nabble.com/How-to-change-
the-default-server-window-colors%2C-fonts%2C-etc-
tp22338750p22338750.html
Sent from the Supercollider - User mailing list archive at
Nabble.com.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/
sc_mailing_lists.shtml

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"The objectives of SuperCollider have been taken a stage further  
with
the development of SAOL, the fruits of a research project based at
MIT, launched in 1998"
(P. Manning, Electronic and Computer Music, revised and expanded
edition, 2004)




-- 
View this message in context: http://www.nabble.com/How-to-change-
the-default-server-window-colors%2C-fonts%2C-etc-
tp22338750p22340060.html
Sent from the Supercollider - User mailing list archive at  
Nabble.com.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/
sc_mailing_lists.shtml

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"The objectives of SuperCollider have been taken a stage further with
the development of SAOL, the fruits of a research project based at
MIT, launched in 1998"
(P. Manning, Electronic and Computer Music, revised and expanded
edition, 2004)




-- 
View this message in context: http://www.nabble.com/How-to-change- 
the-default-server-window-colors%2C-fonts%2C-etc- 
tp22338750p22340388.html
Sent from the Supercollider - User mailing list archive at Nabble.com.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/ 
sc_mailing_lists.shtml

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"The objectives of SuperCollider have been taken a stage further with  
the development of SAOL, the fruits of a research project based at  
MIT, launched in 1998"
(P. Manning, Electronic and Computer Music, revised and expanded  
edition, 2004)




-- 
Sent from the Supercollider - User mailing list archive at Nabble.com.


_______________________________________________
sc-users mailing list


--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------

"The objectives of SuperCollider have been taken a stage further with the development of SAOL, the fruits of a research project based at MIT, launched in 1998" 
(P. Manning, Electronic and Computer Music, revised and expanded edition, 2004)