WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-25-2022, 03:12 PM
Pegasus3 Pegasus3 is offline
Member
 
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:	7689
Size:	21.9 KB
ID:	1001

Click image for larger version

Name:	buttons.PNG
Views:	7697
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
  #2  
Old 08-30-2022, 10: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:

Code:
vizact.onbuttondown(exitButton, onExitButton)
vizact.onbuttondown(pauseButton, onPauseButton)
vizact.onbuttondown(resumeButton, onResumeButton)
Reply With Quote
  #3  
Old 08-31-2022, 11:30 AM
Pegasus3 Pegasus3 is offline
Member
 
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:	6960
Size:	45.6 KB
ID:	1006  

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

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 04:54 PM
Multiple Button Presses new_horizon Vizard 1 08-19-2011 05:58 AM
removing multiple objects durf Vizard 7 08-05-2009 10:15 AM
multiple objects durf Vizard 1 04-10-2009 02:42 PM
Multiple Viewports in Vizard, Utilizing keyboard callback shivanangel Vizard 2 02-21-2006 05:56 PM


All times are GMT -7. The time now is 09:15 PM.


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