Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container causes refresh problem
Message
 
To
28/09/1997 22:00:38
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00052009
Message ID:
00052098
Views:
21
>>>You're ok so far. We can also add that the name of the container is also Message. :) So, from an external point of view it may look like this: ThisForm.Message.Message.Refresh().
>>
>>>The code is in the NodeClick(). I have the following:
>>>
>>>LPARAMETERS node
>>>Node.Selected=.T.
>>>This.Parent.ShowInfo(Node.Key,Node.Index)
>>>
>>>Then, the ShowInfo() method is dealing with various thing. The last 2 lines are:
>>>
>>>*This.Message.SelStart=1
>>>This.Message.Refresh()
>>>
>>>As you see, I put a comment to avoid the bug.
>>
>>Michel, I may be confused by 2 layers both named MESSAGE, but it seems to me you're putting your SelStart in the container, not in the editbox. Try again putting in the entire hierarchy thisform....message.message.selstart = 1 (or 0 as Gerald suggests).
>
>The upper code is executed in a method of the container Message. So, this represent Message and .Message is the Editbox.
>
>In an email to Paul, I just decided to define the container as a form class instead. By that, I will get rid of the container and a lot of problems. An hour of work which will worth it.
>
>Thanks.

OIC
Glad you got it working.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform