Fórum problemas com edit .... #210893
01/02/2004
0
to tendo o seguinte problema .......
meu onkeydown tah assim:
procedure TForm3.edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); var C: Char; PT: TPoint; begin if (Form12 <> nil) then form12.Close; C := UpCase(Char(Key)); if (C in [´B´, ´U´, ´O´, ´R´, ´K´]) and (ssCtrl in Shift) then begin case C of ´B´ : edit1.SelText := TAG_BOLD; ´U´ : edit1.SelText := TAG_UNDERLINE; ´O´ : edit1.SelText := TAG_NORMAL; ´R´ : edit1.SelText := TAG_INVERSE; ´K´ : begin pt.Y := panel2.Top; pt.X := panel2.Left; editscreen := ClientToScreen(pt); criacor(Form3); edit1.SelText := TAG_COLOR; end; end; end; Key := 0; end;
qndo eu dou home ou end ou tento mexer a seta na edit ... ele nao move a setinha na edit e talz ...
jah tentei fazer umas modificaçoes e nao consegui ... alguem sabe como fazer? pelo oq eu vi o problema eh no Key := 0;
soh q nao sei concertar ....
valeuz .. []´s :)
Salsa
Curtir tópico
+ 0Posts
01/02/2004
Beppe
Gostei + 0
01/02/2004
Salsa
qnto ao keypress ... no meu onkeypress tah assim .....:
if Key = #13 then Key := 0;
Gostei + 0
01/02/2004
Edilcimar
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)