[fpc-pascal](no subject)

2003-12-19 Thread Payan Ballesteros, Ivan
unsubscribe payball [EMAIL PROTECTED]
--


***
Este mensaje se dirige exclusivamente a su destinatario y puede 
contener información confidencial sometida a secreto profesional o cuya divulgación 
esté prohibida en virtud de la legislación vigente. 
Cualquier opinión en él contenida es exclusiva de su autor y no 
representa necesariamente la opinión de la empresa.
Si ha recibido este mensaje por error, le rogamos nos lo comunique 
inmediatamente por esta misma vía y proceda a su destrucción.

This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional privilege
or whose spreading is prohibited by virtue of the in force legislation. 
Any opinion there in contained is solely that of the author
and does not represent necessarily the opinion of the company.
If this message has been received in error, please immediately notify us via e-mail 
and delete it.
***


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]Newbie question: fpc + gtk + clist SOLVED!!

2003-12-19 Thread Eduardo Lopez
It seems that nobody care ;-) , but this is the solution that I find:

1)  Apply to the Clist the attribute GTK_SELECTION_BROWSE
2)  Added a global variable that contain the row number selected (filled 
by the procedure that handle the signal of the Clist)
3) In the "form" , first read the correspnding row selected -using my 
variable- and fill the entry widgets...

Regards...
Eduardo
Eduardo Lopez wrote:

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
---
[EMAIL PROTECTED]




___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal