I am using the AutoCompleteMode property of SuggestAppend on my Winforms ComboBox. It is working fine, but the user has asked if there is a way to slow down the autocomplete when typing into the combobox.
For example, if you have 2 items in the combobox: red and dark blue
When you select the combobox and start typing r e d without pausing at all it works fine. But if you pause for even a second, say r e pause for a second then type d, it will highlight dark blue.
I would like to just slow it down a little bit. Some of my users are not very computer savvy so they need a little more time to type.
If I am not clear enough please let me know and I will think of another way to explain it.
Thanks in advance!
Related
I have been researching this for weeks now, and have not been able to locate what should be a simple solution to a simple problem. I have an Adobe Pro XI form with a ComboBox that has a very large list -- over 500 -- for the user to select from. Currently, the ComboBox only responds to the first letter typed, so that if the name the user is looking for begins "Lor...", when the "L" is pressed it will scroll to the top of the "L's", but then when the "o" is pressed, it scrolls to the top of the "o's", and so-on. Is there an easy solution to script this so that it will scroll through the list as the user types? Optimally, I'd like to be able to use a Document level script that I can then activate On Focus from the Actions tab of the ComboBox Properties dialog. I have found some solutions to this problem for other applications, but have not been able to find something that works for Adobe Acrobat Pro. Note that I am not a programmer, I am the company accountant and am trying to fix a form. Thanks for any help.
Combo boxes become rather cumbersome when they have a high number of entries (in older References, it was suggested to not go beyond 50 or so entries).
It does require a little bit more programming, but using a popup in this situation, together with a field in which the result will be written, is more efficient and ergonomic, because popups can be multilevel, which means, you could group everything between A and D in one level, everything between E and H, and so on.
Have a look at app.popupMenuEx() in the Acrobat JavaScript documentation.
FWIW, with a little bit more scripting, such multilevel popups can be created dynamically on the fly; personal experience shows that to build up such a popup with no more than 35 selections at the farthest level, and a total of 1500 or so selections takes less than a second.
I am looking for something similar to the way an Apple iOS works when typing into text fields. My purpose will be for addresses.
Ex: 123 Blueberry Avenue
For instance if they start typing in '123' it won't do anything but
as soon as they type in B it will popup with all B recommendations from a dictionary ('Blue', 'Bobcat', 'Batman', etc.,) and filter down. Once they complete a word and press space it'll repeat the process.
I have telerik which has a single search and autocomplete criteria, but I'm looking for something with a little more versatility. Any help will be appreciated.
Telerik AutoCompleteBox is just what you need, what do you mean versatility?
I'm using the WPFToolkit RichTextBox in order to allow the user to view and edit text.
One of the things I need to support is the coloring of specific words as they are being typed, as well as when loading them from an pre-existing source.
For example if the user type the word - "Hello" it should be colored in blue.
Since I'm using MVVM I would like to avoid code behind as much as possible.
So far I've been trying handling this in the ViewModel with a custom TextFormatter however it helped only when the I update the source property and when I updated the RichTextBox directly it didn't color anything as the TextFormatter's SetText wasn't even called. Only SetText was called.
I hope you guys could help me out.
Thanks!
In the end I used the solution I found in here -
http://blogs.microsoft.co.il/blogs/tamir/archive/2006/12/14/RichTextBox-syntax-highlighting.aspx
It's doing its job, but it sometimes has minor hiccups when typing fast or when holding the backspace.
So for now its good enough since my RichTextBox is relatively small.
Though if anyone knows how to fix the hiccups, it would be really great!
EDIT: I found a way to really improve the hiccups. I used a DispatcherTimer and started it on the TextChanged event, that way only after a second/half a second, it would start the coloring logic. So far it works much faster, and I didn't notice any problems when typing quickly. So for my needs of a single row with colored words, it seems like it worked!
Language :: Visual C++ Windows Form Application
Platform :: VS 2008 (.Net 4.0)
I am using the Checked ListView control. I have the "MultiSelect" option set to FALSE. This seems to work to only allow one row at a time to be highlighted.
What doesn't seem to be working though is the Check box associated with each item in the ListView. Even with "MultiSelect" = FALSE it is still allowing the user to check more than one item in the list.
I understand the basic premis behind the CheckBox . . . That it allows more than one item to be selected. But, is there any way around this "feature"? Is there any way to limit only one item checked in a Checked ListView even with the "MultiSelect" option = FALSE?
I am desperate.
Thanks! :)
A quick fix could be to un-select all existing items before selecting the new one.
I have a list that the user can filter in several ways. two of which lend themselves to combo boxes and two that need to accept user input. For example, one textbox allows the user to type in any part of a list item's description, and the dialog will only present items whose description contains the text entered.
It is a dialog 'picker' type of window, so space is at a premium. I'd like for the text boxes not to require a traditional label. Instead, when the dialog is first invoked, the label (ie, "Description") is grayed out, centered, and in italics. Maybe a tool tip to further make it obvious to the user what it's for. When the user starts to type, the faux label disappears and the entered text is normal left aligned text.
Does wpf / silverlight have any native support for doing something like this? I guess it could be a combination of styles and eventing. I'd rather not invent any wheels that might be out there (I got the idea specifically from looking at Tortoise' "Show Log" window, but I've seen it before).
Does anyone have any sample code they can share to do this? Or a an alternative idea that also saves space and simplifies the layout?
Cheers,
Berryl
Kevin Moore's InfoTextBox, which is part of his Bag-O-Tricks is the kind of thing I was looking for, almost exactly. This is also the 'watermark' (great name - I would have found this sooner if I had known that) text box from another post.