Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container causes refresh problem
Message
From
28/09/1997 22:00:38
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00052009
Message ID:
00052096
Views:
26
>>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform