Disable Close button of the dialog window Matlab - matlab

I need to disable close button of the dialog window like this:
errordlg, warndlg, msgbox, helpdlg, waitbar.
I found some information about CloseRequestFcn, but I do not know how to use it in the dialog box.

This might not be exactly what you're looking for, but here's a couple of ways how you could remove entire title bar, including the close button:
1) If you're using Windows, you can use WindowsAPI mex function (you will need to compile it, or else download compiled version):
WindowAPI(gcf, 'Clip', true);
2) You can follow Yair's suggestion in his Frameless (undecorated) figure windows article, basic idea behind which is setting setUndecorated(true) on underlying JFrame. Or else, simply use undecorateFig FEX function which does it for you.

Related

Atom popup, really annoying

I have no idea what plugin is doing this, but it's incredibly annoying everytime I move mouse mouse to constantly get a popup. When I am coping and pasting code it pops up, and I have to click somewhere else, and it blocks so much of screen. Anyone know what plugin might be doing this?
For me, this was happening because of the atom-ide-datatip package. I went into the settings for that package and unchecked "Show datatip automatically on mouse hover", and checked "Show datatip automatically on cursor stay" as that got in the way for me less.
In my opinion, it would be nice if you could turn off those datatips for certain data types, like int and str. I mostly use this package for the function parameter popups.

IntelliSense suggest only one option

In VsCode, whenever I try to use IntelliSense at the end of:
an object to see its methods,
an structure to see its components or
a path to see its directories,
IntelliSense only suggests me one result at a time, so I have to hit ↑ and ↓ to navigate through the results until I eventually find what I was looking for.
This is quite not ideal... Is there a way to configure VsCode so that it pops a tap with all options, instead of one at a time?
Thanks!
It might be you just need to resize it with the new resize ability.
https://code.visualstudio.com/updates/v1_51#_resizable-suggestions

VSCode: I want to remove annoying info message bar

Is there any way to completely remove this message popup or move it to somewhere?
I already know why this message comes, but I do not want to disturb my activity with annoying info popup.
When it pops up it hides the document tab, so I have to close it every single time. (I do not want to know how to fix this particular error message, this screenshot is just an example.)
It's very annoying and I've searched around for a way to remove it, but the answers keep saying how to fix that particular error and not how to hide the popup itself.
Press ESC.
I agree that this is really annoying. VS Code is all about high-speed workflow and not having to interact with anything except your code via keyboard. Everything has key chords, e.g. CTRL-P and CTRL-SHIFT-P. So having to stop what I'm doing, go to the mouse, and dismiss this popup, whenever a background task feels like completing (and not even really then, because the popup actually appears some short time later) just so I can get visual confirmation of which file I'm currently coding in, to refocus my work after being distracted by the same popup, is really awkward. They are in a stupid location and don't even fade away after time like well-behaved toasts.
That said, I think that's really two parts; the distraction, and relatively high workflow cost to dismiss.
It helped me a lot to learn that it can be dismissed quickly and easily with the ESC key. The other half the problem I still haven't solved, but hope that helps you.
In the screenshot it shows trying to validate PHP.
In a VS Code window select File > Preferences > User Settings
An editor will open on the left called Default Settings and on the right with a file called settings.json
In the right side editor you can add settings that will override those found in the left-hand-side one.
Between the braces type:
// Whether php validation is enabled or not.
"php.validate.enable": false,
Then save the document.
VS Code will no longer attempt to validate PHP files.
You can override any of the defaults using this method.
You can use the same technique for each Workspace (or project folder) using File > Preferences > Workspace Settings
You can't disable the alert bar in general as VS Code needs to tell you things and doesn't (thankfully) use modal dialogs to communicate.
Go to File > preferences > settings
Then add this to your user settings
"editor.parameterHints": false
You may want to try adding the line
"extensions.ignoreRecommendations": true
to your VS Code settings file (which you can easily reach with the keystroke (CMD + ,) on a Mac OS X or macOS system.)
Solution: User Preferences > change "editor.parameterHints": true to "editor.parameterHints": false
This will at least remove the obstructive boxes that appear above the cursor.

Adjust MatLab window focus

I've done some searching regarding this question but no luck so far, and I'm hoping somene here can help me out.
I'm using MatLab's Editor, but when I run the program, the console is in the main window. Is there a way I can make MatLab open its main window just below the Editor window?
For example, I'm on Chrome and then I open the Editor and run the program. But the main window is still hidden below Chrome. Is there any way I can configure it so that any time I open any MatLab window it makes sure that the main window is below that one?
Please let me know if I didn't make myself clear, and sorry for bad english!
Thanks in advance
It sounds like you want to "dock" your window.
There is a little curly arrow in the top right hand corner of each window (pointing to the right and down when the window is floating, if I recall correctly). If I understand your question correctly, that would solve it for you..

is there any eclipse plugin available for writing a memo on any line of code?

Doe anybody know of an eclipse plugin, which can be used to insert short text (in the form of memo) to remember what that line of code does or a block of code does to help me understand the existing code better and i can also refer it back later on.
Just like "Task" can be added on a line of code, although i can use "tasks" for this purpose, but that is not very convenient and intuitive.
If you want to add a short text to "remember what that line of code does or a block of code does to help me understand the existing code better", use comments. That's what they're for, and practically every formal language in the world has them.
If you want the ability to quickly jump to an arbitrary point in the code, using bookmarks is a convenient option - right click the bar immediately left of the text and choose to add a bookmark. You can then easily jump between bookmarks with the "bookmark view", which you can enable from the Window -> Show View menu.
The closest thing I can think of is bookmark support. There is native bookmark support in Eclipse and also several other vendors supply more function.
I'm assuming that there's a very good reason that you don't want to or can't modify the code.