WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-25-2022, 02:12 PM
Pegasus3 Pegasus3 is offline
Join Date: Aug 2022
Posts: 7
Callback multiple button objects

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)
Click image for larger version

Name:	code.PNG
Views:	1936
Size:	21.9 KB
ID:	1001

Click image for larger version

Name:	buttons.PNG
Views:	1972
Size:	108.1 KB
ID:	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.
Reply With Quote
Old 08-30-2022, 09:49 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
Try registering the callback functions for button presses using vizact.onbuttondown:

vizact.onbuttondown(exitButton, onExitButton)
vizact.onbuttondown(pauseButton, onPauseButton)
vizact.onbuttondown(resumeButton, onResumeButton)
Reply With Quote
Old 08-31-2022, 10:30 AM
Pegasus3 Pegasus3 is offline
Join Date: Aug 2022
Posts: 7
Yes I tried but got another error (PFA screenshot)
Attached Thumbnails
Click image for larger version

Name:	Error24.PNG
Views:	1792
Size:	45.6 KB
ID:	1006  

Last edited by Pegasus3; 08-31-2022 at 10:31 AM. Reason: Forgot attachment
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simultaneous Actions on Multiple Objects javadi Vizard 2 07-19-2013 03:54 PM
Multiple Button Presses new_horizon Vizard 1 08-19-2011 04:58 AM
removing multiple objects durf Vizard 7 08-05-2009 09:15 AM
multiple objects durf Vizard 1 04-10-2009 01:42 PM
Multiple Viewports in Vizard, Utilizing keyboard callback shivanangel Vizard 2 02-21-2006 04:56 PM

All times are GMT -7. The time now is 07:58 PM.

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