Re: [hatari-devel] Some minor changes for sdlgui.c |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Some minor changes for sdlgui.c
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 20 Jul 2024 16:39:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1721493564; bh=BH6O/ObqkW4YW6+95obUreZGcxBYEkSH2owyapZ3RhE=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=ljIK0XIPUBS+zlEXbS9ZmRtRZrjbSij3yEzmTlHXy/dCDljPXZn9hufRacnVnysCq YSomEpqnXn2LZZ6RIkr4Oy+3Kf4IIpYQMVj2Sw4+Zz7kr6712pORdmnztdU5yDG5TM rHCRThJd67yCIFnvRWM5isTKhBL2T8Ij4+p2PMORMp43H7JnDQMo3fMvMP0iyQhrWa D9+qZnK4mdu5d8yJCbLUVPOGS1TRCuX2zJCwkabcBQRasr1lg3wvGDtFaifx9Kr7Wj HUgtbobZu/FyMDjuBR1JLKSsVSxLqfbNwKZOy/RzunP0/SUWV71fTG/TE/qrvLU9FW M12CuWpYlLt3g==
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 :-)
Thomas