Felipe Monteiro de Carvalho wrote:
On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote:
When a user clicks on the ListBox once, holds down the button pushed
and changes the selected item, many OnClick events are generated. The
same if he uses the keyboard to change the selected item.
Yes,
On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote:
Depending on the key (not just anykay), maybe yes.
For instance a enter on a button generates a click.
That´s a good point.
I tested this on delphi and you get the click when you release the
button. If we don't do that - bug.
For every
Felipe Monteiro de Carvalho wrote:
On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote:
Depending on the key (not just anykay), maybe yes.
For instance a enter on a button generates a click.
That´s a good point.
I tested this on delphi and you get the click when you release the
button. If we
On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote:
Don't think so. It's maybe a limitation of the implementation for Qt,
but for GTK we had the same problem. There we also track the
mousebuttons to see if they were pressed. If so then click, otherwise not.
I've to admit that the button state
Felipe Monteiro de Carvalho wrote:
On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote:
Don't think so. It's maybe a limitation of the implementation for Qt,
but for GTK we had the same problem. There we also track the
mousebuttons to see if they were pressed. If so then click, otherwise
not.
LM_SELCHANGE send OnSelectionChange and next OnClick, but not only in
Qt also in GTK.
Bug or feature?
2006/9/19, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:
Ok, something very strange is going on.
I added a slot for the itemchanged signal that looks like this:
procedure
Luis R. Hilario B. wrote:
LM_SELCHANGE send OnSelectionChange and next OnClick, but not only in
Qt also in GTK.
Bug or feature?
partly.
Delphi send an onclick if the selction changes by a user event. We try
to be compatible with that.
AFAIK, a OnSelectionChange is sent always.
Marc
On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote:
Delphi send an onclick if the selction changes by a user event.
Is there a reason why this is like that}
AFAIK, a OnSelectionChange is sent always.
So how can our widgetset tell LCL only to send a OnSelectionChange
event and *not* a
Felipe Monteiro de Carvalho wrote:
On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote:
Delphi send an onclick if the selction changes by a user event.
Is there a reason why this is like that}
AFAIK, a OnSelectionChange is sent always.
So how can our widgetset tell LCL only to send a
It seems me that is done in the following way:
procedure TQtMemoStrings.IsChanged;
begin
if Assigned((FOwner as TCustomMemo).OnChange) then
begin
(FOwner as TCustomMemo).Modified := False;
(FOwner as TCustomMemo).OnChange(self);
end;
end;
But I agree not to change that, because
On 10/1/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:
But I agree not to change that, because Qtwidgetset should work the
same as Gtkwidgetset, etc., although be an error.
Somewhere I read that Wine emulated windows bug by bug.
It seams to me that we are also emulating bugs in VCL =)
--
Felipe Monteiro de Carvalho wrote:
On 10/1/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:
But I agree not to change that, because Qtwidgetset should work the
same as Gtkwidgetset, etc., although be an error.
Somewhere I read that Wine emulated windows bug by bug.
It seams to me that we
On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote:
When a user clicks on the ListBox once, holds down the button pushed
and changes the selected item, many OnClick events are generated. The
same if he uses the keyboard to change the selected item.
Yes, that are keyclicks (or not ?)
But if
On Tue, 19 Sep 2006 21:44:10 -0300
Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote:
Ok, something very strange is going on.
I added a slot for the itemchanged signal that looks like this:
procedure TQtListWidget.SlotSelectionChange(current: QListWidgetItemH;
previous:
I will send this patch to be applied.
--
Felipe Monteiro de Carvalho
_
To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
That same I suggest, so that it is not lost.
2006/9/22, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:
I will send this patch to be applied.
--
Felipe Monteiro de Carvalho
_
To unsubscribe: mail [EMAIL PROTECTED] with
Hello,
I implemented ListBox.Onclick and ListBox.OnSelectionChange, but they
do not work correctly. OnSelectionChange sends messages of all types
and OnClick does not want to send Onclick (But I see the sign in Qt
when I click an item). View file ListBoxonclick.diff. If someone
understands
On 9/19/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:
If someone
understands what is happening that he fix him because no longer I know
what to do.
I will investigate this.
--
Felipe Monteiro de Carvalho
_
To unsubscribe:
Ok, I already found many things.
To start with, that SetSlot implementation I pointed you at, from
TButton was very wrong and old.
This is what all SetSlots events should look like:
class procedure TQtWSCustomListBox.SetSlots(const QtListWidget: TQtListWidget);
var
Method: TMethod;
Hook :
Ok, something very strange is going on.
I added a slot for the itemchanged signal that looks like this:
procedure TQtListWidget.SlotSelectionChange(current: QListWidgetItemH;
previous: QListWidgetItemH); cdecl;
var
Msg: TLMessage;
begin
FillChar(Msg, SizeOf(Msg), #0);
Msg.Msg :=
20 matches
Mail list logo