Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invisible buttons hot key
Message
From
24/10/2008 08:45:30
 
 
To
24/10/2008 00:08:42
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356027
Message ID:
01356854
Views:
31
Guten Morgen, Agnes :)
Yes.. I thinking if we made someting complex.. :)) probably it will work..
My first idea... which comes to my head was to use GOTFOCUS and LASTKEY()
Problem only - last key does not reset if I switch between forms :)))) but first idea was too simple :))
I will think a little bit more.. (currenty "customers" ready to wait untill this feature will realized in nearest versions of software)

Another idea.. use another REAL button with TABSTOP and LEFT = -10000 and invisible button together.. just invisible button will have not a caption, and rest put into GOTFOCUS() of standard vfp button. I thinking it will works.. before I just want to avoid add too much objects to this special container.

So far, Vielen Dank!
Denis


>Denis
>dobroje utro
>
>Then one good thing I could tell you that is it simple to avoid the listen events on unvisible Pageframes.
>Every object has an UIENABLE event.
>
HELP UIENABLE
> If it receives .T., BIND your objects, if it receives .F. UNBIND. So there is no need to bind all objects in forms init.
>
>The problem is that you need to figure out which page is first. One way would be to
>
>lnPage = pageframe.ACTIVEPAGE
>pageframe.ACTIVEPAGE = 0
>pageframe.ACTIVEPAGE = lnPage
>
>in your forms init.
>
>It may also speed up if you avoid the ASCAN. Think about a ASSIGN to CAPTION that reads those number and store it to a property, so the "CatchKey_Event" need only to compare two numbers. This will work much faster. In this case I would create the array only in the ASSIGN. Since the ASSIGN will not work for propertys set in the designer you would need a
>
THIS.CAPTION = THIS.CAPTION
>line in buttons init
>
>BTW
>
>Do buttons in Office receive KEYPRESS or are they toolbars? A toolbar object normaly does not receive a keypress ....
>
>Agnes
>>Hi Agnes,
>>Yes.. the idea with BindEvents() is quite good.. I thinking it will work.
>>I just thinking.. how many buttons will listen the same keypress event.. 20... 50.. each keypress willl fair catch_keypress in 50 buttons.. every button will check if its the keycode whats neccessary...... hmmm..
>>Now.. lets think.. user type text in Editbox.. what will happens in system.. each key press will far 50 events.. where 50 methods will check hot keys..What's happens with performance?
>>and for example.. our application using Pageframe as host for containers.. sometimes its 27 pages.. each 27 pages has buttons.. maybe.(maybe) on page 1.. exist button with hot key "S"... and on page10 also.. and on page12 also..
>>Can you imagine whats heppens then?! :))))
>>
>>The code what I writing - its a code for restyle existing application.. just lifting of interface, make it more modern and beauty..
>>So far.. I thinking.. your solution will works.. but.. but past of this solution might be on my look more horrible then advantage :)))
>>
>>Denis
Previous
Reply
Map
View

Click here to load this message in the networking platform