IC Python API:RLPy RWinMessageCallback

From Reallusion Wiki!
Revision as of 01:06, 24 April 2020 by Chuck (RL) (Talk | contribs)

Jump to: navigation, search
Main article: Modules.
Last modified: 04/24/2020

Description

This is the base class for registering callback function for windows messages.

Inheritance

RWinMessageCallback> RCallback

Member Functions

OnWinMsgReceieved

The callback function for windows messages. It is called when RWinMessageCallback receive a windows message.

Parameters

strMsg [IN] Message name - string
1 class MyWinMessageCallback(RLPy.RWinMessageCallback):
2  def __init__(self):
3    RLPy.RWinMessageCallback.__init__(self)
4  def OnWinMsgReceieved(self, strMsg):
5    print("WinMsg is" + strMsg)
6 
7 mydialog = RUi.CreateRDialog()
8 mycallback = MyWinMessageCallback()
9 mydialog.RegisterNativeEventCallback(mycallback)