2

I am new with the matlab GUI and I am having a problem with creating a window with scrolling.

The problem is as follow: Lets say I have 100 lines (every line is compounds from several edit text and check box).

I need that all those 100 lines, will be inside that window - obviously the window is not large enough for all those lines and making the window bigger is not an option - so the trivial solution is scrolling up and down the window and watch all those 100 lines (lets say that the window without scrolling is large enough for 8 lines). When I tried dynamically to insert more than 8 lines inside that window (normalized panel), the new rows makes the rest (older) lines be really small.

enter image description here

So my question is how can I build "compound" line in a GUI in similarity with strings in "list box"?

Mark Dickinson
  • 29,088
  • 9
  • 83
  • 120
user1673206
  • 1,671
  • 1
  • 23
  • 43
  • Just to confirm the "matlab-guide" tag; you are using GUIDE right? Would a programmatic solution be acceptable for you? – Benoit_11 Aug 10 '15 at 12:39
  • 3
    a [`uitable`](http://mathworks.com/help/matlab/ref/uitable.html) would really be more convenient for such a grid of input field. _They do support checkbox and combobox_ ... and the scrollbar management is built-in with the `uitable`. – Hoki Aug 10 '15 at 12:41
  • Hi Benoit_11, yes, a programmatic solution be acceptable for me. thanks – user1673206 Aug 10 '15 at 13:02
  • I have the same question; I am curious if you have found the answer? – Zander Jun 23 '18 at 03:30
  • 1
    Take a look at [this recent blog post](https://undocumentedmatlab.com/blog/scrollable-gui-panels). (Also pinging @Zander) – Dev-iL Aug 16 '18 at 08:30
  • Also check the answer to this question, it is all done in pure MATLAB without undocumented code: [Adding scroll bar in subplots within GUI](https://stackoverflow.com/a/7621402/3460361) – Hoki Sep 03 '18 at 14:50

0 Answers0