Re: [Win32Lib] Passing Parameter(s) to Handler

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:

>EUPHORiCK wrote:
>  
>
>>Derek Parnell wrote:
>>    
>>
>>>From: "C. K. Lester" <euphoric at cklester.com> 
>>>      
>>>
>>>>Okay, back to business... How would I pass a parameter (or two), > >>say 
>>>>a database_file_name and table_name, for the w32HClick of a 
>>>>label? Key is, the label (and others like it) is being 
>>>>dynamically created at runtime.
>>>>        
>>>>
>>>Do you mean that when the label is clicked, you need to pass the 
>>>database and table names to something?
>>>      
>>>
>>Yes. Exactly. Clicking on the label should call up the particular 
>>database from which the data can be derived/looked-up/etc... This 
>>is why I wanted a function, as well, because I would like to be 
>>able to return the values that get looked up! But, I'll no doubt 
>>work around that somehow. :)
>>    
>>
>Within your onClick handler, use getText(self) to find out what the text 
>in the label is.  I assume you could figure out which database, etc., 
>you need to use from that, right?
>  
>
Yeah, I could map the label text to the database needed... Thanks!!!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu