Re: ON KEY usage in your apps
Thinking about it some more, I always have a menu available with the 2 help bars: _mst_hpsch and _mst_help so maybe that's why F1 works by default, but then again, maybe it just works by default. I have my screens and controls set (HelpContextID) to bring up specific places in the help file (CHM) so that the help is context sensitive. If you're not using the built in help functionality I guess you need to handle the F1 key some other way. It's amazing how much we forget if we don't do this stuff regularly. Frank. Frank Cazabon On 19/09/2018 10:16 PM, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: On 2018-09-19 11:19, Frank Cazabon wrote: I thought set help on and set help to automatically make the F1 key work without having to use on key label. At least I have never had to set on key label f1 to get my help to work in my applications. I never used the integrated help like that. My F1 key simply called the routine to launch the appropriate help document (PDF) via ShellExecute. [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/b329627c-0bc8-668d-99f3-067d510e1...@gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-19 11:19, Frank Cazabon wrote: I thought set help on and set help to automatically make the F1 key work without having to use on key label. At least I have never had to set on key label f1 to get my help to work in my applications. I never used the integrated help like that. My F1 key simply called the routine to launch the appropriate help document (PDF) via ShellExecute. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/e4b154508c64a2d61ef3b021819be...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
At 18:18 2018-09-18, Gene Wirchenko wrote: At 14:03 2018-09-18, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: VFP9SP2 on Win7/8/10 pcs I really never fully took advantage of this gem in VFP. In my apps, I haven't allowed editing in grids in probably 14 years. Some of my users seem to want that though so I'm thinking of allowing such ability now. I was thinking of using ON KEY to pop up a lookup form to add data records to the grids (instead of that native whatever way of doing an APPEND blank in the native VFP grid). In the past, I've really just used ON KEY to pop up the help file on demand. In what other ways have you used ON KEY in your designs? I use on key label "ctrl+0" * so .null. can not be entered into controls. I also enjoy the minor joke of * being executable in this control. Note that it does not mean the same as on key label "ctrl+0" I forgot about my setup code. I use on key label key> for deleting my app's .fxp files, compiling my app, and starting my app with various options. Sincerely, Gene Wirchenko ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/9373a933298f33d95776a9bc8512b86f@mtlp84 ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
I thought set help on and set help to automatically make the F1 key work without having to use on key label. At least I have never had to set on key label f1 to get my help to work in my applications. Frank. Frank Cazabon On 19/09/2018 04:51 AM, Alan Bourke wrote: We use ON KEY LABEL F1 for throwing up the application help file. Aside from that we almost exclusively use form KeyPreview() methods I think. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/b5ad9bba-280c-44c3-1b3a-0701d89be...@gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
He got the program to do all of his forms but didn't want any "real" facts outside of his books. Accounting for the auto industry is pretty "obscure" to be honest. Values you see on contracts are not the same in the GL for the actual transaction, especially if there was a trade in in the deal as well as "packaged" add-ons. On Wed, Sep 19, 2018 at 9:19 AM wrote: > On 2018-09-19 09:36, Stephen Russell wrote: > > I wrote software for the used car business and one early customer paid > > me > > big money to put an ON KEY command to format the hard disk. This was > > either in 89 or 1990 time frame. > > > LOL!!! Sounds like the "self-destruct button" on the St. Georges secret > spy ship in the beginning of For Your Eyes Only! "Destruct ATAC > system!" > > https://www.youtube.com/watch?v=vsEMeXATt00 > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJidMYLaL+RQrEU-pAQj9A-0RJteMFmgbmOwbkzQuJ2MU6J=z...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-19 04:51, Alan Bourke wrote: We use ON KEY LABEL F1 for throwing up the application help file. Aside from that we almost exclusively use form KeyPreview() methods I think. I think I used the form.KeyPreview method maybe once or twice in 20 years. H. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/99be6fd7d4bdac008646683a7d57c...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-19 09:36, Stephen Russell wrote: I wrote software for the used car business and one early customer paid me big money to put an ON KEY command to format the hard disk. This was either in 89 or 1990 time frame. LOL!!! Sounds like the "self-destruct button" on the St. Georges secret spy ship in the beginning of For Your Eyes Only! "Destruct ATAC system!" https://www.youtube.com/watch?v=vsEMeXATt00 ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/97c367cf796be8cba016df3edfadc...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
I wrote software for the used car business and one early customer paid me big money to put an ON KEY command to format the hard disk. This was either in 89 or 1990 time frame. The other On Key was to bring up the command window to execute commands in an attempt to find out what might be wrong at a client's site. On Tue, Sep 18, 2018 at 4:03 PM wrote: > VFP9SP2 on Win7/8/10 pcs > > I really never fully took advantage of this gem in VFP. In my apps, I > haven't allowed editing in grids in probably 14 years. Some of my users > seem to want that though so I'm thinking of allowing such ability now. > I was thinking of using ON KEY to pop up a lookup form to add data > records to the grids (instead of that native whatever way of doing an > APPEND blank in the native VFP grid). > > In the past, I've really just used ON KEY to pop up the help file on > demand. > > In what other ways have you used ON KEY in your designs? > > tia, > --Mike > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJidMY+H1-eEMU9SpOUm8eZJAAOAyUL_3pHJgb=_0t=hlpj...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
Me too, On Key label activates several app to assist on development. Not for production except F1 to activate help Koen Op wo 19 sep. 2018 om 13:54 schreef Fernando D. Bozzo > I use ON KEY LABEL just for debugging purposes, like suspending, opening > dev tools menu or admin maintenance, dumping memory variables to disk and > the like. > > > El mié., 19 sept. 2018 10:51, Alan Bourke > escribió: > > > We use ON KEY LABEL F1 for throwing up the application help file. Aside > > from that we almost exclusively use form KeyPreview() methods I think. > > > > -- > > Alan Bourke > > alanpbourke (at) fastmail (dot) fm > > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CACUu1Svz3PJrASACvE-xe64=KRDjwS=dueffuj+_ph55obk...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
I use ON KEY LABEL just for debugging purposes, like suspending, opening dev tools menu or admin maintenance, dumping memory variables to disk and the like. El mié., 19 sept. 2018 10:51, Alan Bourke escribió: > We use ON KEY LABEL F1 for throwing up the application help file. Aside > from that we almost exclusively use form KeyPreview() methods I think. > > -- > Alan Bourke > alanpbourke (at) fastmail (dot) fm > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cagq_jukrbwwfysyvyrj4wl2v7mdnzbkf2q6n96bua4ms2hb...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
We use ON KEY LABEL F1 for throwing up the application help file. Aside from that we almost exclusively use form KeyPreview() methods I think. -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/1537347086.268168.1513190752.20e1e...@webmail.messagingengine.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
RE: ON KEY usage in your apps
I use ON KEY Alt+F2 SUSPEND in my main program for when I get in a loop John Weller 01380 723235 07976 393631 VFP9SP2 on Win7/8/10 pcs I really never fully took advantage of this gem in VFP. In my apps, I haven't allowed editing in grids in probably 14 years. Some of my users seem to want that though so I'm thinking of allowing such ability now. I was thinking of using ON KEY to pop up a lookup form to add data records to the grids (instead of that native whatever way of doing an APPEND blank in the native VFP grid). ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000f01d44fed$d0e9be50$72bd3af0$@johnweller.co.uk ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
> Except for that Microsoft's version has selected parameter evaluation and > mine has all parameters evaluated -- not something programmers can control in > the VFP language -- our icase()s work the same. Technically speaking, you would be able to achieve this by rewriting the FXP file which must not be encrypted. There's a token for SkipOnTrue and SkipOnFalse that VFP inserts into expressions that are not fully evaluated, such as AND or OR. Whether this is really worth the effort is an entirely different question, though. -- Christof ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/404cdc5d-46b5-4a33-a4e9-71e185388...@wollenhaupt.org ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
At 20:37 2018-09-18, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: On 2018-09-18 21:18, Gene Wirchenko wrote: I use on key label "ctrl+0" * so .null. can not be entered into controls. Clever Thank you, but ... I do not think of the above as particularly clever; it is simply something that I worked out to avoid nulls. I happened to think that way; you did not. With something else, it may go the other way. Because we can communicate our discoveries/solutions/what-have-yous, we each end up with more as a result. This is a big reason why I like forums and lists. On another point, I had an icase() function about five years before Microsoft added it to VFP. Except for that Microsoft's version has selected parameter evaluation and mine has all parameters evaluated -- not something programmers can control in the VFP language -- our icase()s work the same. I wonder if Microsoft came up with the idea themselves -- not that difficult; it seemed obvious to me -- or glommed onto my idea (which I had posted publicly). Either way is fine with me, just as I do not mind anyone using the above bit of code. Sincerely, Gene Wirchenko ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/22d9cc27527bfe7f68d4b3b37554b955@mtlp84 ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-18 19:29, Frank Cazabon wrote: Not sure I'm understanding. Do you want to allow editing in the grid or do you want a popup form to edit the records from the grid? I've always used a separate form for single record add/edit. Then took that object and validated it in the business object (my controls were always thisform.oRecord.cLastName, etc.), then passed that to my data object to add/edit/delete in the backend (MySQL) database via my SPT code. I have allowed editing in grids with no problems for many years using visual max frame. For some reason (probably years before I switched to non-binding VFP cursors instead of local views or direct tables in my earliest VFP days), I favored avoiding data entry in grids. Some here may have helped me form that position too. I would never use an on key label for anything in an application. I would use buttons with hot keys or if that is not possible use the form's key press. I liked the Help manual idea for it! ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/626e7795171ba6c35e29d93d8c8d0...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-18 21:18, Gene Wirchenko wrote: I use on key label "ctrl+0" * so .null. can not be entered into controls. Clever ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/de37121c794ed016258589ac52cb2...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
At 14:03 2018-09-18, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: VFP9SP2 on Win7/8/10 pcs I really never fully took advantage of this gem in VFP. In my apps, I haven't allowed editing in grids in probably 14 years. Some of my users seem to want that though so I'm thinking of allowing such ability now. I was thinking of using ON KEY to pop up a lookup form to add data records to the grids (instead of that native whatever way of doing an APPEND blank in the native VFP grid). In the past, I've really just used ON KEY to pop up the help file on demand. In what other ways have you used ON KEY in your designs? I use on key label "ctrl+0" * so .null. can not be entered into controls. I also enjoy the minor joke of * being executable in this control. Note that it does not mean the same as on key label "ctrl+0" Sincerely, Gene Wirchenko ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/901f7bd9393ecc6ffb51b353985c30f8@mtlp85 ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
Not sure I'm understanding. Do you want to allow editing in the grid or do you want a popup form to edit the records from the grid? I have allowed editing in grids with no problems for many years using visual max frame. I would never use an on key label for anything in an application. I would use buttons with hot keys or if that is not possible use the form's key press. On 18 September 2018 17:03:18 GMT-04:00, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: >VFP9SP2 on Win7/8/10 pcs > >I really never fully took advantage of this gem in VFP. In my apps, I >haven't allowed editing in grids in probably 14 years. Some of my >users >seem to want that though so I'm thinking of allowing such ability now. > >I was thinking of using ON KEY to pop up a lookup form to add data >records to the grids (instead of that native whatever way of doing an >APPEND blank in the native VFP grid). > >In the past, I've really just used ON KEY to pop up the help file on >demand. > >In what other ways have you used ON KEY in your designs? > >tia, >--Mike > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/c8a291c6-a0e2-468b-b16c-f8260e1d1...@gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: ON KEY usage in your apps
On 2018-09-18 17:03, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: VFP9SP2 on Win7/8/10 pcs I really never fully took advantage of this gem in VFP. In my apps, I haven't allowed editing in grids in probably 14 years. Some of my users seem to want that though so I'm thinking of allowing such ability now. I was thinking of using ON KEY to pop up a lookup form to add data records to the grids (instead of that native whatever way of doing an APPEND blank in the native VFP grid). In the past, I've really just used ON KEY to pop up the help file on demand. In what other ways have you used ON KEY in your designs? It's worth noting too that I use disconnected cursors (like Charlie Coleman's approach from the late 1990s!). Backend is MySQL and I basically just use the current app handle (or re-establish if not connected) and perform the add/edit/delete. So it's not like I have to worry about updateable views or anything like that. My own framework is all SPT calls. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/82e16be6788f6df0874312e4f798e...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
ON KEY usage in your apps
VFP9SP2 on Win7/8/10 pcs I really never fully took advantage of this gem in VFP. In my apps, I haven't allowed editing in grids in probably 14 years. Some of my users seem to want that though so I'm thinking of allowing such ability now. I was thinking of using ON KEY to pop up a lookup form to add data records to the grids (instead of that native whatever way of doing an APPEND blank in the native VFP grid). In the past, I've really just used ON KEY to pop up the help file on demand. In what other ways have you used ON KEY in your designs? tia, --Mike ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/c46ca07dbf6c37ebb1c2ea963f3a6...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.