Arsip: ada yang tau komponent edbedit

more 16 years ago
alvonz
rekan2 delphi-id.org, saya mau tanya ada yang tau komponen edbedit gak..
sy ada contoh program, muncul edbedit.dcu not found
jika ada yang punya atau yang tau nama komponennya plis kasih tau
saya udah nanya embah google gak dapet, :?: :?:

more 16 years ago
ImanD
@alvonz
cobain yg ini bro,
unit Edbedit;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Mask, DBCtrls;
type
TEDBEdit = class(TDBEdit)
private
{ Private declarations }
protected
{ Protected declarations }
procedure KeyPress(var Key: Char); override;
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
public
{ Public declarations }
published
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TEDBEdit]);
end;
procedure TEDBEdit.KeyPress(var Key: Char);
var
MYForm: TForm;
begin
if Key =#13then
begin
MYForm := GetParentForm( Self );
if not (MYForm = nil ) then
SendMessage(MYForm.Handle, WM_NEXTDLGCTL, 0, 0);
Key :=#0;
end;
if Key <>#0then inherited KeyPress(Key);
end;
procedure TEDBEdit.KeyDown(var Key: Word; Shift: TShiftState);
var
MYForm: TForm;
CtlDir: Word;
begin
if (Key = VK_UP) or (Key = VK_DOWN) then
begin
MYForm := GetParentForm( Self );
if Key = VK_UP then CtlDir := 1
else CtlDir :=0;
if not (MYForm = nil ) then
SendMessage(MYForm.Handle, WM_NEXTDLGCTL, CtlDir, 0);
end
else inherited KeyDown(Key, Shift);
end;
end.
Ref: http://www.programmersheaven.com/download/6026/0/ZipView.aspx
more 16 years ago
alvonz
@ImanD: @alvonz procedure TEDBEdit.KeyPress(var Key: Char); var MYForm: TForm; begin if Key =#13then begin MYForm := GetParentForm( Self ); if not (MYForm = nil ) then SendMessage(MYForm.Handle, WM_NEXTDLGCTL, 0, 0); Key :=#0; end; if Key <>#0then inherited KeyPress(Key); end; procedure TEDBEdit.KeyDown(var Key: Word; Shift: TShiftState); var MYForm: TForm; CtlDir: Word; begin if (Key = VK_UP) or (Key = VK_DOWN) then begin MYForm := GetParentForm( Self ); if Key = VK_UP then CtlDir := 1 else CtlDir :=0; if not (MYForm = nil ) then SendMessage(MYForm.Handle, WM_NEXTDLGCTL, CtlDir, 0); end else inherited KeyDown(Key, Shift); end; end. [/pas] Ref: http://www.programmersheaven.com/download/6026/0/ZipView.aspxmuncul error


more 16 years ago
ImanD
@alvonz
mana image nya? bro image nya kudu di upload dong, moso di local sech.
ni buat upload image http://share.delphi-id.org/

more 16 years ago
LuriDarmawan
@alvonz: lah kok gambar errornya gak muncul gmn caranya yahtuh.. sudah di jawab sama @ImanD
more ...
- Pages:
- 1
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- instalasi 3rd komponen
by grounders in Hal umum tentang Pascal Indonesia more 19 years ago - Menampilkan HARI sesuai hari di Komputer
by itoru in Hal umum tentang Pascal Indonesia more 13 years ago - bikin keyboard sendiri, tdk bs insert karakter??
by imunk in Tip n Trik Pemrograman more 18 years ago - skripsi multimedia dengan delphi
by mizanoct in Multimedia & Graphic Enhancement more 16 years ago - [HELP] security Table MyIsam ..
by rehmoe in MySQL more 17 years ago - auto refresh record/record yang di update saja?
by oloan_ac in Hal umum tentang Pascal Indonesia more 15 years ago - butuh saran untuk tugas kuliah aku
by R960XT in Enginering more 18 years ago - TLogin 1.0 Standard Edition is now avaliable!
by DelphiExpert in Komersial more 17 years ago - Cara Memanggil File pada delphi
by ilhuna in Lain-lain more 13 years ago - cetak model kolom dengan RawPrinter
by sandy in Reporting more 17 years ago