Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Controls
Message
From
08/08/2001 04:49:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/08/2001 04:30:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00541129
Message ID:
00541131
Views:
24
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
Previous
Reply
Map
View

Click here to load this message in the networking platform