[Mono-list] Combo box focus problem
Manish Rai Jain
manishrjain at gmail.com
Thu Jun 14 18:02:39 EDT 2007
Hi Adrien,
Bingo! I came up with exactly the same solution, though it is infact just a
hack around the real issue.
Cheers,
Manish
On 6/15/07, Adrien Dessemond <adrien.dessemond at softhome.net> wrote:
>
> Hello Manish,
>
> On Thu, June 14, 2007 11:22 am, Manish Rai Jain wrote:
> > I'm tracking down the "Changed" event of combo box, which notifies
>
> I had the same kind of troubles some days ago. My workaround was something
> like that :
>
> public class X
> {
> bool _ignoreCall;
> Gtk.ComboBox _testcombobox;
> ...
>
> void on_TestComboBox_changed(object sender, EventArgs e)
> {
> if(_ignoreCall)
> return;
> ...
> }
>
> ...
>
> void aMethod()
> {
> _ignoreCall = true;
> _testcombobox.Active = n;
> _ignoreCall = false;
> }
> }
>
> Quick and (very ?) dirty solution. If a more elegant one exists, I will
> appreciate to hear about it.
>
> Kind regards,
>
> Adrien
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070615/be241c52/attachment.html
More information about the Mono-list
mailing list