Automatically leave field after value is entered - visual-foxpro

I am creating a form in Visual FoxPro where the user will be entering a large number of values that are only one character values. So that the user does not have to press tab after every key press, I would like to setup the form so that once the value is entered the cursor automatically goes to the next field.
What is a good way to do this?

Make sure you have SET CONFIRM OFF
From the help file:
SET CONFIRM ON | OFF
...
OFF Specifies that the user can exit a text box by typing past the
last character in the text box. The insertion point, when it reaches
the last character in a text box, moves to the next control, and the
bell is sounded (if SET BELL is set to ON).
OFF is the default value of SET CONFIRM.
SET CONFIRM OFF also affects menu items and menu titles. If SET
CONFIRM is set to OFF, the user can choose an item from a menu or a
menu title in a menu bar by pressing the key corresponding to the
first letter of the menu item or title. (When SET CONFIRM is set to
ON, this action only selects the menu item or title.)
I made a simple form with two text boxes and verified that after typing one character, it jumps to the next text box.

Herb's answer is correct, but keep in mind that the cursor will jump to the next field in the TAB Order.
So if you entered your Textbox fields in some other order you might need to re-order the TAB's.
To verify that you have your TAB Order as you need, with the Form open in the VFP Development environment, from the Menu, click View - Tab Order - Assign Interactively. Then using your mouse, you can re-order the TAB settings for your Textboxes.
Also note that the TAB Order also includes the other Form objects such as Buttons, Grids, etc.
Good Luck

Related

How to move from Title box to Content box without mouse?

I create a new slide (Ctrl+m).
The layout by default is Title + Content.
I edit the title slide and now want to move to the content textbox.
How can I do this without my mouse?
Nutshell answer:
Hit ESC, then TAB key.
Short answer:
After typing your text into the Title placeholder, hit ESC to exit editing.
Then hit the TAB key to move to the next object. (If that is not the Content placeholder, continue hitting TAB until the desired object is selected.)
Start typing to enter your text.
Extended answer:
Hit Ctrl+m to create a new slide that uses the same Layout as the current one.
Hit the TAB key to go to the first object on the slide. (This is the back-most object on your slide; the one on the bottom in the Selection Pane list. If the designer of the Layout did a good job, this is the Title placeholder. If not, keep hitting TAB until the desired object is selected.)
Start typing your text. (If you edit an existing slide and there is already text contained in the shape, simply starting to type will append text at the end. If you want to replace the existing text, hit the return/enter key before starting to type. That will select all contained text, so it will be overwritten when you start typing.)
When finished entering your text, hit the ESC button (to exit edit mode and have the actual shape selected), and hit the TAB key to go to the next object – i.e. the second-lowest one. (Again, if the designer did a good job, this will be your Content placeholder. If not, continue hitting TAB.)
Go to step 3 to continue with the next object.
After typing the title text, press CTRL + M to put the cursor in the content placeholder.

Sublime Text: disable refresh/replacement in 'Replace' function?

using the "Replace..." [Find menu] function a slide-in at the bottom appears with an option field/entry for "Find:" and below that one, one for "Replace:"
having completed a replace [eg "Find: abc", "Replace: xyz"] for instance by employing "Replace All" the very slide-in disappears
now for another, new, search, for instance within a document having selected a different, let's say word like "oha", that selection 'oha' is auto-copied over as new entry in "Find:" when using "Replace..." again. this is to say that now in "Find:" the entry does read "oha" tho didn't paste it manually in -- the "abc" entry fromthe previous search got replaced
however, the last entry in the "Replace:"-entry-field remains unchanged
it's the "Find:" entry that get's auto filled in w/out the option [as far as i could figure out]
and that exactly is my question about :
any option to modify Sublime's settings such that nothing gets changed/auto-copied/filled-in at "Find:" ?
pretty annoying behaviour, as i experience it, for instance when having to replace just a single character combi within similar text and each time the copy-selected text get's auto-copied/filled-in at "Find:" rather than leave it be till the usr opts to modify that entry from previous replace-calls
The Find and Find and Replace widgets automatically populate the Find box with either the current selection if there is one, or the previous value used in that box. This box is a dropdown, which contains the previous values used, so you can easily go back through your history in that window and not have to re-type a complicated regular expression, for example.
When the Find box opens pre-populated with a value, it is automatically selected, so to get rid of it all you have to do is hit Backspace or Delete. Alternatively, you can just begin typing your new search query, and it will erase the old one.
There is a setting in Sublime Text 4 that modifies this behavior:
// If true, the selected text will be copied into the find panel when it's
// shown.
// On Mac, this value is overridden in the platform specific settings.
"find_selected_text": true,
If you set "find_selected_text": false, in your user settings, you can disable this behavior.

How to increase Length of a ComboBox item in MFC

I have created a Dialog application using MFC. I have an CComboBox in it, I am able to enter an URL of Length 60 characters. But when the length increases , I am unable to enter.
CBS_AUTOHSCROLL allows adding more characters in to combobox's edit control (simple or dropdown style).
You can set this flag when combobox is created. However there is no effect if you modify this flag after combobox creation.
In dialog resource editor, this flag appears as "Auto" in comboxbox properties.
Combo Box Styles:
CBS_AUTOHSCROLL
Automatically scrolls the text in an edit control to the right when
the user types a character at the end of the line. If this style is
not set, only text that fits within the rectangular boundary is
allowed.

Informatica PowerCenter: does anyone know a way of using the keyboard instead of mouse pointer in Edit Tasks in Workflow Designer?

In Informatica PowerCenter I'm looking for ways to make less use of the mouse, and more of the keyboard keys.
In the Workflow Designer, when editting a task, I'd like to 'jump' from value of connection to the other value of connection, and change the connection type, with only using the keyboard, and not by using the mouse pointer. Now I have to click on the downarrow of the first connection, and then use the mouse to go to the second downarrow, etc. I can't imagine it is not possible, but so far I tried without succes.
Jumping from connection to connection IS possible though, with using the down and up keys. But opening up the value I have not yet discovered.
I tried Enter (which closed the edit task window), space (does nothing), tab (does nothing), F2 (does nothing).
Does anyone have an idea?
For further explanation see my printscreen: http://prntscr.com/9euxd6. The downarrow I talk about are circled. So, I want to jump from connection 1 to 2 and alter the value by not clicking on the downarrow, but by using the keyboard only. Does anyone have an idea?
The below is copied from the Informatica PowerCenter - 9.5.1 - Designer Guide PDF.
Using Shortcut Keys
When editing a repository object, use shortcuts on the Ports or Columns tab.
The following table lists the Designer shortcuts:
Add a new field or port. Alt+F
Cancel editing in a cell. Esc
Select or clear a port type check box. Space bar
Copy a row. Alt+O
Copy text in a cell. Ctrl+C
Cut a row. Alt+C
To edit the text of a cell, press F2, then move the cursor to the location inside the cell.
To find all combination and list boxes, type the first letter on the list.
Find tables or fields in the workspace. Ctrl+F
Move current row down. Alt+W
Move current row up. Alt+U
To open the Expression Editor from the expression field. Press F2, then press F3
Paste a row. Alt+P
Paste copied text into a cell. Ctrl+V
Select the text of a cell. F2
Validate the default value in a transformation. Alt+V

When should I use a ellipsis in a Menu Item

When should I put ... at the end of a menu item? I seem to remember reading some rules but can't for the life of me find them.
For context - I'm adding a properties option to a right click menu and am wondering if it is appropriate to add them.
As I understand it it indicates that the option will ask you something else before actually doing anything. The 3 dots are actually called an ellipsis, and if you check out the English use it kind of makes sense:
http://en.wikipedia.org/wiki/Ellipsis
BTW I've noticed OpenOffice breaks this convention sometimes!
When the option will send the user to some sort of dialog where the user has to do something before a real change is made. Options without the ellipse take effect immediately.
For example, 'Save' doesn't have an ellipsis, while 'Save As...' does because the user has to input the new name/location of the file.
One exception to the first two answers: if the whole point of the menu command is to open a window or dialog, then you don't need an ellipsis. For example, a "Get Info" or "Properties" command shouldn't have it, even though it's opening a window which lets you edit things.
It's only when the menu command's purpose is to do something else, but it needs a dialog or confirmation in order to do it.
It means that there will be another dialog box after you select that option, it won't actually 'do' anything. There will be another prompt.
To be exact, the rule is that if more information is required from the user to complete an action, then include an ellipsis. In the MS Vista User Experience Guidelines, getting a confirmation qualifies as "more information" (see http://msdn.microsoft.com/en-us/library/aa511502.aspx). Commands to show Properties, About, Help, Options do not get ellipsis because no further information is needed to execute the command, which is "Show Properties" or "Show Documentation" or "Show Options." The File Open command gets an ellipsis because additional information is needed to open the file, namely the file name.
If the menu is an action that the user will be doing, but the action won't be completed until we get more information from the user, you show an ellipsis, e.g.:
Format Hard Drive… (we need to know which one, and the file system type)
Save As… (we need to know what filename and type to save as)
Print… (we need to know what printer and quality settings)
Find… (we show a text box asking for the text to search for, and where)
Rename… (rename to what)
As opposed to actions that will happen the moment you click the menu item, e.g.:
Save
Undo
Redo
Select All
Ellipses don't just indicate that a dialog will appear. i.e. if it's not an "action", then there's no ellipses, e.g.:
About Gizmo
Page Setup
Print Preview
Options
File Properties
And asking the user if they want to do something does not count as "getting more information from the user", e.g.:
Delete File
Recycle File
New Text Document
Whenever selecting that item results in another dialog box appearing. For actions that happen immediately (think Save vs. Save As), no ellipsis.
Originally, it meant:
An ellipsis (...) after a menu item means that after the item is chosen, the user will be asked for more information before the operation is carried out. Usually, the user must fill in a dialog box and click and OK button or its equivalent. Don't use the ellipsis when the dialog box that will appear is merely a confirmation or warning (for example, 'Save changes before quitting?').
(Apple Human Interface Guidelines, page 69)
Note that it did not mean "show a dialog box", even though that was often the consequence of this. For example, on Mac OS (not X), the "Options" button in the Page Setup window had no ellipsis, even though it showed a modal dialog box. No ellipsis is used because showing the options window is the operation.
(Tog on Interface, pages 46-47)
Of course, these days nobody cares about such things as human interface guidelines, not even Apple, so you can pretty much do what you want and still be more consistent than most any other application out there.
I've usually seen it in places where more input is required from the user before completing an operation. If your properties dialog is allowing the user to change properties, I would include the ellipses. If it's just displaying the information, don't include it.
It generally means that a Dialog will be shown when the item is clicked.
They usually signify that clicking on that entry will open a dialog window.
You should add ellipses to the end of text only if you're truncating the text (this applies anywhere). You should truncate the text if it's too long to reasonably fit where you're putting it.
Edit: interesting, I never noticed that menus in Windows use the ellipses to indicate truncated text, but also use the ellipses on short text to indicate that more information will be collected before the action is taken. This is inconsistent interface design, but since menus are under the control of individual programmers it's unavoidable.
It usually means it'll take your focus away from the current window. Like for example, notepad has a "Find..." which means you're going to focus on another window (ie dialog box) to enter something. But in firefox, it has just "Find" which then focuses on a text input on the same window.

Resources