Re: v13+ Progress component, and other components

2018-06-12 Thread Chip Scheide via 4D_Tech
not exactly..  :)
I have component which has 4D code which wraps the Progress component, 
this did 2 things for me
- I had existing code for thermometers & barber poles, so I just used 
those method calls to manage Progress and id not have to go back 
through lots of code to change calls, method names etc.
- I have a component, in which I put up a progress indicator (barber 
pole in this specific instance). The wrapper code, mentioned above, for 
Progress is included in the component.  I do not have a specific 
wrapper component for Progress.

Also, I think I have figured out the issue, what I was not aware of was 
in this context, Progress is trying to use the Host database context 
for the User close action callback, rather then the context of the 
component in which Progress was called/instansiated.
So, I will need to either, install the call back method into the host, 
or modify my Progress init routine to allow a passthrough Host user 
close callback method name.

Thanks for the help
Chip

On Mon, 11 Jun 2018 20:48:37 +, Keisuke Miyako via 4D_Tech wrote:
> you are working on a component that "wraps" around another component?
> 
> just as a reminder,
> the progress component is open-source since v16,
> partners have ways to customise and distribute them.
> 
>> 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> の
>> メール:
>> In component (wrappers for progress methods including):
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
you are working on a component that "wraps" around another component?

just as a reminder,
the progress component is open-source since v16,
partners have ways to customise and distribute them.

> 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
> In component (wrappers for progress methods including):




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: v13+ Progress component, and other components

2018-06-11 Thread Keisuke Miyako via 4D_Tech
remember, "progress" is itself a component,
so your callback method is always called from outside (EXECUTE METHOD) .

the method must be shared.

> 2018/06/11 23:21、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I do not understand why I am getting this error, as the callback method
> (user_Closed_Progress) exists in the component.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: v13+ Progress component, and other components

2018-06-11 Thread Chuck Miller via 4D_Tech
What happens if you check this method as shared. Remember you are running in 
your own process. Not sure if this does anything. 

Regards
Chuck

Sent from my iPhone

> On Jun 11, 2018, at 10:21 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> closing the progress object 
> (user_Closed_Progress).

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: v13+ Progress component, and other components

2018-06-11 Thread Chip Scheide via 4D_Tech

maybe I need to try explaining the situation again...

In component (wrappers for progress methods including):
- New progress object wrapper (New_Progress)
- call back method for managing a user closing the progress object 
(user_Closed_Progress).
- The call back method is referenced in the wrapper for a new Progress 
object.

In the host
- a call to New_Progress which looks like this:
$Progress_ID:=New_Progress("Top message};"Bottom message")

this opens a progress object/window and it functions as expected.
calls to the update progress' messages work as expected.
closing the progress object (by code) work as expected.

However, if the user closes the progress object - I am getting an 
error, previous mentioned, saying:
- The callback method 'user_Closed_Progress' does not exist, or is not 
shared by the host.

I do not understand why I am getting this error, as the callback method 
(user_Closed_Progress) exists in the component.

On Fri, 8 Jun 2018 17:32:02 -0700, Kirk Brooks via 4D_Tech wrote:
> Chip,
> Keep in mind that if you call the Progress methods from the component they
> run in the context of the component. Which means they aren't sharing memory
> space with the host db.
> 
> 
> On Fri, Jun 8, 2018 at 3:27 PM Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I am referencing Progress (4D natively installed component), in a
>> component.
>> I wrap Progress calls in my own methods, including the call to New
>> Progress where I install my own callback method to execute on user
>> close of the progress thermometer.
>> 
>> I am getting an error when the user tries to close the progress window
>> saying that the callback method either does not exist (it does in the
>> component referencing Progress) or it is not shared in the host.
>> 
>> Any ideas?? the documentation on Progress is thin...
>> 
>> Thanks
>> Chip
>> 
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *We go vote - they go home*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: v13+ Progress component, and other components

2018-06-08 Thread Kirk Brooks via 4D_Tech
Chip,
Keep in mind that if you call the Progress methods from the component they
run in the context of the component. Which means they aren't sharing memory
space with the host db.


On Fri, Jun 8, 2018 at 3:27 PM Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I am referencing Progress (4D natively installed component), in a
> component.
> I wrap Progress calls in my own methods, including the call to New
> Progress where I install my own callback method to execute on user
> close of the progress thermometer.
>
> I am getting an error when the user tries to close the progress window
> saying that the callback method either does not exist (it does in the
> component referencing Progress) or it is not shared in the host.
>
> Any ideas?? the documentation on Progress is thin...
>
> Thanks
> Chip
>
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

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