Recent

Author Topic: Take mouse actions at design time?  (Read 7479 times)

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Take mouse actions at design time?
« on: August 12, 2009, 06:14:15 pm »
How take mouse actions at design time and not leave it to the designer in part of my control.

Like as in Delphi

procedure CMDesignHitTest(var Message: TCMDesignHitTest); message CM_DESIGNHITTEST;
« Last Edit: August 12, 2009, 06:20:50 pm by Zaher »

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Take mouse actions at design time?
« Reply #1 on: August 15, 2009, 03:26:54 pm »
I read this topic
http://lazarus-dev.blogspot.com/2007/10/how-tpagecontrol-tab-switching-in.html

GetDesignInteractive not get help when make Weddgetset inside my control unit

How TPageControl doing that? any hint one tips or just the unit file i can read.

Thanks in advenced.
« Last Edit: August 15, 2009, 03:37:29 pm by Zaher »

Eugene Kryukov

  • New Member
  • *
  • Posts: 15
Re: Take mouse actions at design time?
« Reply #2 on: November 17, 2009, 11:14:40 am »
Hello,

When i can post request to Lazarus Team for implementation of CM_DESIGNHITTEST behavior ?

Eugene

Eugene Kryukov

  • New Member
  • *
  • Posts: 15
Re: Take mouse actions at design time?
« Reply #3 on: November 17, 2009, 02:21:53 pm »
Hello,

I was made changes in designer.pp source. This few changes implemented CM_DESIGNHITTEST behavior in Lazarus IDE. May be some body can apply this changes to development tree version. I use today revision.

This is link modified version:
http://www.ksdev.com/files/designer.zip

Changes was commented by
Code: [Select]
{ start Eugene Kryukov *******}
...
{ end Eugene Kryukov *******}

P.S. I see DesinerMediator in latest sources. But it help only for non LCL components. This changes allow to LCL controls have design-time behaviors.

Eugene

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Take mouse actions at design time?
« Reply #4 on: November 17, 2009, 02:26:51 pm »
making a patch is described here: http://wiki.lazarus.freepascal.org/Creating_A_Patch
please report it to bug tracker (bugs.freepascal.org)

 

TinyPortal © 2005-2018