View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Specifying questdlg position

4.7 | 6 ratings Rate this file 11 Downloads (last 30 days) File Size: 5.25 KB File ID: #31044 Version: 1.2
image thumbnail

Specifying questdlg position


Saeid (view profile)


14 Apr 2011 (Updated )

‘MFquestdlg’ enables you to specify the question dialog box location on the screen.

| Watch this File

File Information

‘MFquestdlg’ is just a simple modification of ‘questdlg’ which enables you to specify the position of questdlg on the screen.
Everything is like the original ‘questdlg’, except that you need to determine your desirable position of the dialog box.
Specify the position with a two-element vector of the form:
[left, bottom]
where ‘left’ and ‘bottom’ define the distance from the lower-left corner of the screen to the lower-left corner of the question dialog box. ‘left’ and ‘bottom’ are NORMALIZED units, obviously between 0 and 1. The position vector must be added as the first element of ‘MFquestdlg’. An example could be:
button = MFquestdlg ( [ 0.6 , 0.1 ] , 'Is the position proper?' , 'Is it OK?' );


This file inspired Specifying Icon In Questdlg.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
22 Jun 2016 Valentino

Used it to turn off the modal WindowStyle and it worked. Thanks

29 Jan 2015 François Janod

thanks for this usefull soft.
I tried to modify it to get it to work with multiple screen (using get(0,'MonitorPositions' instead of get(0,'ScreenSize')) but did not succeed

09 Aug 2012 Kevin J. Delaney

Just what I needed!

07 Dec 2011 John Clayton

This is exactly what I was looking for! Thanks so much, it was clearly described and worked well for me. I made one small modification - adding a new argument which allows loading an arbitrary image into the icon. If the image file is not found, then the standard icon is used. Once again, I appreciate this!

14 Oct 2011 TAFKARS

Outstanding effort, thank-you. Does exactly what it says on the tin...

22 Apr 2011 Amanda Wallace

Brilliant... thanks... exactly what I was looking for. I had rather clumsily edited the original function to give a different fixed position but this allows multiple different positions easily. My only comment is: can you add the description text above into the help section in the function? I downloaded it without reading the above and it took me a while to realise that the position was normalised - the box kept appearing in the top right corner of my screen because I used values greater than one!

Comment only
22 Apr 2011 Amanda Wallace

22 Apr 2011 1.2

Just some help lines are added to the code.

Contact us