Bookstore

Recent

Author Topic: Implement new WidgetSet and Events  (Read 7008 times)

ALB42

  • New member
  • *
  • Posts: 6
    • ALBs Projects
Implement new WidgetSet and Events
« on: May 05, 2011, 12:32:43 pm »
Hello,

Currently i try to implement new WidgetSet. The Basics are quite simple, I already successfully open Form and a Button.

The Events already Catched in 'AppProcessMessages'.
For example a Click on the Button, but what to do with the event (should call the OnClick Event for example)
I have the TControl of the clicked Button (EventTarget), but a call of LCLSendClickedMsg(EventTarget); did not fire the Event.
Of course i could check and fire the Event by myself, but it seems thats not the way the other Widgets does!
Any hints?

Thanks

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2507
Re: Implement new WidgetSet and Events
« Reply #1 on: May 05, 2011, 12:38:34 pm »
Start debugging and single stepping to see what happens in LCLSendClickedMsg
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

zeljko

  • Hero Member
  • *****
  • Posts: 1112
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Implement new WidgetSet and Events
« Reply #2 on: May 05, 2011, 01:14:04 pm »
OnClick fires when LCL gets mousedown and mouseup msgs from widgetset.
Look at qt implementation in SlotMouse what msgs should be sent.

ALB42

  • New member
  • *
  • Posts: 6
    • ALBs Projects
Re: Implement new WidgetSet and Events
« Reply #3 on: May 05, 2011, 07:34:35 pm »
OnClick fires when LCL gets mousedown and mouseup msgs from widgetset.
Look at qt implementation in SlotMouse what msgs should be sent.

Thanks, this was the key :D
(debugging is very difficult, the new widgetset is also under a new platform without gdb  %))

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2507
Re: Implement new WidgetSet and Events
« Reply #4 on: May 05, 2011, 08:03:11 pm »
Intersting... care to tell what platform ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

ALB42

  • New member
  • *
  • Posts: 6
    • ALBs Projects
Re: Implement new WidgetSet and Events
« Reply #5 on: May 05, 2011, 09:37:48 pm »
Intersting... care to tell what platform ?

I ported freepascal fpc to i386-aros
at the moment i try Amiga-style widgetset Intuition/Gadtools later i hope Zune/MUI.