[Scilab-users] Scilab 6.1 - Possible GUI Bug

classic Classic list List threaded Threaded
3 messages Options
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Scilab 6.1 - Possible GUI Bug

Hi, 

When trying to update guibuilder for Scilab 6.1, I notice that the figure menu is not able to be remove with "delmenu" when the "dockable" is set to "off".

How to reproduce:

Scenario 1: Menu "File" will not be removed
--> f1 = figure("dockable", "off")
--> delmenu(f1.figure_id, gettext("File"));



Scenario 2: Menu "File" will be removed
-->f1 = figure("dockable", "on")
-->delmenu(f1.figure_id, gettext("File"));


Current workaround: 
-->f1 = figure("dockable", "on")
-->delmenu(f1.figure_id, gettext("File"));
-->f1.dockable = "off";

thanks.

rgds,
CL


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

Re: Scilab 6.1 - Possible GUI Bug

sorry, the workaround does not work, the dockable value can only set during creation. 



---- On Wed, 26 Feb 2020 12:56:37 +0800 Chin Luh Tan <[hidden email]> wrote ----

Hi, 

When trying to update guibuilder for Scilab 6.1, I notice that the figure menu is not able to be remove with "delmenu" when the "dockable" is set to "off".

How to reproduce:

Scenario 1: Menu "File" will not be removed
--> f1 = figure("dockable", "off")
--> delmenu(f1.figure_id, gettext("File"));



Scenario 2: Menu "File" will be removed
-->f1 = figure("dockable", "on")
-->delmenu(f1.figure_id, gettext("File"));


Current workaround: 
-->f1 = figure("dockable", "on")
-->delmenu(f1.figure_id, gettext("File"));
-->f1.dockable = "off";

thanks.

rgds,
CL

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: Scilab 6.1 - Possible GUI Bug

In reply to this post by Tan Chin Luh
Hello Chin Luh,

Le 26/02/2020 à 05:56, Chin Luh Tan a écrit :
Hi, 

When trying to update guibuilder for Scilab 6.1, I notice that the figure menu is not able to be remove with "delmenu" when the "dockable" is set to "off".

How to reproduce:

Scenario 1: Menu "File" will not be removed
--> f1 = figure("dockable", "off")
--> delmenu(f1.figure_id, gettext("File"));


Bug confirmed. Work-around:

f1 = figure("dockable", "off");
get(0).showhiddenhandles = "on";
delete(f1.children($));
get(0).showhiddenhandles = "off";

Regards
Samuel




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users