Re: [Scilab-Dev] x_mdialog for editing matrices

classic Classic list List threaded Threaded
3 messages Options
Samuel GOUGEON-3 Samuel GOUGEON-3
Reply | Threaded
Open this post in threaded view
|

Re: [Scilab-Dev] x_mdialog for editing matrices

(Follow-up redirected to users@ instead of dev@ )
----- Message d'origine -----
De : Kirill Kirillov
Date : 01/06/2009 00:17:

> Hi!
>
> I've tried to use x_mdialog function for editing matrices using idea
> found in Scilab demos (GUI dialog example), but it seems that this
> function is not suitable for this.
>
> Take a look at the following example:
> rows = ['row1' 'row2'];
> cols = ['col1' 'col2' 'col3'];
> test = [1 1 1; 0 0 0];
> x_mdialog('Testing', rows, cols, string(test))
>
> Results:
> 1) [1 0 1; 0 1 0] in row1 and row2 instead original [1 1 1; 0 0 0];
> 2) col1, col2 and col3 should be shifted to be above correspondent cells
>
> Are these bugs?
>  
Strange, indeed.
Have you tried with x_matrix() ?


Samuel GOUGEON-3 Samuel GOUGEON-3
Reply | Threaded
Open this post in threaded view
|

Re: [Scilab-Dev] x_mdialog for editing matrices


>> Take a look at the following example:
>> rows = ['row1' 'row2'];
>> cols = ['col1' 'col2' 'col3'];
>> test = [1 1 1; 0 0 0];
>> x_mdialog('Testing', rows, cols, string(test))
>>
>> ..../...
>>
>> Are these bugs?
Yes it is. Try the same with test = [1 2 3; 4 5 6 ; 7 8 9];
The display is transposed...

Kirill Kirillov Kirill Kirillov
Reply | Threaded
Open this post in threaded view
|

Re: [Scilab-Dev] x_mdialog for editing matrices

In reply to this post by Samuel GOUGEON-3
Hi!

В Пнд, 01/06/2009 в 00:35 +0200, Samuel GOUGEON пишет:

> > I've tried to use x_mdialog function for editing matrices using idea
> > found in Scilab demos (GUI dialog example), but it seems that this
> > function is not suitable for this.
> >
> > Take a look at the following example:
> > rows = ['row1' 'row2'];
> > cols = ['col1' 'col2' 'col3'];
> > test = [1 1 1; 0 0 0];
> > x_mdialog('Testing', rows, cols, string(test))
> >
> > Results:
> > 1) [1 0 1; 0 1 0] in row1 and row2 instead original [1 1 1; 0 0 0];
> > 2) col1, col2 and col3 should be shifted to be above correspondent cells
> >
> > Are these bugs?
>    
> Strange, indeed.
I fully agree with you, so
http://bugzilla.scilab.org/show_bug.cgi?id=4564

> Have you tried with x_matrix() ?
Yes, fortunately x_matrix works, but in Windows it uses too small font
size in comparison with x_mdialog. Is there way to change its font size?

Also if this bug was fixed, it would extremely improve usability of
scilab dialogs:
http://bugzilla.scilab.org/show_bug.cgi?id=4137

Thanks.

--
Kirill Kirillov
<><