Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: George Kelly
  Where is George Kelly?
 Dromore
 United Kingdom
 George Kelly
 Tags
Subject: RE: Taking advantage of larger screen resolutions
Thread ID: 83768 Message ID: 120136 # Views: 37 # Ratings: 0
Version: Visual FoxPro 7 Category: General VFP Topics
Date: Monday, January 29, 2007 3:31:13 PM         
   


> > > > "This looks like a very good idea for new projects..."
> > > >
> > > > George,
> > > >
> > > > When you have the sizer that you want, why not retrofit your old forms. Create your new form class (inlcuding the sizer) and then open your form as a table and change the form's classlib and class name:
> > > >
> > > > USE [Path2\MyForm.SCX] IN 0 EXCL ALIAS MyForm
> > > > SELECT MyForm
> > > > LOCATE FOR BaseClass = [Form]
> > > > REPLACE Class WITH [MySizerFormClassName], ;
> > > >         ClassLoc WITH [FulPath2\MyBaseClassLib.VCX]
> > > > USE IN SELECT([MyForm])
> > > > 

> > > >
> > > > With VFP, just about everything is a table. Using ADIR() you could write a little program that looped through all of the forms in you Forms directory and change the class and classlib to your new new sizerform class.
> > > >
> > > >
> > > > Ken
> > > > You shall know the truth - and the truth shall set you free. (John 8:33)
> > >
> > > This is real good for application wide changes Ken!
> > > Question:
> > > Is it OK to insert "records" e.g. Command buttons
> > > If yes, What are the rules for assigning values for UniqueID and timestamp.
> > >
> > > George
> >
> > George,
> >
> > To tell you the truth, I have never even attempted inserting a record for a command button. I suppose you could as this is just another table. I normally only hack a form when this is the only way to do something. If I want to add a command button, I do it visually.
> >
> > Ken
> > You shall know the truth - and the truth shall set you free. (John 8:33)
>
> I've done a few tests
> Appending a record( button) puts the record at the END of the table, AFTER the COMMENT record.
> To open visually, it appears that the last record in the table must be the COMMENT record.
> First attempt made the form un-usable visually, so VERY dangerous.
>
> This technique worked though:
> Used INSERT command to add my new button record
> Located the the COMMENT record and did a "scatter memvar memo"
> Then deleted it
> Then: insert into myform from memvar
> Then: PACK
>
> The idea was to get the COMMENT record to be the last record.
>
> However, I'm not at all confident enough to use this on my live forms.
> Particularly, the other problem remains: What values to assign to UniqueID and Timestamp in records manually added??
>
> I'm playing with "less adventurous" exercises:
> searching and replacing code in methods
> inserting code into methods
> Its going good
>
> Thanks for the pointer to get going on this Ken
>
> George

George,

Most welcome.

If you get the whole "INSERT INTO MyForm.FRX ..." thing figured out, that would make a great topic for an article. (Hint, hint, hint.)

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

COMPLETE THREAD

Taking advantage of larger screen resolutions Posted by George Kelly @ 12/12/2005 5:19:12 PM
RE: Taking advantage of larger screen resolutions Posted by Eric den Doop @ 12/12/2005 5:34:51 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/13/2005 5:42:03 PM
RE: Taking advantage of larger screen resolutions Posted by Eric den Doop @ 12/13/2005 5:47:15 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/13/2005 6:00:58 PM
RE: Taking advantage of larger screen resolutions Posted by Dale Dedoroy @ 12/13/2005 11:03:46 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/14/2005 1:39:39 AM
RE: Taking advantage of larger screen resolutions Posted by Dale Dedoroy @ 12/14/2005 6:00:28 AM
RE: Taking advantage of larger screen resolutions Posted by Frank Cazabon @ 12/9/2006 6:40:31 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/10/2006 8:37:43 PM
RE: Taking advantage of larger screen resolutions Posted by Frank Cazabon @ 12/11/2006 2:14:38 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/11/2006 3:46:23 PM
RE: Taking advantage of larger screen resolutions Posted by Soykan OZCELIK @ 12/7/2006 1:01:41 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/7/2006 10:20:15 AM
RE: Taking advantage of larger screen resolutions Posted by kevin woods @ 12/7/2006 11:42:03 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/21/2007 12:11:59 AM
RE: Taking advantage of larger screen resolutions Posted by Mike Yearwood @ 1/20/2007 1:44:11 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/20/2007 11:49:10 PM
RE: Taking advantage of larger screen resolutions Posted by Steve Hanlan @ 1/22/2007 11:16:48 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/22/2007 11:32:54 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/23/2007 1:40:56 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/23/2007 2:01:54 AM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/23/2007 2:21:53 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 11:07:58 AM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/29/2007 1:06:17 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 2:22:41 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/29/2007 3:31:13 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 3:50:23 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/29/2007 4:12:41 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 6:45:26 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 5:47:10 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/30/2007 1:34:06 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 2:15:47 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/30/2007 3:52:54 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 5:09:35 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 1:37:29 AM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 7:05:55 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 11:11:01 AM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 1:57:16 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 3:41:42 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 3:56:37 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 4:55:03 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/31/2007 5:04:43 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 8:11:57 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/31/2007 8:32:47 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 2/1/2007 12:23:07 AM