Arsip: NO Mouse
more 18 years ago
brodien
hallo semua ...nya ,,,
===============
saya lag i buat aplikasi ..menunya pake navbarny a devexpress
critanya gini ..
menu udah jalan navbaritem.click nya udah ok semua ..
but saya mau aplikasi itu minim pake mouse ..
jadi saya mau panggil lewat no yang saya masukkkan di tedit
===
procedure TFormmain.Button1Click(Sender: TObject);
var
comp:tcomponent;
begin
comp:=formmain.FindComponent('dxNavBar1Item'+edit1.Text);
if Assigned(comp) then
begin
if comp is TdxNavBarItem then
(comp as TdxNavBarItem)...?<==(disini biar bisa .click? gimana ya)
end;
end;
atao cara lain lah asal bisa panggil nay dari tedit itu
===
nanya lagi klo aku punya format angka
123456789
tedit.onexit biar dia jadi 1.234.567.89 format float nya gimana ya ...
terimakasi banyak .....
pengeran sing mbales ..........
nb:
klo aku bikin report pake rave ..pas program di close sering nyangkut ya
maksudnya form udah ngeclose tapi di task manager prosesnya masih ada ...????? :roll:
more 18 years ago
arieq
1. Udah coba langsung pake method click nya dari menu itu ?
procedure TFormmain.Button1Click(Sender: TObject);
var nomor : integer;
begin
nomor := strtoint(edit1.text)
case nomor of
1 : dxNavBar1Item1.click;
2 : dxNavBar1Item2.click;
......
2. gunakan fungsi format aja, return value nya kan udah tipe string
OnExit :
edit1.text := format ('%0.0n', );
more 18 years ago
brodien
format float nya gak bisa tuh pak
maksud nya gini
misal 1234556789
onexit dia jadi 1.234.567.89
bukan 123.456.789 jadi dua angka isian terakhitr adalah di anggap desimal
dxnavbaritem.click nya juga belum bisa
help dung........ :roll:
more 18 years ago
arieq
1. Kalau tidak bisa dengan method click, panggil aja nama procedure dari menunya, sama aja kan....
misalkan nama procedure ketika kita mengklik dxnavbaritem1 adalah dxnavbaritem1click dst :
procedure TFormmain.Button1Click(Sender: TObject);
var nomor : integer;
begin
nomor := strtoint(edit1.text)
case nomor of
1 : dxNavBar1Item1click(self);
2 : dxNavBar1Item2click(self);
......
2. Digit 2 terakhir selalu dianggap desimal, berarti bagi aja dengan angka 100 :
OnExit :
edit1.Text := format ('%0.2n', );
more ...
- Pages:
- 1
reply |
Report Obsolete
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
- Cara mengetahui database yang akan di Create sudah ada?
by onsir in MySQL more 17 years ago - *.dcu
by nurez in Tip n Trik Pemrograman more 17 years ago - macro di word
by xerion in Tip n Trik Pemrograman more 17 years ago - Cara koneksi dari komputer ke client pake komponen zeos ???
by doditali in Network, Files, I/O & System more 18 years ago - Aplikasi modular
by luckynvic in Enginering more 17 years ago - Script query simpan file foto ke MySQL
by boediman in MySQL more 16 years ago - Program Buat Koneksi jarak jauh....
by juan81 in Network, Files, I/O & System more 18 years ago - Kelebihan masing-masing trigger berikut ini apa aja ?
by Random in MsSQL more 17 years ago - database (suspect) ???
by flamade in MsSQL more 17 years ago - Produksi Jaket Delphi
by yayaretina in Moderator Only more 15 years ago