[Gambas-user] Does ListBox ''_MouseDown()" Event work ?
Bruce Steers
bsteers4 at gmail.com
Sat Dec 9 19:16:06 CET 2023
On Sat, 9 Dec 2023 at 15:58, Gianluigi <gradobag at gradobag.it> wrote:
> Il 09/12/23 15:55, Bruce Steers ha scritto:
>
> [trimmed]
>
> On Sat, 9 Dec 2023 at 13:49, Bruce Steers <bsteers4 at gmail.com> wrote:
>
>>
>>
>> On Sat, 9 Dec 2023 at 10:51, Gianluigi <gradobag at gradobag.it> wrote:
>>
>>> Il 09/12/23 10:45, Claus Dietrich ha scritto:
>>>
>>> >* Le 08/12/2023 à 14:06, T Lee Davidson a écrit :
>>> *>* > On 12/7/23 20:13, vuott--- via User wrote:
>>> *>* >> Hello,
>>> *>* >> the ListBox ''_MouseDown()" Event does not work for me.
>>> *>* >>
>>> *>* >>
>>> *>* > triggers the MouseDown event with both Qt5 and GTK3.
>>> *>* >
>>> *>>* Compound non-native controls usually eat some of the low-level events.
>>> *>>* You should normally never try to handle low-level events on complex
>>> *>* controls.
>>> *>>* Regards,
>>> *>>* --
>>> *>* Benoît Minisini.
>>>
>>> This reply made me curious and I would be grateful if somebody
>>> can provide some background and help me to understand:
>>> What are possible reasons that non-native controls "eat some of the low
>>> evel events"?
>>> Why should I never try to use events which are a documented capability
>>> of a control?
>>> *
>>>
>>>
>> Like Benoit explained gambas unique controls (from gb.gui.base, and some
>> gb.form) are made by using a container, maybe a panel, then various other
>> controls placed inside.
>>
>>
>>
> I added a warning to UserControl in the wiki..
> https://gambaswiki.org/edit/comp/gb.qt4/usercontrol.
> ...
>
> Hi,
>
> I thank everyone for the explanations (Benoit and the two Bruces), a
> refresher on how things work in Gambas is always useful.
> I agree that it would be just as useful to find a way to avoid exposing
> events that don't work.
> I may be a trivial person, but if I enter a room that has a switch, I
> expect the light to turn on when I act on it.
>
> With best regards
> Gianluigi
>
But if you enter a room with many additional private cubicles inside and
hit the main light switch would you want all the lights to come on? ;)
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231209/c15883b8/attachment-0001.htm>
More information about the User
mailing list