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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is best way to use a "pop-up" text box?

Status
Not open for further replies.

KerryL

Technical User
May 7, 2001
545
US
I don't want to take up a lot of room on a customer order form, so I plan to create a "pop-up" text box for free-form notes. This way, a user can add notes/comments to an order if necessary but the large text box won't be in the way if not needed.

When clicked, a cmd button will make the text box visible so the user can enter comments and notes. After the comments are entered, the user can then click a cmd button to hide the note box.

The question I have is this: Is there a way to create a command button and actually place it on the text box itself? Or should I simply "unhide" the text box and the second cmd button (which could be placed within the text box boundaries) at the same time with the cmdOpenText and then hide them at the same time with the cmdCloseText?

cmdOpenNote = unhide txtNote & cmdCloseNote
cmdCloseNote = hide txtNotes & cmdCloseNote

Also, what would be the best or easiest way to signal to a user (who may review the order) that the hidden text box contains comments? Should I change the label on the cmdOpenNote from "Enter Note" to "Edit Note"? Or add a check box?

Your thoughts will be appreciated. Thank you.
kerryl


 
I believe the best way to do this would be to create a 2nd form that contains only a text box (bound to your notes field) and an exit command button to close the form.

Then when your user clicks the "enter notes" button on your main form, you can just open your pop-up notes form. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top