Re: [AD] Animation method dialog in demo cannot be cancelled with return key

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed, 2005-10-19 at 22:50 +0200, Grzegorz Adam Hankiewicz wrote:
> On 2005-10-16, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> > Your patch to gui.c should be applied in any case.
> > 
> > I'm not sure why the one to guiproc.c is needed though.
> 
> I think it had something to do with how object_message, called
> from the MESSAGE macro returns the value, and d_button_proc doesn't
> process MSG_CHAR, or something.
> 
> And the same kind of thing would be needed for the checkbox or any
> other gui object which is expected to be selected on/off with the
> return key. Otherwise pressing enter on the checkbox closes the
> animation dialog with "OK", rather than turning it on or off.
> 
> I don't even know why I posted this, I always steer away from GUIs.
> 

Well, that wrong return value was a bug which needed to be fixed :)

I applied your gui.c patch and removed the ASCII 13 shortcut from the
animsel dialog for the moment, that should fix the bug.

I don't want to think through that MSG_CHAR change to other dialogs
right now.. so I leave it to someone else to commit that, or add to the
todo.

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/