Re: Bitmap button default
"Brendan Simon (eTRIX)" <[email protected]> Mon, 15 Jul 2019 13:37:06 +1000
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | eTRIX pty ltd |
| Message-ID | <[email protected]> |
On 15/7/19 9:19 am, Igor Korot wrote: > Hi, Brendan, > > On Sun, Jul 14, 2019 at 6:05 PM Brendan Simon (eTRIX) > <[email protected]> wrote: >> On 15/7/19 1:12 am, Dietmar Schwertberger wrote: >> >> On 06.07.2019 07:28, Brendan Simon (eTRIX) wrote: >> >> Now, with this work around of setting the textctrl to have focus, wxglade preview window still has the button with focus, not the textctrl. I assume this is a bug in wxglade. >> >> When a window has the focus, one input element has the focus and usually it's highlighted. >> I don't see a bug or problem here. >> >> So is it possible to have an app with two buttons and not have any of them highlighted? (or even just one button with no highlight?). >> >> I think my issue was that the Preview window highlighted the button, even though my textctrl was selected with the Focus (focus checkbox ticked) and the button was not (focus checkbox not ticked). The app looks correct when compiled and run, but the wxglade Preview did not match that (i.e. the button as highlighted). >> >> If the Preview window is supposed to reflect what the executed application is supposed to look like when run (as much as possible), then there is a discrepancy. >> >> I will revisit it and check again, probably with a simplified test app. > Just curious - in which order did you created the controls? > > Thank you. Hard to say exactly. I don't think order creation of the buttons is important, but order creation of the sizers might be. From memory ... If I put a new button in a higher numbered slot, then it doesn't show as highlighted. If I put a new button in the first slot of the first grid sizer then it gets highlighted. If I move the existing button that is highlighted to another position with a higher slot number in the 2nd grid, then it is no long highlighted. Anyway, all the buttons do not have the focus checkbox ticked, and a read-only text control does have the focus checkbox ticked. The app reflects this when compiled and run, but not the Preview window. Brendan. ------------------------------------------------------------------------ _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general