Jump to content


Photo

About SubComponents

subcomponents

  • Please log in to reply
5 replies to this topic

#1 RafaelW

RafaelW

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 November 2017 - 06:57 PM

Hello, i trying to implement a new component Edit with aside button..

 

And internally already implemented OnClick.

 

But this OnClick method is never called.

 

here is the code :

 

for compile the PLUniPesquisa can be removed...

 

Spoiler

 

And code of the internal button is here:

unit PLUniSeekButton;

interface

uses
  SysUtils, Classes, Controls, Buttons, Messages, Windows, Forms, Graphics,
  uniSpeedButton;

type
  TPLUniSeekButton = class(TUniSpeedButton)
  public
    procedure Loaded; override;
    constructor Create( AOWner : TComponent ); override;
  published
    property AutoSize;
  end;

implementation


constructor TPLUniSeekButton.Create(AOWner: TComponent);
begin
  inherited Create(AOWner);
  Name := AOWner.Name+'SubButton';
  SetSubComponent(True);
  Hint := 'Pesquisar <F2>';
  Height := 0;
  Width := 0;
  caption := '...';
end;

procedure TPLUniSeekButton.Loaded;
begin
  inherited;
  Name := Self.Owner.Name+'SubButton';

  if (self.Hint = '') then
    self.Hint := 'Pesquisar <F2>';

  caption := '...';
end;

end.

Thanks for any help!


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3450 posts

Posted 06 November 2017 - 05:06 AM

Hi,

 

Which edition and build are you using ?!

 

Best regards,


  • 0

#3 RafaelW

RafaelW

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 06 November 2017 - 08:07 PM

Hi,

 

Which edition and build are you using ?!

 

Best regards,

 

Version:1.0.0 build 1397


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3450 posts

Posted 06 November 2017 - 08:10 PM

Which edition?


  • 0

#5 RafaelW

RafaelW

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 14 November 2017 - 06:20 PM

Which edition?

sorry, version:1.0.0 build 1397, edition professional complete


  • 0

#6 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3450 posts

Posted 14 November 2017 - 07:08 PM

Hi,

 

First of all, please visit here:

http://forums.unigui...-email-address/

 

Best regards,


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users