Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ObjToClient?
Message
From
26/01/2001 01:03:16
 
 
To
26/01/2001 00:52:44
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00467649
Message ID:
00468925
Views:
13
>Hi Fred,
>
>>It still all works as expected for me, I don't see any changes during/after the Init. What does the code in your init look like?
>
>This is driving me nuts - and I'm about ready to forget about it, since I'm not even planning to USE this at the moment. But I wanted to get back to you about it. I've tried to get things down to the basics:
>
>I am using the VFP base classes to create a form, and a container CLASS that contains text boxes - then create an object from the class on the form. I am only seeing the TOP value when I display the value of OBJTOCLIENT in the init of the form (I've removed all other code).

Not to drag this out or anything, but what do you mean you only see the Top value? The Left property isn't changing when you move the container? Or are you only moving just the Top?

>I just noticed that if I create a container directly in the form, then add a text box to the container, that works as expected. Also (maybe I'm just halucinating here), if I use the class mentioned above and move a textbox, so that it doesn't have the default value for TOP, that seems to work too!

What exactly do you have in your form Init? I have a form that has container, and in the container there's a TextBox, a Grid and a CommandButton. If I put this code in the form Init, I see the values change when I move the container and re-run the form.
wait window "text1="+transform(objtoclient(thisform.container1.text1,1))+" "+;
                     transform(objtoclient(thisform.container1.text1,2))+chr(13)+;
            "grid1="+transform(objtoclient(thisform.container1.grid1,1))+" "+;
                     transform(objtoclient(thisform.container1.grid1,2))+chr(13)+;
            "Command1="+transform(objtoclient(thisform.container1.command1,1))+" "+;
                        transform(objtoclient(thisform.container1.command1,2))
>
>Thanks for your help on this - I'm losing interest (and time!)...hope i never need to depend on this, because, I * think * I've seen some flaky things. It's too late on a Friday afternoon. J

It's only really late Thursday here. ;)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform