Re: [hatari-devel] Some minor changes for sdlgui.c

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]



> Am 20.07.2024 um 18:39 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> 
> Am Sat, 20 Jul 2024 18:11:08 +0200
> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> 
>>> Am 20.07.2024 um 15:45 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>>> 
>>> Hi!
>>> 
>>> Am Sat, 20 Jul 2024 08:15:18 +0200
>>> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
>>> 
>>>> I’d like to suggest this patch for Hatari that contains a few refinements:
>>>> Return object for checkbox and radiobutton. This makes it possible to easily determine which option was checked. I am using this for example for a mixed radiobutton and checkbox list in the GUI (see appended screenshot). If for example NeXTstation and Color are checked and one switches to NeXTcube I can uncheck the Color option. This can be done from switch(but) as for other buttons.  
>>> 
>>> Can't you simply use SG_EXIT for this case instead?  
>> 
>> I can confirm that SG_EXIT works if I set it for all radiobuttons and checkboxes in that dialog. But is this really what SG_EXIT is intended for?
> 
> $ grep SG_EXIT src/includes/sdlgui.h 
> #define SG_EXIT        2   /* Exit when mouse button has been pressed (and released) */
> 
> ... so I'd say: yes, this is what it is intended for :-)

So I am using it the wrong way. ;-)

Obviously I misunderstood the purpose of SG_EXIT. I’ll change it when I get time. For now it works anyway.
> 
> Thomas
> 


Andreas




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