Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Object
Message
De
20/10/2014 10:58:16
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01609619
Message ID:
01609655
Vues:
48
High Sergey

Nice to see you. :)

I had this idea, but this is something more that will run on init. I'm a bit reluctant with it.
So it would run for every button (no OLE Container here).
Any idea to do this fast?

It would need an assign, something on init to raise it initaly, it's a pain. :)

Best would be if it would run as one expect it ... :)

Lutz

>Wouldn't be easier to get default object to register with container?
>
>>
>>I look for an idea to figure out what object on a form is the default one, i.e. the one that has the DEFAULT property true
>>
>>Background:
>>
>>I have a rather tricky grid that recieves the Enter key and performs stuff. Sometimes just some internal blabla, sometimes it performs an action directly bound to the key.
>>
>>I think I can tetermine what of the above, but the problem is how to rise the default objects default action (Click) / or not. For the moment it's simply doing nothing with the default object
>>
>>the code in the grid's textbox looks
>>
>> DO CASE
>>  CASE tnKeyCode = 13
>>*<Enter>
>>   NODEFAULT
>>  CASE INLIST(tnKeyCode,5,24) AND tnShiftAltCtrl=0
>>*<Up>,<Down>
>>   .SETFOCUS()
>>  CASE tnKeyCode = 27
>>*<ESC>
>>   NODEFAULT
>>...
>>
>>
>>If I compare with ESC I see no difference (even in the keypress stuff around objects keypress , since form is KeyPreview = .T.), this is checkes with SET COVERAGE.
>>
>>Both keys just differ in the way they run throug this case.
>>
>>After the keypress is ended, ESC raises the events that will end up with the Click of Cancel- object Enter just does nothing.
>>
>>Well, I can not figure that out. O.K. But then, how do I raise default objects Click?
>>
>>TIA
>>
>>Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform