Jump to content

Need DbEdit with a Button at Right


Ronak

Recommended Posts

Hello,

 

 

Can some one help me developing DbEdit with a Button at Right.

 

I made an attempt to ceate dbEdit having a button at right, During design time I see the button but not at run time.

 

unit UniDBEditBtnd;

interface

uses
 SysUtils, Classes, Controls, uniGUIBaseClasses, uniGUIClasses, uniEdit, uniDBEdit, uniSpeedButton;

type
 TUniDBEditBtnd = class(TUniDBEdit)
 private
   { Private declarations }
  fButton: TUniSpeedButton;
 protected
   { Protected declarations }
 public
   { Public declarations }
  constructor Create(AOwner: TComponent);override;
  destructor Destroy;override;
 published
   { Published declarations }
 end;

procedure Register;

implementation

procedure Register;
begin
 RegisterComponents('Custom', [TUniDBEditBtnd]);
end;

{ TUniDBEditBtnd }

constructor TUniDBEditBtnd.Create(AOwner: TComponent);
begin
 inherited;
  fButton:= TUniSpeedButton.Create(Self);
  fButton.Parent:= Self;
  fButton.Align:=alRight;
  fButton.width:= 20;
  fButton.Top:= 0;
end;

destructor TUniDBEditBtnd.Destroy;
begin
  fButton.Free;
  inherited Destroy;
end;

end.

post-595-0-11744500-1354001549.jpg

Link to comment
Share on other sites

  • 6 years later...

Good Morning!
I'm doing converting tests from my soft to UniGui and I need a lot of UniButtonEdit + UniButtonDBEdit to replace TJvDBComboEdit and TJvComboEdit, could they help me by sending a copy of what came out in that post http://forums.unigui.com/index.php? / topic / 3532-unibuttonedit / & tab = comments # comment-54575
but is no longer available.

You can send a copy to ***@gmail.com or provide a new download link. Thank you in advance for your help!

Link to comment
Share on other sites

2 hours ago, fabiotj said:
126/5000
Olá, alguém tem o componente? Agradecemos antecipadamente por qualquer ajuda, estou preso nesta fase da minha conversão. Obrigado!

esse componente está no roadmap, e so aguardar que sai um nativo.

ou voce pode por enquanto usar um edit ou dbedit normal e colocar um botao do lado separadamente.

vai ter o mesmo efeito.

voce pode tambem substituir por uma tunidbcombobox  e nao adionar itens na combobox, e usar o click do botao da combox para sua finalidade.

 

Link to comment
Share on other sites

Obrigado pela dica Wilton!

A questão é que tenho mais de 150 formulários com esses dois componentes, e tem código no evento OnButtonClick e no OnExit deles que terei de migrar para um botão separado, ai se tivesse um outro mesmo que pra uso temporário trocaria tudo de uma vez e depois quando saísse o nativo eu trocaria novamente, mas sem o trabalho braçal. 

Mas obrigado vou aguardar pra ver se alguém tem ai o componente "provisório" se não vou ter que fazer no braço mesmo como você falou.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...