Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ugur YILMAZ
  Where is Ugur YILMAZ?
 To: Paul Gibson
  Where is Paul Gibson?
 United Kingdom
 Paul Gibson
Subject: RE: Hidding certain control buttons
Thread ID: 288756 Message ID: 288804 # Views: 28 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Friday, December 24, 2010 8:41:32 AM         

> Is there a way of completely hiding certain control buttons without hiding them all like when you set ControlBox = .F.
> For example I would like to have a form with just a minimize button, no maximize button and no close button, I would really rather they were completely invisible rather than visible but disabled.
> I can easy get forms to display all the buttons but only enable the ones I want to give access to but I really want to be able to completely hide the non-functioning buttons.
> Any help is greatly appreciated.
> Thanks

"Name Rules" could be a solution for you!

I use my naming rules in my forms:

btnFilterName, btnfilterSirName, btnFillBirthDate etc...

And I need to make disable or invisible ( or another property ) a control then I use SETALL() method by ForEach in my Screen / window object

I hope "my way" could help you!

Amateur Programmer
VFP 9 SP2, Win7 64 Bit


Hidding certain control buttons Posted by Paul Gibson @ 12/23/2010 5:28:37 PM
RE: Hidding certain control buttons Posted by Carlos Alloatti @ 12/23/2010 5:45:30 PM
RE: Hidding certain control buttons Posted by Ugur YILMAZ @ 12/24/2010 8:41:32 AM