The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Graphic object in foreground of uitable
Replies: 5   Last Post: Jul 29, 2011 6:00 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 43
Registered: 4/7/10
Re: Graphic object in foreground of uitable
Posted: Jul 29, 2011 6:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"matt dash" wrote in message <j0sh44$m3d$>...
> "Martin" wrote in message <j0sgan$k95$>...
> > "matt dash" wrote in message <j0se8p$ei9$>...
> > > "Martin" wrote in message <j0ri2d$n9s$>...
> > > > Hi,
> > > >
> > > > I have a GUI with an uitable and I want to "scratch out" columns or rows (as an animation)
> > > >
> > > > My idea was to create axes and plot lines at the corresponding points with the axis off.
> > > >
> > > > The problem is that the lines are in the background, covered by the table.
> > > > So my question is if there is a way to get these lines in in the foreground, in front of the table.
> > > >
> > > > Thank you, martin

> > >
> > > It can't be done using any documented function, and I'm unaware of a way to do it with undocumented functions. Perhaps you could cover it with a javacomponent, but you can't cover it with any normal matlab graphics object. It's possible that matlab annotation objects would stack above a uitable... i've never tried though.

> >
> > Thanks for the answers
> > As I read in the documentation for uistack:
> > "Note: In a GUI, axes objects are always at a lower level than uicontrol objects. You cannot stack an axes object on top of a uicontrol object."
> >
> > So I have to figure out another way how to " scratch out"
> > Maybe I "paint" my table data in axes ;-)

> That might be your best option. If the table doesnt have to scroll it's pretty easy to make one out of text objects and lines. Scrolling or interactive tables are a bit trickier, though it can be done...

There is no scrolling but cell selection. This could be done with axes, too.
But I'm now checking another option:
I color the rows and colums that have to be scratched out with html support - Doesn't look very professionally but ok for the intended purpose.
Maybe I test it with axes, too.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.