Subject Re: extcombobox
From Andy Taylor <andy.taylor.1959@outlook.com>
Date Fri, 17 Jun 2022 06:18:09 -0400
Newsgroups dbase.getting-started

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