[NTLK] ProtoGlance - how to get it to work?
Chris Rupnik
chris.rupnik at gmail.com
Tue Jan 18 18:41:26 PST 2022
Hi
That was the trick - my code - as well as the sample code now work as expected
Note: I only needed to do this in the buttonclickscript: (as mentioned, your method also worked)
func()
begin
myglance:Open();
end,
Thank you!
Chris
> On Jan 18, 2022, at 7:22 PM, Matthias Melcher <mm at matthiasm.com> wrote:
>
>
>> On 18. Jan 2022, at 23:45, Chris Rupnik <chris.rupnik at gmail.com> wrote:
>>
>> Hi Mathias
>> Thank you for taking the time to look at this for me. Sadly - even your suggestion doesn’t seem to work for me. Whereas the package complies fine - when you actually hit the button on either an einstein newton or emate300 - i get the error -48809 “Sorry a problem has occurred”
>>
>> I do notice in your listing you have StepDeclare() sections - which are not present in my example. Are these required? If so - how do you add them to a project?
>
> In NTK, you select the menu item "Template Info" in the "Browser" menu. If you give the view a name and the top view as well, you can check teh "Declare To" box and select the paren.
>
> And yes, it is needed. When the app is opened, all views that are in step forms are cloned into main form by AddStepForm. StepDeclare then makes the Glance visible as a named slot in the main form.
> ----------------------------------------------------------------------
>
> http://newtontalk.net
> http://twitter.com/newtontalk
More information about the NewtonTalk
mailing list