Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard vs. Mouse click inconsistencies
Message
From
08/02/2006 07:41:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Keyboard vs. Mouse click inconsistencies
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01094592
Message ID:
01094592
Views:
47
Clicking on a menu to show form oForm is not identical to Alt + whatever key combination, even though the exact same code is executed.

Using the mouse, the called top-level form stays on top of the other forms (if any), but using the keboard it's minimized and has to be activated again from the taskbar.

The code that gets executed is
* DoForm() method of MainForm 
*
Lparameters cForm
Local oForm AS String, oShowForm AS String
oForm ='o' + cForm

With This
   oShowForm = '.' + oForm
   Try
      &oShowForm..Show()   && Fails the first time
   Catch
     .AddProperty(oForm,Null)
     &oShowForm  = Createobject(cForm)
     &oShowForm..Show()
   Endtry
Endwith
If you have any suggestions or comments I'd like to hear from you.

TIA & BR
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Reply
Map
View

Click here to load this message in the networking platform