I been trying to make a Maplet that will solve some numerical analysis problems, those problems or indeen the solution of them are composed of iterations.
I would like to show such value iterations on a table in a Maplet interface, with no success.
for my logic, this should work.
Set('Table1',[[1,2],[3,4],[3,4]])
But I get an error telling me that the value is not settable.
It doesn't make sense to me to have a control that I can't modify its contents at runtime?
Any ideas about how to do this?
Thanks
seems odd, I agree, but
I agree that it seems odd that it's not possible to change the values of a Table in a maplet, but the documentation certainly does indicate that the content of the table (including the header) is settable only initially.
An excerpt from the Maple help for Maplets,Elements,Table:
The Table element features can be modified by using options. To simplify specifying options in the Maplets package, certain options and contents can be set without using an equation. The following table lists elements, symbols, and types (in the left column) and the corresponding option or content (in the right column) to which inputs of this type are, by default, assigned. Elements, Symbols, or Types Assumed Option or Content list of lists content of table body list content of the table header range of positive integers height and width options, respectively refID reference option A Table element must contain exactly one TableHeader element and any number of TableRow elements. A Table element can contain a Font element to specify the font option. A Table element can be contained in a Maplet, BoxCell, or GridCell element, or Maplet element in a nested list representing a box layout. The following table describes the control and use of the Table element options. An x in the I column indicates that the option can be initialized, that is, specified in the calling sequence (element definition). An x in the R column indicates that the option is required in the calling sequence. An x in the G column indicates that the option can be read, that is, retrieved by using the Get tool. An x in the S column indicates that the option can be written, that is, set by using the SetOption element or the Set tool. Option I R G S background x x x font x x foreground x x x height x x x reference x tooltip x x visible x x x width x x xCan anyone explain this limitation?
Doug
Yes, it is too bad that this
Yes, it is too bad that this functionality is not present.
I think the only way to do it is, turning back to Matlab, becuase Maplets are still in evolution for todays UI.
embedded components
Could you use the Maple GUI's embedded components for this, instead of Maplets?
acer
embedded components are no better
There are many fewer embedded components (elements), and nothing like the Table feature in Maplets. Sure, you can mimic the effect using a table, but you have to put a separate TextArea component in each cell. This can be quite a nuisance. And, has recently been discussed in MaplePrimes, the same type of construction is possible with maplets.
Will the maplets package continue to evolve? Or, will future efforts be directed towards embedded components?
Doug
thanks
Thanks for clarifying that, Doug.
Apart from this Table element mutability issue, what would you want to see improved in Maplets? The way in which only a child maplet can have the current focus, but not the parent (until the child is closed), is another issue.
And how would you rank the importance of elements missing from Embedded Components? What about the inability to programmatically control or define those components?
You've obviously had a great deal of experience with Maplets. Where do you think efforts would be best spent?
acer
maplets and embedded components
Yes, I do have a lot of experience with maplets. In my attempts to stay current with Maple's resources I have also learned a fair amount about embedded components. I will post my comments in a separate blog entry in which I will also share with MaplePrimes a worksheet I created for some work I did to visualize sudoku puzzles. (This still needs a lot of work, and I am not opposed to accepting enhancements from others.)
For a lengthy response to acer's request, please see my blog entry titled Embedded Components, Maplets, and Sudoku Puzzles.