Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current control
Message
From
01/10/1998 12:47:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00142885
Message ID:
00142902
Views:
31
>>>THISFORM.PageFrame1.Page1.cmdAdd1.Enabled = !THISFORM.PageFrame1.Page1.cmdAdd1.Enabled
>>>
>>>I do not know what storing .t. of .f. will gain you. I also don't see the benefit of disabling a button on a page the user can no longer see unless they reactivate the page, at which point you re-enable the button anyway. If the button was on the form instead of the page, disabling/enabling becomes relevant.
>>
>>Actually, it's a series of command buttons some of which are used by both pages but not all. I found it much more user friendly doing it this way.
>
>Ahh. Are you *floating* the buttons over the page frame instead of dropping them on a specific page so they are visible to all the pages? Or dropping them on the form instead of the pageframe?
>
>I think you would be better served by basing the Enabled property of your buttons on PageFrame1.ActivePage property [ IF ...ActivePage = 1 ]. You could place this in the refresh method of your buttons and call it from the Activate method of the pages [ThisForm.Button1.Refresh()].

Good idea. I'll try it now. Thanks

Bill
William Chadbourne
Senior Programmer/Analyst
State of Maine - DAFS App Team

Oracle - When you care enough to use the very best!!
Previous
Reply
Map
View

Click here to load this message in the networking platform