RE: Quick Open Method (QOM)

2019-07-09 Thread Timothy Penner via 4D_Tech
Cool stuff, reminds me of this tech note:

Tech Note: 4D Method Explorer
https://kb.4d.com/assetid=77515

-Tim



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Quick Open Method (QOM)

2019-07-08 Thread Patrick Emanuel via 4D_Tech
Hi Tim,

yes, you did. Thanks again

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Quick Open Method (QOM)

2019-07-08 Thread Tim Nevels via 4D_Tech
On Jul 8, 2019, at 6:43 PM, Patrick Emanuel wrote:

> thanks a lot :-)
> I'm fine with commands METHOD  and work a lot with them in QST. My
> concern is about how you display the result inside the "Find" result dialog
> from 4D application.
> If it is not this, it is really realistic as result.

Hi Patrick,

The pop up window basically contains 2 objects. An enterable text variable at 
the top and below that a collection based listbox.

As you type into the enterable text variable I trap the keystrokes and deal 
with them and call the METHOD GET PATHS command to load an array with matching 
method names. Then I put that into the listbox with ARRAY TO COLLECTION. 

You also have to turn on and off all the right properties for the text variable 
and list box to make it look “right” when you are building the form — hide 
focus rectangle, no horizontal lines in the listbox, selection is always 
visible, etc. 

Does that answer your question of “how did he do that”? 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Quick Open Method (QOM)

2019-07-08 Thread Patrick Emanuel via 4D_Tech
Hi Tim,

thanks a lot :-)
I'm fine with commands METHOD  and work a lot with them in QST. My
concern is about how you display the result inside the "Find" result dialog
from 4D application.
If it is not this, it is really realistic as result.

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Quick Open Method (QOM)

2019-07-08 Thread Tim Nevels via 4D_Tech
On Jul 8, 2019, at 12:46 PM, Patrick Emanuel wrote:

> Very impressive and useful!
> Great job.
> 
> By curiosity, can you explain us the trick you use to get the result into
> the search dialog?

Thank you and glad you are finding it useful. 

The component basically uses 2 4D commands. METHOD GET PATHS is used to load an 
array of method names that begin with what you type. Once you select a method 
you want to open METHOD OPEN PATH is uses to open the method. 

The majority of the code in the component deals with the user interface and 
handling the clairvoyance feature and keystrokes you press when typing in a 
method name. I used the example code in the documentation for the FILTER 
KEYSTROKE as a starting point. 

https://doc.4d.com/4Dv17/4D/17.2/FILTER-KEYSTROKE.301-4387030.en.html 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Quick Open Method (QOM)

2019-07-08 Thread Patrick Emanuel via 4D_Tech
Hi Tim

Very impressive and useful!
Great job.

By curiosity, can you explain us the trick you use to get the result into
the search dialog?

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**