From: Brad C. <bk...@mu...> - 2005-12-12 14:45:27
|
On 12 Dec 2005 at 11:11, Ury Marshak wrote: > Brad Clements wrote: > > > > >Create a private message type to be handled by your gui, then use > >postmessage() to send that message type to the appropriate window. > > > > > Thank you for the advices. I'm really new with venster, > is there maybe an example of this trick somewhere in > some project that I can have a look at maybe? Its a standard windows API technique, not at all specific to venster. Remember, venster mostly just exposes the win32 API, it's not a gui framework in itself. > Also, where in venster is a good pace to cut into message > processing to intercept my message? In venster 0.7, the test directory, test_scintilla.py ID_EVAL = 8001 is an example of a "private" message type in MainForm, the _msg_map at the bottom shows how that message number is vectored to the MainForm.OnEval method You an use venster.windows.PostMessage to asyncly send your private message type to your form's hwnd. I suggest you consult any basic WIN32 windows API document, like the MSDN website. very long url posted below, I just went to msdn.microsoft.com and searched for postmessage. .Sorry I don't have more time to help you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/messagesandmessagequeues/messagesandmessagequeuesreference/messagesandmessagequeuesfunctions/postmessage.asp -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements |