[Gambas-user] GB3 Custom controls
Bruce Bruen
bbruen at ...2308...
Tue Nov 8 00:06:55 CET 2011
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote:
> > 5) It would be really, really, really nice if all controls had a
> > AcceptFocus property (IDE visible) so things like Picture boxes can
> be
> > skipped in custom navigation code
>
> Normally PictureBox is a read-only control, so it should not get the
> focus
It's to do with the custom navigation code. Demo by commenting out line
58 in MUtil.NextActiveControl and put a breakpoint at the end of
InnerText_KeyPress (line 439?) and then run the project. In the Horse
Code box press Enter, debug Application.ActiveControl shows that
focus(?) is on the picture box. Do this in QT4 first. In GTK the
behaviour is harder to catch.
> (do you use gb.qt or gb.gtk?).
Both :-) in fact this whole affair started because I have remote users
with different guis and wanted to get both of them working the same so
phone support is easier.
> DrawingArea has a "Focus" property. I admit it may be useful to put
> that
> property in every control, but I'm not sure it is a good idea at the
> moment.
Cool. Just a suggestion.
Bruce
More information about the User
mailing list