I use the menu() function. The output window is in the left upper corner of the screen.
So the question is, is there a possibility to change that position?
( And of course I know the possibility with the courser )
did you try this? It works for figures for sure, not 100% sure about menus.
http://www.mathworks.es/es/help/matlab/creating_plots/positioning-figures.html?s_tid=doc_12b
Related
Does anyone know the method to change the phi/psi/omega angles using the mouse in pymol?
I know the command:
Set_dihdral but want to play with the dihedral angles using the mouse.
Thank you,
Steve
You can. I would recommend you to, first, change the visualization to "ball and stick" (Action > Preset > ball and stick) and then hiding the side chain (Hide > Side Chain).
Then you click in the area with the informations about the mode buttons (as below). It will change the Mouse Mode to 3-Button Editing.
Finally, you press CTRL + Right Click on the angle you want to change and it's done.
HTH
Pymol Tips:
Ctrlright click on a bond to know the dihedral/torsion angle.
Ctrlleft click and drag to change the dihedral/torsion angle.
Command to set the dihedral/torsion angle:
set_dihedral atom1_name, atom2_name, atom3_name, atom4_name, angle
Example:
set_dihedral 23/CA, 23/C, 24/N, 24/CH3, 60
I've not seen this in PyMOL but Gaussian has a feature like this. You can set bond lengths, angles, and dihedral angles with slide bars and watch them update in real time.
I've used this before to edit PDB files but I've only needed to do so once in a while.
EDIT: Chimera can do this too and it's better suited for macromolecules than Gaussian. Ctrl double click on a bond and then Tools > Structure Editing > Adjust Torsions
UPDATE: I just figured out how to do this in PyMOL. Wizard > Sculpting, click on the residue containing the torsion angle of interest, then in the sculpting menu in the lower right change "Residue Shells" to "One Residue", now ctrl-right click on a bond then ctrl-left click and drag to change the torsion angle. You may want to change the settings in Build > Sculpting > Restraints.
In AutoHotkey, I want to click my mouse at position X,Y where X and Y are known but then I want it to return to the original position (arbitrary)
Right now I just have:
f::
Click 987,851
MouseMove,661,506
return
I would like to replace the 3rd line with a new method that returns it to the original position
Thanks
You need to use MouseGetPos to save the previous position, then restore it.
I think this should do it:
f::
MouseGetPos,xpos,ypos
Click 987,851
MouseMove,%xpos%,%ypos%
return
This has already been answered, but just an FYI, make sure to use SendMode Input for instant mouse movements.
Does any one here have an idea about how to change the position of output in the GUI matlab to be to the right side of the box and not in the center ?
i think I have to change some properties of the result text box
Check this post out: Positioning of figures
The figure Position property controls the size and location of the figure window on the screen. Monitor screen size is a property of the root Handle Graphics object. At startup, the MATLAB software determines the size of your computer screen and defines a default value for Position. This default creates figures about one-quarter of the screen's minimum extent and places them centered left to right, in the top half of the screen.
The Position Vector
MATLAB defines the figure Position property as a vector. So you may use a figure and text into it, e.g.
figure(gcf)
text(offsetX1, offsetX1, ['result 1: ' num2str(result1)])
text(offsetX2, offsetX2, ['result 2: ' num2str(result2)])
Displaying analytical results in a MATLAB GUI
This post talks about adding a static textbox with your results and positioning it.
Move GUI figure to specified location on screen:
Syntax:
movegui(h,'position')
movegui(position)
movegui(h)
movegui
The answer is pretty much trying to cover up the vauge nature of the question
In VB6 I created a form with some textboxes, listboxes, and command buttons on it. I set the X-Y positions of all of these controls using something like
control2.Top = form.Height * 0.50 'sets the Y-position
control2.Left = form.Width * 0.35 'sets the X-position
control3.Top = form.Height * 0.50
control3.Left = form.Width * 0.45
However, when I click on the Maximize button of my app all of the controls stay in the same place, but shifted a little more towards the upper left corner of the form. In the meantime, clicking on Maximize also creates a lot of blank space towards the lower right corner of the form.
How do I make it so that clicking on the Maximize button (the one that looks like an empty square in the upper right corner) informs my program that the form.Height and form.Weight has changed and that everything needs to be redrawn?
Or, is there is another way to do this such that we eliminate the shifting of all of my controls towards the upper left corner and eliminate the creation of new, blank space towards the lower right corner? Thanks in advance for your help.
Your form has an event called "Resize". That event is triggered every time the form resizes.
Private Sub Form_Resize()
'Insert your code here
End Sub
I have ten labels on a view positioned vertically. I need to evenly space them. Does IB have any type of setting that will do this?
If you select individual labels and drag them around the view, they should "snap" to certain guides around the interface. If you drag an element close to another element it should snap to about 8 pixels away, and that's the standard spacing between elements on the iPhone.
If you want more precise control, you can select an element and use the arrow keys to move it around one pixel at a time.
You can also use the Align Horizontally/Vertically in Container menu items from the Layout menu.
Do the math and then type in the X,Y coordinates. Unfortunately, I think that is the easiest way.
If you are OK using Apple's guideline spacing, dragging one label near another will generate a dashed line at a certain point. Do this for each label below the next, and they will be evenly spaced.