I have a user form, there are several frames inside each of them, there are many text boxes, I want to fill the information from top to bottom, but the cursor moves randomly (vertical and horizental)between the text boxes.
How can i enter data verticly from top to bottom and at end it should go to next coulmn?
You need to configure the TabIndex property of each one of the controls, so that at each enter stroke or tab stroke the next control is the one that has the next TabIndex value.
Here https://learn.microsoft.com/en-us/office/vba/language/concepts/forms/set-the-tab-order-using-the-tabindex-property you can find more on this.
Related
I want to align the button horizontally and vertically in Document, i now ho to align horizontally, but i can`t undestand how to align vertically?
In picture bellow, button align horizontal, but how align vertically, in option button i don`t find something about align vertically.
Vertical align is possible in tables only.
Create a table with one row and one column. Set wanted height as "Minimum height" and "Vertically align" to "Center". Content will be centered vertically this way.
I know, it is just a workaround, but it works. Of course, set "Cell Border Thickness" all to 0 so table border is invisible.
If those are 2 buttons, why don’t you just put a ‘return’ (CR) between them. The 2 buttons will be positioned one below the other.
If need be, you can size the buttons, so they have the same width via the properties.
There is no option to "fit to window" vertically in normaal Notes form and document display. It assumes an infinitely long document consisting of paragraphs.
There is, however, the option of displaying a document using the #DialogBox formula or the NotesUIWorkpace.DialogBox method. Both of those have an auto vertical fit argument that you can provide. This will likely require you to redesign your application a bit, but I think it's the only way to do what you want.
I'm wondering if you guys have an idea on how to handle this problem.
Process:
First i iterate trough this collection. If the input value is the same as the item of the grid box it will stop and select this item.
View of SAP GridBox
Note that every spy mode will select EVERYTHING and the only way to actually read this is with SAP GrixBox.
The problem here is that i need to click the small grey square on the left of the selected Notification. I cannot select it with any hotkey or with a spy mode.
Small grey square MANUALLY selected
My idea was to use capture an highlighted item with the Region mode and then move 5px to the left. But this does not seem to work ...
Any suggestion are welcome!
If I recall correctly the shortcut for selecting an entire row in Sap Grid is Shift + Space. You need to have a cell selected first, though.
I have a scrolled window in my application, in which I have created a drawing area widget. In the drawing area, I have placed multiple images. When the user enters information about an image in a search box, the appropriate image gets highlighted.
My problem is how do I get the application to scroll automatically to the highlighted Image box without the user using the scroll bar. The scrolledwindow should automatically move the view region, to display the region where the highlighted Image is present.
The scrolling policy used on the scrolled window is XmAUTOMATIC.
Any pointers would be greatly appreciated.Thanks in advance.
Try XmScrollVisible() if this does not work then you will need to:
1. Find out the size of the work area.
2. Find out the size and position of the clip window.
3. Find out the max/ min values for the horizontal scrollbar.
4. Use XmScrollBarGetValues() for the horizontal scrollbar to get its position within the max/min values.
5. Do some math magic to determine how much to move the horizontal scrollbar to get the work area to show through the clip window.
6. Call XmScrollBarSetValues() with Notify = True.
7. Repeat for the Vertical scrollbar.
HTH
I am having a lisbox where I had set it's property "Selection" to "None".This lisbox is being used in a propertysheet.When I navigate on to the page where list box control is present,here initially when I click on the listbox no selection is happening,this is excepted result.But my only concern is in the lisbox page itself when I use "tab" usually the rectangular dotted line is coming on the Back,Next and Cancel buttons(this is expected),but at the same time after playing with tab around on those buttons,if I had a mouse click on the list box I am getting a rectangular selection on the Item's in the listbox(this is not expected),No selection has to occur.
I even set the "Tab shot" property of the list box to FALSE.
Can anyone please let me know how can I avoid that rectangular selection on the listbox items,even after using "tab" and having a mouse click on the lisbox that rectangular selection should not happen.
Must be a glitch... If you want to prohibit selections on your listbox without disabling it, what happens if you try
void CMyPropertyPage::OnSelchangeList()
{
m_list.SetCurSel(-1)
}
I am building a LiveCode stack and want to add drag drop into my app. In particular, I would like to be able to click on one image and drag it to a second location.
I would also like to provide feedback to the user that they are in fact dragging. A thumbnail would be ideal.
I know how to change the cursor when I hover over my image:
on mouseEnter
lock cursor
set the cursor to "hand"
end mouseEnter
on mouseLeave
unlock cursor
end mouseLeave
Dragging within LiveCode is accomplished by the various drag messages that are available. An example of this if you have two images on your stack would be-
Script of image 1
on dragStart
set the dragData["text"] to the text of image 1
set the dragImage to the id of me
end dragStart
Script of Image 2
on dragEnter
set the dragaction to "copy"
end dragEnter
on dragDrop
set the text of the target to the dragData["text"]
end dragDrop
When image 1 is clicked and dragged, its text (contents) are placed into the dragData array, its dragAction is set to copy and the drag image is set to the image id of itself. THis is the transparent image that indicates what you are dragging.
In image 2, when a user is dragging and enters the image, it sets the acceptDrop to true and when the user releases the mouse (dragDrop) the text of the image is set the to the dragData["text"] array
While the drag and drop suite of commands and messages is rich and powerful, if all you need to do is move something from one location to another inside of your application window, don't overlook the simple grab command. It allows you to click down on an object and have the object follow your mouse pointer until you release the mouse button. For example, the following script in the object to be dragged works well.
on mouseDown
grab me
end mouseDown
on mouseUp
# do whatever evaluation you need to do here
# e.g., check to see whether the drop location is a valid target area
# Here is one way to do it:
if the location of the target is within the rect of graphic "hotspot" then
put "That's right!" into fld "feedback"
end if
# If you are dragging to an irregular target area do this instead:
if within(graphic "irregularPoly",the loc of the target) then
put "That's right!" into fld "feedback"
end if
end mouseUp