Article # 113, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
GenText in a properties dialog.
If you have a GenText object in a properties dialog, you will have a slight problem. For instance, bring up the dialog and type some text into the GenText. Then click on Cancel in the dialog. Now activate the dialog again. Edit the text in the GenText. Notice how the Ok trigger doesn't become enabled like it did the first time. To fix this you must set the modified status of the GenText when the dialog is initiated. To do this, make a subclass of GenInteractionClass and use that class for the dialog object. Then intercept the MSG_GEN_INTERACTION_INITIATE message and in your handler call the superclass, then send the following message: @send textObj::MSG_GEN_TEXT_SET_MODIFIED_STATE( FALSE ); Now when you type something in the GenText it will always send out its status message to the interaction, and the Ok trigger will become enabled, as it should.