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!

Dialog System 3.1 - Using checkbox in listview

Status
Not open for further replies.

mfcobol2002

Programmer
Feb 3, 2003
73
BR

Respected Gentlemen,

I created a listview and I added a checkbox in the column 1.
when the user clicks in the checkbox (without selecting the line) it would like the content of the column 5 to be shown in an entryfield. how do I make that? could they give an example?

respectfully

marcos antonio de souza
brasil
 
You don't say what environment you're using, so I can give you this generic response:

I think you need an ItemCheck event procedure to handle this. IIRC, you'll have to check to see if the item is being checked or unchecked. You'll also have to make sure only one item is checked at a time. Once you're sure this item is being checked and it is the only one checked, you can set the value of the text box (entryfield) to the value of the subitem of the listitem being checked.

Glenn
 
The dialog for the checkbox would be something like this:

BUTTON-SELECTED
MOVE DB-5 DB-EF
REFRESH-OBJECT EF-1

WHERE DB-5 IS THE CONTENTS OF THE DATA BLOCK FOR THE COLUMN FIVE DATA, DB-EF IS THE DATA BLOCK NAME FOR THE CONTENTS OF THE ENTRY FIELD, AND EF-1 IS THE NAME OF THE ENTRY FIELD

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top