Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container Object in Grid??
Message
From
21/10/2000 10:08:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00432411
Message ID:
00432474
Views:
22
Yes Vlad,
I use the same technique to cheat :) However I had reasons not to mention here :
Unfortunately doesn't work with all types of containers ie: container has an activex control.
Worse I was lazy to sample it :)
One addition to your suggestion (I got it right but all readers might not) :
Dynamic* is evaluated for the visible rows. IOW 100 recs or 50000 recs doesn't matter.
Cetin

>Hi!
>
>2 years ago I made an application that shows status of row in grid in the container using colored shapes (red, blue, green and yellow). The worst thins was to make refresh of these indicators properly to data (logical flags in table). To refresh them I used function in the Dynamic... property expression. Whta is interesting is that this function called for each row in grid. Use of refresh or Visible=.T. for controls in container inside of such UDF refreshes control for each row in grid.
>
>HTH.
>
>>>Does anyone know if it is possible to have a container object that will display data from a grid object. The container object I have contains three text boxes and the grid column is bound to a CHAR field of a table that is a concatenation of three separate strings. An example is "AAC|BIL|CLN" What I am trying to do is to put the three strings into the text box of the container. Is this possible? Thanks.
>>>
>>>Regards,
>>>Kueh.
>>
>>Kim,
>>It's possible to have a container in grid column. What is hard is to make it behave as you want at times. If the textboxes inside the container doesn't have a controlsource you'll see that as one textbox is changed in a row, it changes in all rows. However if you bind them to controlsources then works as expected. At least you could create a dummy cursor and bind their controlsources to cursor's fields.
>>I suggest whatever type container is you're going to put there make it a class. Because it's hard to change something in container once it's put in a column (I mean it's harder to reach to PEM as hierarchy level gets deeper).
>>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