https://bugs.documentfoundation.org/show_bug.cgi?id=92588
Bug ID: 92588
Summary: BASE: please implement macro trigger with buttons in
normal way
Product: LibreOffice
Version: Inherited From OOo
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Base
Assignee: [email protected]
Reporter: [email protected]
In LibreOffice Basic, it is possible to have macros called by adding a Button
Control to a Form and then associating a macro with any of several events.
If you want the event to occur when a user clicks the button, you have two
choices:
Mouse button pressed
Mouse button released
Here is the problem and requested enhancement: neither of these events in LO
mimic the way buttons are actually designed to behave in any operating system.
Specifically, the normal way a button triggers an event is when the user clicks
on it and then releases the mouse button CRITICALLY: while the mouse cursor is
still over the button in question.
In contrast to the desired functionality, the 'button pressed' event occurs
when the control is depressed, regardless of whether the mouse button is
released. This can be useful, but it is not the most useful kind of button
event.
In contrast to the desired functionality, the 'button released' event occurs
regardless of whether the mouse cursor moves off of the button before the mouse
button is released, indeed, the event is triggered even when *there was no
'button pressed' event for the button control.* For example, you might use a
'button pressed' event in Form1 to open Form2, and then your cursor might
inadvertently activate the 'button released' event of a control on Form2 simply
by releasing the button after clicking Form1.
There should be a way to trigger an event only when there is both a 'mouse
button pressed' and then 'mouse button released' event on the same control,
while the mouse cursor is on the control both when the button is depressed and
when the mouse button is released. This is the way button controls are
supposed to work, and indeed the way they do work everywhere else.
I have labeled this as an enhancement.
Functionality experienced on Windows 7 LO 4.3, 4.4.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs