I noticed that somehow matlab offer easy access for .jpg picture like
function:
backgroundImage = importdata ('picture1.jpg')
So, how to put some background picture or logo in Scilab GUI easy
function like:
Buttondialog
x_mdialog
x_message
or advance GUI function like uimenu.
I tried to learn about TCL / TK but seem i cannot understand well on
how to install Tcl using Visual C++, and how Tcl communicate with
Scilab in developing Scilab GUI function (buttondialog etc)
Right now i am try to learn about XML if they can provide solution for
me.
no easy way like that, period. You have to write your tcl script for
doing that, which you'll source with TCL_EvalStr or TCL_EvalFile.
You'll probably want scilab to communicate with the script (e.g,
retrieve callbacks, button status, etc, which brings an additional
complication.
The easiest solution, and technical anyway, is perhaps to go along the
lines of http://groups.google.com/group/comp.soft-sys.math.scilab/browse_frm/thread/96072d065ecd541/
, that is to create the GUI with figure(), uicontrol(), and to
supplement the missing properties with TCL_Evalxxx calls. See also
what I wrote in
http://wiki.scilab.org/howto/guicontrol, it might help you [not
intended as a tutorial, anyway].
> I tried to learn about TCL / TK but seem i cannot understand well on
> how to install Tcl using Visual C++,
why should you? Tcl/tk comes bundled with scilab. Unless you *really*
want a different version of tcl, in case see
http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5
> and how Tcl communicate with
> Scilab in developing Scilab GUI function (buttondialog etc)
help ScilabEval, TCL_EvalStr, TCL_SetVar, etc.
> Right now i am try to learn about XML if they can provide solution for
> me.
I don't think it would, but I migh be missing something.
hth, Enrico
h=figure();
b=uicontrol(h,"style","pushbutton","position",[10 10 200 200]);
p=get(b,"path");
TCL_EvalStr("image create photo mybg -file myimage.gif;"+p+" configure
-image mybg")
to you to see which other image format tcl 8.x supports, on what else
besides button you can place images, etc.
> no easy way like that, period. You have to write your tcl script for
> doing that, which you'll source with TCL_EvalStr or TCL_EvalFile.
> You'll probably want scilab to communicate with the script (e.g,
> retrieve callbacks, button status, etc, which brings an additional
> complication.
Owh...i see. So basically Tcl / Tk doesnt need any platform to compile
the script like C language you have Visual Studio right? So, we just
need to do the scripting in notepad and compile using TCL-Scilab
command?
> The easiest solution, and technical anyway, is perhaps to go along the
> lines ofhttp://groups.google.com/group/comp.soft-sys.math.scilab/browse_frm/t...
> , that is to create the GUI with figure(), uicontrol(), and to
> supplement the missing properties with TCL_Evalxxx calls. See also
> what I wrote inhttp://wiki.scilab.org/howto/guicontrol, it might help you [not
> intended as a tutorial, anyway].
Yups, its very good link. I will definitely try to learn from that.
> why should you? Tcl/tk comes bundled with scilab. Unless you *really*
> want a different version of tcl, in case seehttp://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5
Owh, really? Its just because i think its sure a different programming
platform since Tcl and Scilab are not the same group. Seem i lose
something very important here.
> help ScilabEval, TCL_EvalStr, TCL_SetVar, etc.
Okay. Anyway, thanks for replying my post. you really help much
Enrico. I will try first and post back if i encounter unsolved part.