Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Help
Message
 
 
To
02/06/2008 09:20:48
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01320951
Message ID:
01320963
Views:
19
This message has been marked as the solution to the initial question of the thread.
You're mistaken. The shortcut for the button is 'B' not 'ALT+B'.

>
>I have a problem where comboboxes fire shortcut keys even thought the ALT has'nt been specified by the user.
>
>The following has just a combo box and a button with a shortcut key of ALT + B. If you sit on the combo box and hit just B it fires the click event of the button which I really dont think it should. If I change the combo box style to not be 2 then it works ok but all my combo boxes are built from system data when the form is built so I dont really want to change it.
>
>Any help or advice would be appreciated.
>
>Many thanks
>
>Jon
>
>oForm = Createobject('form1')
>oForm.Show()
>Read Events
>
>DEFINE CLASS form1 AS form
>
>
>	DoCreate = .T.
>	Caption = "Form1"
>	Name = "Form1"
>
>
>	ADD OBJECT command1 AS commandbutton WITH ;
>		Top = 144, ;
>		Left = 168, ;
>		Height = 49, ;
>		Width = 133, ;
>		Caption = "\<Bob", ;
>		Name = "Command1"
>
>
>	ADD OBJECT combo1 AS combobox WITH ;
>		Height = 25, ;
>		Left = 84, ;
>		Style = 2, ;
>		Top = 60, ;
>		Width = 133, ;
>		Name = "Combo1"
>
>
>	PROCEDURE command1.Click
>		wait window "Clicked"
>	ENDPROC
>
>
>ENDDEFINE
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform