Replies: 6 comments
-
There is also a way to access the application: the
I recommend you to read this section from the Turbo Vision 2.0 Programming Guide (page 168). It's in Pascal, so the source code is different, but the concepts are the same: |
Beta Was this translation helpful? Give feedback.
-
I was thinking about this approach. The text states the message should be unique, to only one window repley it. But the last parameter can be used to send the class name and any extra information about the window who repley the message. I have started my code using message() to communicate. And I found out this morning about owner. But I don't had enough time to make some tests. Tomorrow morning I will do. Sooner I finish my tests, I'll repley here! |
Beta Was this translation helpful? Give feedback.
-
Maybe you already understand the following, but I would like to clarify it just in case: In the example from the book, only one window replies to the message. However, this does not mean that the message can only be sent to one window. Note that the message receiver is the desktop (and not a specific window). However, in the example, the window that receives the The last parameter of When the window calls If the window didn't call There's another important thing that is not mentioned in that section of the book. When a |
Beta Was this translation helpful? Give feedback.
-
Man, You sure is a teacher! Thank you very much. And sure I already had read the sources and find out about the Broadcast. Including the last param of I'm also toke a peek at clearevent() implementation and I saw the evNothins and this being assing to But I'm sure missed the thing about I'll make the changes tomorow. I tell you about, after. |
Beta Was this translation helpful? Give feedback.
-
By the way, I will move your questions to the |
Beta Was this translation helpful? Give feedback.
-
May be we can use the StarUML with extension C++ code generation and reverse engineering. to reverse enginering the TVision source code and build a nice UML diagrams. May be with a long time work, include comments into the source code and use Doxygen to build also a nice documentation. I can work 3h on week on this! If more people help, it can be completed quickly! I guess! |
Beta Was this translation helpful? Give feedback.
-
Folks,
This is not exactly a bug ou issue. It's a work approach. Does anybody is sending message from a window/dialog to the main application?
Unfortely the TViews inherited classes don't have any reference to they parent or even application. So, to communicate with the parent or father, they have to send a message. Somebody wrote about we aren't able of access all the list of childrens of Desktop.
So, to be able of know when they are destroyed, I'm thinking about send a message to the application.
I found the function message() in "tvision/source/tvision/misc.cpp", but sometimes it doesn't work! It complain about arguments.
Does someone is using it to do the hard work?
Beta Was this translation helpful? Give feedback.
All reactions