How can I simulate that a dialog's OK-button has been activated already when the program starts?
Here is the case:
In a listbox the user can select an item, then click an OK-button in order to display a few lines of text. I want to simulate the most significant item being activated already on the fly when the application has been started. I know how to select an item in the listbox, but how do you simulate the buttonclick? And furthermore, how to implement the same effect when the item has been doubleclicked instead of the OK-button?
Thanks,
Egbert
[This message has been edited by Egbert Zijlema (edited May 04, 2000).]
Here is the case:
In a listbox the user can select an item, then click an OK-button in order to display a few lines of text. I want to simulate the most significant item being activated already on the fly when the application has been started. I know how to select an item in the listbox, but how do you simulate the buttonclick? And furthermore, how to implement the same effect when the item has been doubleclicked instead of the OK-button?
Thanks,
Egbert
[This message has been edited by Egbert Zijlema (edited May 04, 2000).]
Comment