Re: WebRegisterPath too inflexible
Originally Posted by
Roel Westhoff [W4]
- ... I have buttons that need to open different zoom objects depending on where i am on the screen. As far as i can see this is not possible. Am i wrong?
You can do this. The only thing you cannot use in this case is NavigatePath.
Use WebRegisterPath for all the different possible zooms that your button click might need to take you to, but then within OnClick, instead of NavigatePath (which is really just a nifty shorthand way of navigating where there's only one option) you go back to using Send NavigateForward (or whatever)
Code:
WebRegisterPath ntNavigateForward oZoomOne
WebRegisterPath ntNavigateForwardCustom oZoomTwo
WebRegisterPath ntNavigateForwardCustom oZoomThree
Procedure OnClick
If (some condition) Begin
Send NavigateForward of oZoomOne Self
End
Else if (some other condition) Begin
Send NavigateForwardCustom of oZoomTwoSelf Self
End
Else Begin
Send NavigateForwardCustom of oZoomThree Self
End
End_Procedure
Last edited by Peter Bragg; 23-Jul-2019 at 07:28 AM.
Reason: missing callback object in example
"My wife thinks I over-analyse our marriage, which, to be frank completely contradicts the findings of my report." - @MooseAllain