I have a bunch of docked figures in matlab. Each one shows up as a tab in the document bar. This is the bar that runs along the bottom of the figures window with a tab for each figure. This bar can be easily moved by clicking on the anchor and moving it to the left, right or top. From the matlab help it says...
"Move the document bar.
Do one of the following:
Drag it to another location.
Select a new location from the Desktop > Document Bar > Bar Position submenu."
My question is, how can I do this with a command/script/code?
I have never tried to move the dock bar but I have done some similar messing about with the command window when creating a gui. For example:
function SetCommandWindowDocked(docked)
j_desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
cmd_win = j_desktop.getClient('Command Window');
j_desktop.setClientDocked(cmd_win,docked);
end
I used Yair Altman's matlab utilities to sniff out the right objects/methods to use, see matlab fileexchange.
Related
I'm aware that you can open multiple terminals by clicking the plus button on the terminal window (but this lets you switch between tabs/terminals in a tab menu).
But I've had it where two terminals are splitting the width of the bottom area of my IDE by 50% each. I can only seem to do this randomly by accident. What is the setting or process to do this on purpose?
I've managed to get this working by:
Right-clicking on a file (in the main editor window), clicking Split horizontally.
Splitting that view again vertically.
Moving the terminal window into one of the above splits.
Moving the other terminal window into the other.
Closing or moving your file back up to the main editor window.
You can then close the normal terminal area at the bottom of your IDE and it works good enough. Would like to see if they could just support split-terminals without this work around.
Not currently supported, please follow IDEA-141172 for updates
When I click Option-Q on an identifier to display the Quick-Documentation Popup instead of it showing up in a small dialog directly above the identifier it is showing in a large separate panel to the left.
This is suboptimal because the content is not where I wanted to look for it and because the new panel overlays the entire right side of the editor panel (and its contents).
Is there a Preferences setting for getting this to be a popup again?
Aha! There's a configuration menu that can be accessed by Right clicking on the top bar of the tool window. The first option Open as Popup is the one I wanted:
I'm using AutoIt to automate the handling of a proprietary Windows EHR application, and it looks like the creators of the application wrote it without adding classes, IDs, or names to any of their links or menu items inside the application. The application I'm trying to automate is PrimeSUITE by Greenway Health.
I've gotten it to work by using MouseClick and adding coordinates, but that only works so long as the user doesn't move the Window. I'd like to use the more reliable ControlClick method to send click commands (I don't think there's a third way to send click commands in AutoIt).
Luckily, there's a keyboard shortcut built into the application to open the menu item I want in a new window. This is how I'm currently having to access the menu item:
WinActivate(": PrimeSUITE -- #CompanyName# -- PRIMESUITETEST")
Send("{F7}")
WinActivate("Report Selection -- Webpage Dialog")
WinWaitActive("Report Selection -- Webpage Dialog")
At this point I have to rely on the window's position on the screen not moving, so that I can send MouseClick coordinates (whose origin point begins in the top-left corner of my monitor screen, rather than the current active Window's top-left corner).
I'd like to be able to activate it somehow like:
ControlClick( ": PrimeSUITE -- #CompanyName# -- PRIMESUITETEST", "Reporting", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 491, 15)
So that the coordinates are relative to the active window's top-left corner rather than the monitor screen's top-left corner.
For context, this is what I see when I am hovering in the application's main window (note, the application is run from the desktop; it's not a web app accessed in IE), no matter which part, regardless of whether I'm in a blank space or hovering a link/menu item:
But as soon as I hover over a menu item and then move the cursor to a submenu item, I get this:
Here is the Tree View of what Inspect.exe found:
Am I going to be stuck with the MouseClick method via screen coordinates, or is there a way to use ControlClick or some other way to send clicks programmatically?
Even though it is a desktop application it is using IE objects. You can attach to it with _IEAttach and then use _IEAction to click on objects like your menu.
Here is an example of how to attach to PrimeSUITE (you may need to change the window title).
#include <IE.au3>
$hWin = WinGetHandle("PrimeSUITE")
If WinExists($hWin) Then
$oIE = _IEAttach($hWin, "embedded")
_IELoadWait($oIE)
MsgBox(262144, "", _IEBodyReadHTML($oIE))
Else
MsgBox(262144, "", "Window not found.")
EndIf
Once you are attached you can look at the HTML to see how you want to automate the program. You have a lot of IE functions besides _IEAttach that you can use. For example: _IELinkClickByText, _IELinkClickByIndex, _IEFormElementSetValue, and _IEFormElementOptionSelect.
So dumb question here, but its driving me insane!:
In SQL developer I often accidentally drag and drop opened 'tabs' from time to time and this then adds it to a different part of the screen so you can see multiple tabs open at once. Great if you do it on purpose, not so easy to undo if by accident.
When i try to 'grab' the 'tab' and place it back where it was it doesn't let me and just drops the tab to a different part of the screen and rearranges everything else in the process.
I currently have to close the tab, find whatever i was viewing again, and open it when my other tab list is open. Hopefully that all makes sense :)
So is there not an easy way to just put the tab back in the previous pane?
I've actually had this question for months now, and ironically the same day I posted this question i accidentally stumbled upon the answer. You grab the tab, drag it over the active file in another pane you wish to add it too, and when the full square shows(centered) over the active tab you drop it.
Another way to place all of the tabs back into the same window is to right click on any tab and select the "Collapse Tab Groups" option (see image below). This will put all of the tabs back into the same window.
However if you wish to reorder the tabs within the same window you must use the way that #TheJavaBeast said by dragging it to the center.
Just wanted to add this for more information!
I'm trying to see what the value of myImage.height is in the debug mode in Xcode, I've got a breakpoint on this line...
float s=myImage.height/cos(30*M_PI/180)/2;
It all runs fine and get's to that line, in the debug panel I can see myImage (my Image is a Sparrow framework SPImage object) but I can't see any values for any of the class vars.
This is literally the first time I've used a break point/debug panel in xcode so I'm probably just not doing something right.
I also tried
NSLog(#"myImage height: %f",myImage.height);
But I can't see that being outputted in the output panel either.
I'm coming from a AS3 background, where you would see...
myImage.height along with it's value to the right in the debug panel in Flash, so I'm looking for the same thing in Xcode. Do I have to run it in a different mode or is there another panel to open or something?
In the console area, you can show 2 distinct "parts", one is the variables in scope, and the other is the actual output console. In the stack area, you can see all variables in scope.
You can also hover your mouse over any variable in code, then click on the little disclosuer arrow and select "print description" to have it plop it into the console. (The console is also where NSLog stuff goes).
Check out this picture:
And then this one:
Note you can also "print description" from the variable area:
edit here's more detail on the hover-access to the value: Click on the variable name, then move the mouse to the right, and there should pop up a yellow bar with info about the instance. This is is different from the little blue arrow, which is available even when not debugging.
If anything is being outputted, it's in the bottom panel. There are three icons on the top right of the bottom panel, and each one shows different data views. Try all three. In case you can't see the bottom panel, you can show it with the middle button in the segmented control above the word "View" in the top right of your XCode window.