GUI starts in docked mode. How can I change this 'default behaviour'?

Hello,
first of all: I'm not very familiar with programming but I do my best to learn as quick as possible. I am currently working on a GUI (process modelling) including tables, axes, input dialogs and some other standard elements. For some reason, when I start the GUI now, it is displayed in 'docked' mode, which means I can resize the windows and so on, which I do not want. However, when I undock the GUI by clicking on the symbol (upper right corner) it is displayed as I expect it to be (non-resizable, as set in the GUI properties). This occured after I added an input dialog which I need to display copyable fit curve equations. Anyone an idea what to do about it?
Thanks in advance!

Answers (1)

How did you create the gui? With GUIDE or with figure()? What is your 'WindowStyle' property set to initially?

2 Comments

I created it using GUIDE. My WindowStyle property was set to 'normal'. I now added a toolbar button and now it works fine again. I still don't know whats going on there, but the window is displayed in proper size and is non-resizable.
But theres another weird thing: When I drag the black square in the bottom right corner of my GUI (in GUIDE interface) to crop my 'workspace', the whole GUI (including buttons and tables) is scaled. I'm pretty sure this was different when I started working on that GUI.
I have no clue why?!
Your 'units' property must be set to normalized. Set it to 'pixels' to have it not scale all the controls when you drag your GUI to a different size.

Sign in to comment.

Categories

Find more on Graphics Objects in Help Center and File Exchange

Asked:

on 23 May 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!