Subject | Re: [IBO] Re: Lookup Combo with NULL |
---|---|
Author | Robert martin |
Post date | 2005-09-09T05:05:33Z |
Ummmm honestly don't know. We don't sell components.
However I only mentioned what we had done because its really quite
simple. If you already have a customized LookupCombo just add a couple
of properties, one for EnableClearing and one for ClearText. Create a
TPopup menu on the fly, add the text to it and assign the onclick event
to a method in your class. In this method simple set
DataSet.FieldByName(DataField).AsVariant := Null. If you dont already
have a custom component create one.
The stuff above is for a TLookupCombo (Tdataset) descendant but it
should be similar code for a TIb_LookupCombo (we don't use these). Hope
this helps :0)
Disclaimer - all above is off the top of my head.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Antti Kurenniemi wrote:
However I only mentioned what we had done because its really quite
simple. If you already have a customized LookupCombo just add a couple
of properties, one for EnableClearing and one for ClearText. Create a
TPopup menu on the fly, add the text to it and assign the onclick event
to a method in your class. In this method simple set
DataSet.FieldByName(DataField).AsVariant := Null. If you dont already
have a custom component create one.
The stuff above is for a TLookupCombo (Tdataset) descendant but it
should be similar code for a TIb_LookupCombo (we don't use these). Hope
this helps :0)
Disclaimer - all above is off the top of my head.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Antti Kurenniemi wrote:
>Is it possible to see it? What sort of license do you have for it / is it
>for sale?
>
>
>Antti Kurenniemi
>
>----- Original Message -----
>From: "Robert martin" <rob@...>
>To: <IBObjects@yahoogroups.com>
>Sent: Thursday, September 08, 2005 11:48 PM
>Subject: Re: [IBO] Re: Lookup Combo with NULL
>
>
>
>
>>Hi
>>
>>We have a combo that does this, it has a right click clear option. Very
>>simple and quite intuitive, we also added a property for the text of
>>what its clearing.
>>
>>Rob Martin
>>Software Engineer
>>
>>phone +64 03 377 0495
>>fax +64 03 377 0496
>>web www.chreos.com
>>
>>Wild Software Ltd
>>
>>
>>
>>Antti Kurenniemi wrote:
>>
>>
>>
>>>Alan,
>>>
>>>
>>>I'd need to do the exact same thing as you, so if you come up with a
>>>"better" (meaning more intuitive for the end-user) solution, I'd
>>>appreciate
>>>if you posted it.
>>>
>>>Also, I was wondering if there's a component writer around (I've never
>>>really made any myself) who could maybe try making a combo that had, in
>>>addition to the down-arrow a small "clear" button. I have a vague feeling
>>>that I've seen something like that used in some program, but I can't
>>>remember wether it felt "right" or not, so it would be cool to test it on
>>>some poor unsuspectin user ;-)
>>>
>>>
>>>Antti Kurenniemi
>>>
>>>
>
>
>
>
>___________________________________________________________________________
>IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
>___________________________________________________________________________
>http://www.ibobjects.com - your IBO community resource for Tech Info papers,
>keyword-searchable FAQ, community code contributions and more !
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>