Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Controls
Message
De
08/08/2001 04:49:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/08/2001 04:30:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00541129
Message ID:
00541131
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>Recordsource'u sonradan tanýmlanan bir grid'in columnlarýnýn veya textbox'larýnýn Method'larýna sonradan fonksiyon tanýmlamak mümkünmüdür ?
>(Orn: recordsource sonradan tanýmlanmýþ bir grid1.column1.textbox.click event'ýna sonradan fonksiyon atamak istiyorum.)
> Mümkünse bunu nasýl yapabilirim ?
>
> Cevabýnýz için þimdiden teþekkürler.

Merhaba Zeki,
Dogrudan yapamazsin - en azindan simdilik :(
Dolayli olarak yapabilirsin. Istedigin methodlari iceren controlu bir class olarak sakla. Ornegin :
with thisform.myGrid
 for each oColumn in .Columns
   with oColumn
      .NewObject('myText1','myClasses.prg')
      .Currentcontrol ='myText1'
      .Sparse = .f.
      .myText1.visible = .t.
   endwith
 endfor
endwith

*myclasses.prg
define myTextBox as TextBox
 procedure Click
 wait window nowait 'blah blah'
endproc 
enddefine
Ayrica recordsource'unu sonradan atasan bile eger bastan columncount belli ise bunu dogrudan design sirasinda yapabilirsin. Yalnizca recordsource atarken once 'hicbirsey'e kur :

.Recordsource = ''
.RecordSource = ....

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform