Hercles Posted October 5, 2013 at 10:28 PM Report #527755 Posted October 5, 2013 at 10:28 PM (edited) Caros, criei este código abaixo e quando executo um item do menu, o primeiro aparece com as Tlabel normal quando clico em outro, do menu, as Tlabel só aparece no formulário quando eu clico dentro da Tgrupobox. O que acontece? procedure Tfrmmeusfuncionarios.mnuacharfuncionarioClick(Sender: TObject); begin caption:='Achar Funcionário'; Groupbox1.visible:= true; txtnome.enabled:= false; txtidade.Enabled:=false; txtsalario.Enabled:=false; button1.caption:='Buscar'; Groupbox1.caption:='Achar Funcionário'; end; procedure Tfrmmeusfuncionarios.mnualteraridadefuncionarioClick(Sender: TObject); begin caption:='Alterar Idade - Funcionário'; Groupbox1.visible:= true; txtnome.enabled:= false; txtidade.Enabled:= true; txtsalario.Enabled:=false; button1.caption:='Alterar'; Groupbox1.caption:= 'Alterar Idade'; end; procedure Tfrmmeusfuncionarios.mnualterarnomefuncionarioClick(Sender: TObject); begin caption:='Alterar Nome - Funcionário'; Groupbox1.visible:= true; txtnome.enabled:= true; txtidade.Enabled:=false; txtsalario.Enabled:=false; button1.caption:='Alterar'; Groupbox1.caption:='Alterar Nome'; end; procedure Tfrmmeusfuncionarios.mnualterarsalariofuncionarioClick(Sender: TObject ); begin caption:='Alterar Salário - Funcionário'; Groupbox1.visible:= true; txtnome.enabled:= false; txtidade.Enabled:=false; txtsalario.Enabled:=true; button1.caption:='Alterar'; Groupbox1.caption:='Alterar Salário'; end; Edited October 6, 2013 at 12:08 AM by Hercles
nunopicado Posted October 6, 2013 at 01:02 AM Report #527767 Posted October 6, 2013 at 01:02 AM Não percebi. O que te acontece ao certo? "A humanidade está a perder os seus génios... Aristóteles morreu, Newton já lá está, Einstein finou-se, e eu hoje não me estou a sentir bem!" > Não esclareço dúvidas por PM: Indica a tua dúvida no quadro correcto do forum.
Hercles Posted October 6, 2013 at 02:36 AM Author Report #527770 Posted October 6, 2013 at 02:36 AM (edited) o problema esta aqui: Groupbox1.caption:='Alterar Nome'; mas resolvi trocando esta linha por uma Tlabel que ficou mais bonito... lblmsg.caption:='Alterar Nome'; Edited October 6, 2013 at 04:59 AM by thoga31 Formatação do post
Hercles Posted October 6, 2013 at 02:37 AM Author Report #527771 Posted October 6, 2013 at 02:37 AM (edited) resolvi troquei Groupbox1.caption:='Alterar Nome'; por uma Tlabel Edited October 6, 2013 at 05:00 AM by thoga31 Formatação do post
I-NOZex Posted October 6, 2013 at 10:52 AM Report #527783 Posted October 6, 2013 at 10:52 AM se qeres agrupar, exprimenta tambem usar antes um TPanel... (tens é de mudar o alinhamento do texto, por defeito é meio-centro, tens de meter esquerda-topo) B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Hercles Posted October 6, 2013 at 01:22 PM Author Report #527799 Posted October 6, 2013 at 01:22 PM show.
thoga31 Posted October 6, 2013 at 02:55 PM Report #527807 Posted October 6, 2013 at 02:55 PM show. Esclarecedor para quem te está a tentar ajudar. Show what? Knowledge is free!
nunopicado Posted October 6, 2013 at 03:00 PM Report #527810 Posted October 6, 2013 at 03:00 PM (edited) Esclarecedor para quem te está a tentar ajudar. Show what? "Show... de bola" 🙂 Significa que o rapaz já entendeu! Acho... É no que dá não ouvires Ruth Marlene! 😄 Edited October 6, 2013 at 03:02 PM by nunopicado "A humanidade está a perder os seus génios... Aristóteles morreu, Newton já lá está, Einstein finou-se, e eu hoje não me estou a sentir bem!" > Não esclareço dúvidas por PM: Indica a tua dúvida no quadro correcto do forum.
Hercles Posted October 6, 2013 at 03:40 PM Author Report #527814 Posted October 6, 2013 at 03:40 PM isso mesmo já resolvi. Tudo certo! (Brasil o pais do futebol, show de bola rsrs 🙂
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now