1. [Win32Lib] Passing Parameter(s) to Handler

Derek Parnell wrote:

>>>AT!??! I've been back for a couple of weeks now. 
>>>      
>>>
>>I was referencing today's mini-vacation... aka, that time after which I 
>>ask you a question and before I receive a reply. ;)
>>    
>>
>Please recall that I'm in Australia which is about 17hours ahead of your time
>zone.
>  
>
Yes, well, I forgot that little detail.

>Your original message arrived at my mailbox 2:46AM (Melbourne time). I'd gone
>to bed around 1:00AM so sorry I can't provide a 24-hour service for dufuses. blink
>  
>
Well what kind of sorry customer service is that?! :P~

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.

new topic     » topic index » view message » categorize

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

----- Original Message ----- 
From: "C. K. Lester" <euphoric at cklester.com>
To: <EUforum at topica.com>
Subject: [Win32Lib] Passing Parameter(s) to Handler


[snip]

> 
> 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? Or get these values from somewhere? Not really sure
what you are asking me. How about spelling out in detail the sequence of events
and directions of data movement for me.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

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

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. :)

new topic     » goto parent     » topic index » view message » categorize

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

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu