Hi Lennox,
By doing so, you have to be aware of a fact (if it's relevant for
what you're doing).
If you change your text, then simply switch to the Finder to make
anything and then switch back, the remembered text will be the one
after the switch (because the Activate event is called not only when
a document is opened, but also when the window is simply brought to
the front).
Same fact apply if you simply move to another edit field (assuming
there is more than one) and then come back to your target edit field.
The activate event for opening an existing document
I think it'll be more reliable to do it in the same method where you
open your document (maybe just call another function).
and the got focus for changes in an already open document.
You're certainly doing something I don't understand here.
Hope this helps
Le 1 févr. 07 à 13:48 Soir, Lennox Jacob a écrit:
Hi Arnaud,
I did not put it in the Open event, but I put it in the Activate
and got focus events.
The activate event for opening an existing document and the got
focus for changes in an already open document.
Works great.
Lennox.
Arnaud Nicolet <[EMAIL PROTECTED]> wrote: You'll have to remember the
text at a certain point.
Make a property in your window, for example: MyLastText As String
Then, for the example, put this code in the open event (when the text
you want as the default is in the edit field):
MyLastText=me.text
In your push button, write EF1.text=MyLastText (assuming your
editfield is named EF1).
Hope this help
Le 1 févr. 07 à 01:39 Matin, Lennox Jacob a écrit:
Hello,
I have an editfield with some text in it. Then I change (select
then Enter) some of the text. I now want to Undo that.
I have a pushbutton named Undo, what do I put in Undo pushbutton's
action event?
Thanks.
Lennox
_______________________________________________
Unsubscribe or switch delivery mode:
Search the archives of this list here:
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>