Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar VCR buttons not refreshing open window
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00040692
Message ID:
00040766
Views:
37
>Remember, my toolbar has the skipping buttons, not the form, so issuing a THISFORM.REFRESH does not work. Also, any form can be open and used with the toolbar, so I can't say GOODFORM.REFRESH since I won't know which form is open.
Evan,

Your toolbar needs some way of knowing which form is current. A simple way of knowing is to use the _screen.activeform property. Secondly the toolbar should NOT be doing the skipping, it is not the master of the data. Instead have the toolbar buttons do something like this in their click;


_SCREEN.ActiveForm.GoNext()

Make sure you form class has a GoNext, GoPrevious etc. method and in the GoNext (for example) you would;

SKIP
THISFORM.Refresh()

This will work becasue the code is in the fomr not the toolbar, the toolbar just calls the form's code and the form is responsible for its data.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform