[Scilab-users] How to open figure properties? BUGFIX PROPOSED
Viktor Mileikovskyi
v_mil at ukr.net
Mon Apr 3 17:02:47 CEST 2017
I tried to investigate the problem. Running ged during the process of the dialog show cause including of the global variable ged_cur_fig_handle. It may contain the handle of the current figure. I stop the function and run
handles = Get_handles_list(f)
handles =
37 by 1 matrix of handles:
==========================
Figure
Axes
Compound
Polyline
Label
Label
Label
Label
uimenu
uimenu
...
uimenu
"Label" is absent in select statement of ged.sci (lines 35...117).
Possible reason of the error - the function " TK_send_handles_list" is not fully developed in LINUX version.
For me the following bugfix works:
file: /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the following code is inserted after the line 113. It may be put inside the "select hand.type" statement before any "case" word
case "Label" //MY BUGFIX
iLab = iLab+1; //I ASUME THAT iLab IS THE LABLE COUNTER.
//IF NOT, PLEASE REPLACE IT BY OTHER VARIABLE
// AND INITIALIZE AT THE BEGINNING OF THE FUNCTION!!!
Labname= "Label("+string(iLab)+")";
TCL_EvalStr("set "+SelObject+" "+Labname);
3 квітня 2017, 17:06:32, від "Viktor Mileikovskyi" < v_mil at ukr.net >:
Can you open "Figure properties" dialog using the graphics windows menu?
The additional tests are performed using the following OSes:
- Windows (Windows 10 64 bit) - the "Figure properties" dialog is openned successfully;
- Linux (Ubuntu 14.04 64 bit) - the "Figure properties" dialog can not be openned and the error below occurs.
at line 116 of function TK_send_handles_list ( /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci рядок 116 )
at line 99 of function ged ( /opt/scilab/share/scilab/modules/graphics/macros/ged.sci рядок 110 )
Label not handled
Therefore, the problem is related to LINUX 64BIT Version (maybe, also for 32 bit).
With best regards.
Viktor.
3 квітня 2017, 16:53:27, від "Heinz Nabielek" < heinznabielek at icloud.com >:
What exactly is the problem? Everythings works for me as before-see
attachment. Heinz
< http://mailinglists.scilab.org/file/n4036134/Screenshot_2017-04-03_15.png >
--
View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-open-figure-properties-tp4036131p4036134.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
--
E-Mail: v_mil at ukr.net
E-Mail: mileikovskyi at gmail.com
Skype: mileikovskyi
Mob: +38-044-2284247
Mob: +38-094-8284247
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
--
E-Mail: v_mil at ukr.net
E-Mail: mileikovskyi at gmail.com
Skype: mileikovskyi
Mob: +38-044-2284247
Mob: +38-094-8284247
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170403/84588ace/attachment.htm>
More information about the users
mailing list