Yes. I tried all three view modes. But, I just noticed that it would work after 
I clicked into the Write Pro area. I added a GOTO Object to the area when the 
form loaded and POOF it works.

I wouldn't have thought it had to have focus, but it sort of makes sense given 
that INVOKE ACTION is effectively executing a contextual menu. The docs do say, 
"Such actions are always executed synchronously in the context of the editable 
object that has the focus." I guess I should have read them more closely.

Thanks.

-- 
   ------------------------------------------------------------------
   Tom Dillon                                      375 S Main St #405
   DataCraft                                           Moab, UT 84532
   [email protected]                           720/209-6502
   ------------------------------------------------------------------
      The past is the foundation of who you are, but it is not
      the design of who you will become. --- Sunastar
   ------------------------------------------------------------------

Bernard Escaich via 4D_Tech wrote:

>Tom,
>
>Are you in Page mode ?
>
>Cordialement,
>
>Bernard Escaich
>
>
>
>> Le 5 févr. 2019 à 01:05, Tom Dillon via 4D_Tech <[email protected]>
>a écrit :
>> 
>> From the Tech Tip "Programatically set the Zoom in 4D Write Pro"
><https://kb.4d.com/assetid=78083> the following should set the zoom
>level of a 4D Write area. But, it doesn't seem to work, at least for me.
>Can any of y'all point out the error of my ways?
>> 
>> $invokeStr:="zoom?value="+String($Scale)+"%"  ` "zoom?value=100%"
>> INVOKE ACTION($invokeStr;$WP_AreaPtr->)
>> 
>> and $WP_AreaPtr is to a field displaying the 4D WP area.
>> 
>> The area is initially set to 50%. The object changes sizes, since I
>set it to Grow/Grow, but the content stays the same size/zoom level.
>> 
>> I wanted to make the zoom reflect a user change in the window size,
>and I've even tried it from a button.
>> 
>> Mac v17R3
>> 
>> Thanks


**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to