WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Callback multiple button objects (https://forum.worldviz.com/showthread.php?t=6402)

Pegasus3 08-25-2022 02:12 PM

Callback multiple button objects
 
2 Attachment(s)
Hi all,

I am designing an interface with multiple buttons as shown in screenshot named buttons. I want to run all as per the user need and I wrote following code (please see snapshot named code)
Attachment 1001

Attachment 1002
But the issue is only the function which I defines at the last works and others not work for callback. Can someone help me out in this issue.

Jeff 08-30-2022 09:49 PM

Try registering the callback functions for button presses using vizact.onbuttondown:

Code:

vizact.onbuttondown(exitButton, onExitButton)
vizact.onbuttondown(pauseButton, onPauseButton)
vizact.onbuttondown(resumeButton, onResumeButton)


Pegasus3 08-31-2022 10:30 AM

1 Attachment(s)
Yes I tried but got another error (PFA screenshot)


All times are GMT -7. The time now is 04:39 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC