on 1/14/06 1:57 PM, John McKernon at [EMAIL PROTECTED] wrote:
> So the question is, how can I tell when a user has
> made a *repeat* selection from a popup menu?
This is an example of where "new event" could come in handy.
Create a custom Subclass of popupmenu.
Give it a property: lastTxt As String
Give it a new "Change" event: Change (txt As String)
In the custom class's Change event:
lastTxt = Me.Text
Change lastTxt // passes lastTxt to the instance's change event.
In the custom class's 'MouseUp' event:
// calls the instance's Change event
// and passes 'lastTxt'... which should be the
// current selection.
Change lastTxt
In the instance of your custom class, the change event should fire even when
you re-select the previous selection. In the instances 'Change' event, you
would use the 'txt' parameter, rather than Me.Text.
I have not tested this... but it (or something like it) should work.
_______________________________________________
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>