[Gambas-user] Bug with GTK+

Jussi Lahtinen jussi.lahtinen at ...626...
Tue Dec 16 03:37:45 CET 2014


This is what I mean:

TextBox1.Enabled = False 'Prevent user messing while showing the data.
ShowSomeData()

TextBox1.Enabled = True 'Enable user to give new input...
TextBox1.SetFocus() '...without need to click on the textbox.


Jussi

On Tue, Dec 16, 2014 at 4:29 AM, Jussi Lahtinen <jussi.lahtinen at ...626...>
wrote:
>
>
> But there is no need to disable the control, re-enabling it, then giving
>> it focus back. What for? Just disable it when enter is hit.
>>
>
> The code you see is only isolation for demonstration of the problem. There
> is really code (call of sub) between disabling and enabling the control.
> It's not enough to just disable the control when I hit enter, because the
> program ask more input when it is done showing some data. Thus re-enabling.
> I think I added the focus because in some cases, the focus went to the
> control displaying the data (or somewhere else?).
>
>
> Jussi
>



More information about the User mailing list