WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-20-2006, 12:37 PM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Callback function name backward incompatibility

I notice that when you delcare a callback, e.g.,

viz.callback(viz.KEYDOWN_EVENT, myKey)

you can no longer put the function name in single quotes, e.g.,

viz.callback(viz.KEYDOWN_EVENT, 'myKey').

Is it possible to make both versions work in Viz3. Otherwise I will have
to change it in all the scripts I've written in Viz2.
Reply With Quote
  #2  
Old 12-20-2006, 12:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard 3.0 will only accept a function pointer, but once you make this change it will still work with Vizard 2.x
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


All times are GMT -7. The time now is 01:24 AM.


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