[fpc-pascal]Newbie question: fpc + gtk + clist

Eduardo Lopez edulopez at hotpop.com
Tue Dec 16 21:32:10 CET 2003


Hello all:

1st. Sorry about my english :-)

I'm trying to develop an GUI application with fpc and gtk. And I begin 
exploring and extending the examples.

I'm working with clist.pp and added three buttons: Insert, Change, 
Delete. The goal is that the user press anyone and display a convenient 
form to update de record.

In the example, there is a procedure "selection_made" that respond to 
the signal  "clicked" in the list, and it reads the list and retrieve 
the data.

The question is: How can I get the same data when the user press the 
Change button. I can connect a signal to the Change button, but I need 
to know the row that is selected in the list  to read his data.

The secuence is:
1- The user select a row with click ( or just browsing the list )
2- The use click in the button Change/Delete to update the record.

Thanks in advance.
Eduardo
---
edulopez at hotpop.com









More information about the fpc-pascal mailing list