Recent

Author Topic: Programa Somar Lázaro  (Read 4355 times)

AprendendoasCoisas

  • Newbie
  • Posts: 3
Programa Somar Lázaro
« on: February 21, 2021, 03:51:45 pm »
Não consegui achar a procedure clear para criar o botão limpar no componente TPanel

procedure TFrmCalculo.btnlimparClick(Sender: TObject);
begin
  edtnumero1.clear;
  edtnumero2.clear;
  edtresult.clear;
//  pnlresul.clear; // programa Lázarus esqueceu a "procedure Clear" no TPanel
  edtnumero1.setfocus;
end;   

« Last Edit: March 06, 2021, 09:40:36 pm by AprendendoasCoisas »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Programa Somar Lazarus
« Reply #1 on: February 21, 2021, 04:21:26 pm »
O que você está tentando fazer? Um painel é basicamente um espaço vazio para conter outros controles. Por si só, pode ter uma legenda (Caption), mas isso é tudo que há para fazer; não precisa de um método Clear.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Programa Somar Lazarus
« Reply #2 on: February 21, 2021, 04:31:48 pm »
Please use only English in the general sub forums.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Programa Somar Lazarus
« Reply #3 on: February 21, 2021, 08:00:36 pm »
Oops! Sorry, I though we were in the portuguese board. :-[

The OP wanted a Clear method for panels, like the one in other controls, and I answered that there is neither one or the need for it, since a panel is simply a container which by itself, only has a Caption as "content".
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

AprendendoasCoisas

  • Newbie
  • Posts: 3
Re: Programa Somar Lazarus
« Reply #4 on: February 21, 2021, 08:44:51 pm »
O que você está tentando fazer? Um painel é basicamente um espaço vazio para conter outros controles. Por si só, pode ter uma legenda (Caption), mas isso é tudo que há para fazer; não precisa de um método Clear.

ok, obrigado por sua opinião profissional.

AprendendoasCoisas

  • Newbie
  • Posts: 3
Re: Programa Somar Lazarus
« Reply #5 on: February 21, 2021, 08:46:16 pm »
Please use only English in the general sub forums.

O Fórum está com tradutor, obrigado por verificar essa parte.

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Programa Somar Lázaro
« Reply #6 on: February 21, 2021, 09:14:28 pm »
use google translator Please ..


Spanish to English, just Copy and Paste!
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018