Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit Box Paradox

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
I have a form with an edit box that requires some unusual behavior. The box contains various comments and instructions about orders that can be added by several different users: the account rep, the warehouse scheduler, the order picker, etc. We have encountered a problem where someone puts an instruction in and others rely on it. Something goes wrong with the order and the commenter decides they didn't really mean to say what they said so they go back and "adjust" their remarks, PO'ing those who relied on their say-so. ("I just KNOW it said embroider that logo on the LEFT sleeve, now it says the RIGHT!") The solution that I've come up with is to make the edit box read-only where the got-focus event runs another form that allows the user to ADD TO the comments but not to change what's already there. No going back and fixing that instruction you screwed up earlier.

The problem is that they need to be able to scroll through the existing text but that fires got-focus. I could use a button for adding text but I'd really like to have them click on the text to start the other form.

I need to have the new form start when the user clicks on the text but not when they scroll. How can I make that happen?

TIA,
Shanachie
 
Try using the MouseUp Event, and check to see if the mouse was over the edit portion (that is, that the xposition is less than THIS.Left+THIS.Width-SYSMETRIC(5) )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top