Subject Re: extcombobox
From Mustansir Ghor <mustan31@hotmail.com>
Date Sun, 19 Jun 2022 12:43:25 -0400
Newsgroups dbase.getting-started

Dear Andy

Thank you.

when you said this, "Then you are free to add or remove whatever code you want to." Is this a reference to the renamed cc file?  So that will mean that in the renamed cc file the we can add to existing code of function extcombox_onchange() method.

I think the above does not imply inheritance. Or may be I am wrong.

Further with extcombobox,  I observed that in the pattern scroll when it sees space it then stops there. This means it looks for 1st word matching. Can we use inheritance property to make it scroll for more than 1 word.

Best Regards
Mustansir





Andy Taylor Wrote:

> Hi Mustansir,
>
> Yes, that's the whole point of custom changes to existing objects - you can change what you want.
> That said, I would not do the change in the extCombobox.cc file because that may have other consequences if you use that same file elsewhere in other applications.
>
> You should make a custom copy of the cc file with an altered name - say myCombo.cc and store it in the same folder as your other cc files that apply to the current application.
>
> Then change the form.wfm file by hand to refer to the new myCombo class instead of extCombobBox.
>
> Then you are free to add or remove whatever code you want to.
>
> Hope that helps,
> Andy
>
> > Dear All
> >
> > I am using extcombobox. Can we add syntax to its on_change() method to add functonalty and is has been set with custom method.
> >
> > Best Regards
> > Mustansir
>