<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Johnathan, and list.<br>
<br>
Thank you for your reply.<br>
<br>
I've checked the code for some of the sys_vgui calls by comparing
vanilla ones with the one of extended.<br>
It seems that the code is the same.<br>
<br>
For example, the g_numberbox.c use sys_vgui call to draw the
rectangle and text, but on vanilla and extended is the very same
code:<br>
<br>
<div align="left">sys_vgui(<br>
".x%lx.c create line %d %d %d %d %d %d -fill #%6.6x -tags
%lxBASE2\n",<br>
canvas, xpos, ypos,<br>
xpos + half, ypos + half,<br>
xpos, ypos + x->x_gui.x_h,<br>
x->x_gui.x_fcol, x);<br>
sys_vgui(".x%lx.c create text %d %d -text {%s} -anchor w \<br>
-font {{%s} -%d %s} -fill #%6.6x -tags [list %lxLABEL label
text]\n",<br>
canvas, xpos+x->x_gui.x_ldx, ypos+x->x_gui.x_ldy,<br>
strcmp(x->x_gui.x_lab->s_name,
"empty")?x->x_gui.x_lab->s_name:"",<br>
x->x_gui.x_font, x->x_gui.x_fontsize, sys_fontweight,<br>
x->x_gui.x_lcol, x);<br>
<br>
I think that the -fill parameter is the one responsible of the
color, but is the same both for vanilla and extended.<br>
<br>
I've also checked the code in s_intern.c (the place where
sys_vgui is defined), and there are no difference between
vanilla and extended.<br>
<br>
Any idea?<br>
<br>
Thank you<br>
<br>
Alessio<br>
</div>
<br>
<br>
On 23/12/2014 01:14, Jonathan Wilkes wrote:<br>
</div>
<blockquote
cite="mid:732311346.404261.1419293696306.JavaMail.yahoo@jws10657.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_1_1419293211613_6182" dir="ltr">It's been
awhile sinceI looked, but I _think_ Pd-extended also refers to
those tcl variables in the sys_vgui code on the C side. So
the sys_vgui string responsible for, say, creating a rectangle
on a canvas will give it the outline color of
"$::box_outline".</div>
<div id="yui_3_16_0_1_1419293211613_11290" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1419293211613_11291" dir="ltr">Check
g_text.c and the iemgui code for sys_vgui statements. I think
in many cases Pd Vanilla simply doesn't specify the colors, so
the box and xlets default to black.</div>
<div id="yui_3_16_0_1_1419293211613_11295" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1419293211613_11296" dir="ltr">Btw--
Pd-l2ork has a little gui dialog where you can choose
different presets, or even define your own color schemes.</div>
<div id="yui_3_16_0_1_1419293211613_11297" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1419293211613_11298" dir="ltr">-Jonathan<br>
</div>
<div class="qtdSeparateBR"><br>
<br>
</div>
<div style="display: block;" class="yahoo_quoted">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
16px;">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
16px;">
<div dir="ltr"> <font face="Arial" size="2"> On Monday,
December 22, 2014 5:31 PM, Alessio Degani
<a class="moz-txt-link-rfc2396E" href="mailto:alessio.degani@ymail.com"><alessio.degani@ymail.com></a> wrote:<br>
</font> </div>
<br>
<br>
<div class="y_msg_container">Hi list,<br>
<br>
I would like to try to change pd-vanilla patch rendering
in order to <br>
obtain something like pd-extended rendering.<br>
<br>
I've cloned the latest pd-vanilla GIT repo and I've
started to look at <br>
the src in order to figure out how to do that.<br>
After some search, it seems that all what I need is in
the tcl stuff. <br>
I've googled it and it seems that I'm right, or am I
wrong?? (perhaps <br>
I've should start from here :D ).<br>
<br>
First of all, I've tested the build procedure. It was
ok. I've tested <br>
pd-vanilla *without installing it*:<br>
cd src<br>
./pd<br>
<br>
I've got an error: " ... pd-gui.tcl": no such file or
directory. I've <br>
resolved:<br>
cd src<br>
ln -s ../tcl<br>
<br>
Now, pd works.<br>
<br>
Then, I've tried to modify some simple elements in order
to check if I <br>
can see the effect. I've added some stuff in the
"init_for_platform" {}<br>
<br>
Here is the stuff that I've added:<br>
<br>
# color scheme<br>
set ::canvas_fill "#303030"<br>
set ::text_color "#ff0000"<br>
set ::select_color "#ff7200"<br>
set ::dash_outline "#008800"<br>
set ::dash_fill "#000055"<br>
set ::box_outline "#888888"<br>
set ::graph_outline "#888888"<br>
set ::atom_box_fill "#555555"<br>
set ::msg_box_fill "#555555"<br>
set ::obj_box_fill "#550000"<br>
set ::signal_cord_highlight "#fff600"<br>
#set ::signal_cord "#00868a"<br>
#set ::signal_nlet $signal_cord<br>
set ::msg_cord_highlight "#fff600"<br>
set ::msg_cord "#ff3e8a"<br>
set ::msg_nlet "#ff3e8a"<br>
set :mixed_nlet "#88aaff"<br>
<br>
But when I stat pd, it seems that this modification has
no effect.<br>
<br>
What I've missed?<br>
<br>
Thank you<br>
<br>
Alessio<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true" href="" class="removed-link"
ymailto="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a>
mailing list<br>
UNSUBSCRIBE and account-management -> <a
moz-do-not-send="true" href="" class="removed-link"
target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
a.</pre>
</body>
</html>