procedure TForm1.MemExpKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); var LigneNum: LongInt; begin if (Key=VK_UP)or(Key=VK_DOWN) then begin LigneNum:=MemExp.Perform(EM_LINEFROMCHAR, MemExp.SelStart, 0); Label1.Caption:='Line - '+IntToStr(LigneNum+1); end; end;
Blog sur la conception, développement et le génie logiciel. Divers langages et systèmes d'exploitations sont traités.
mercredi 16 octobre 2002
Comment avoir la ligne courante dans un memo?
Comment avoir la ligne courante dans un memo?
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire