Welcome to Team Developer Community Forum. A place created by the community, for the community !
This is a resource for Q & A and discussion about everything related to OpenText Gupta Team Developer, SqlBase, TD Mobile and Report Builder.
It is the alternative for the OpenText customer forums which can only be accessed with an active support contract.
Please register your account now. It will make you part of the active community.
Also, this guest message will not be displayed for registered users.
As a bonus, registered users have access to the 'Newsgroups' subforum, holding 10 years worth of posts from the good old Gupta newsgroups.
Having an account gives you the opportunity to ask questions and get help from others.
We hope this free gathering will help you and the community getting forward!
The forum site admins.
Although I've figured out how to block the up and down arrow keys by processing, in the message actions of a combo box, the WM_GETDLGCODE message and returning 0, that doesn't do anything for those other keys.
Thanks for the suggestion, however that does not work.
Users of our application find it much too easy to unintentionally alter values in combo boxes (when they have the focus) with:
- Mouse Scroll Wheel
- Any key on the keyboard
*Edit* You'll find in the sample commented code that either did not work at all, or only partially helped. *Edit Done*
As an alternative to all of this, I could take the combo boxes out of the tab order, which would force users to mouse-click on a combo box, but I keep that as a last resort.
- (250.49 KiB) Downloaded 3 times
the reason why my sample works is that my combo box is editable. If the combobox is not editable, the focus is on the arrow to open the combo box and not on the datafield. If you set the combo box to editable you can prevent the keysstroke in the the VTM_KeyDown section.
If NOT VisListGetDropdownState( hWndItem )
If wParam = VK_PageDown OR wParam = VK_PageUp
If wParam = VK_Home OR VK_End
EDIT: Ugh, I missed that bit about disabling the keystrokes. Excellent stuff, Ewald. THANKS !!!
Although that makes sense, I can't set that sort of thing up because none of our combo boxes are editable.
Much appreciated, and Happy Tuesday ! (I'm just a hop skip and a jump away from Happy Wednesday Eve...)
Who is online
Users browsing this forum: No registered users and 1 guest