David Crooks wrote:
I have a textbox class and I want to reassign the class programmatically
to another textbox class. Any ideas? TIA!
Does Rick Schummer's HackCX address this need?
--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"
The advantage of this approach is that you can have (for example) a
container.value method that can return/set the correct textbox without
you having to worry about the textbox names etc. This abstraction makes
using the controls much easier.
--
Michael Hawksworth
Visual Fox Solutions
[EMAIL
Similar to the container approach, if I have more than 1 or 2
controls to swap out, I'll use an invisible pageframe, and just show
the appropriate page as necessary. Much easier than setting visible
and / or enabled for all the different controls. FYI - the pageframe
is made by having no border
I use a container to create a textbox with caption,
search/add/validation error etc icons. You could take this approach and
just have two textboxes in the container and write code to swap between
them. This would make managing the change and form much easier.
--
Michael Hawksworth
Visual Fox
On Jun 30, 2006, at 1:04 PM, David Crooks wrote:
Or put one on top of the other and selectively make them .enabled and
.visible as needed.
Yes, that is the solution I went with. Thanks!
I saw that Ted posted the same thing. Weird thing was that I sent it
3 hours before it showed up on
On Friday, June 30, 2006 11:08 AM Ken Kixmoeller wrote:
> Or put one on top of the other and selectively make them .enabled and
.visible as needed.
Yes, that is the solution I went with. Thanks!
David L. Crooks
___
Post Messages to: ProFox@leafe.c
ou edit the vcx. Standard warnings apply.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Crooks
Sent: Friday, June 30, 2006 10:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Reassign a class to another one
On Friday, June 30, 2006 10:27 AM Vassilis Aggelako
> I have a textbox class and I want to reassign the class programmatically
> to another textbox class. Any ideas? TIA!
>
> David L. Crooks
>
Oops - sorry, I missed the programmatically part.
Something like:
USE .vcx
LOCATE FOR $ Class
IF FOUND()
REPLACE Parent WITH '
COMPILE CLASSLIB .
If you will have access to the .vcx @ runtime, you can open it like a
dbf, and change the class & classloc fields as needed,
programmatically just as you would manually. Be aware that you'll
prob. need to make sure no classes are in memory hosted in that .vcx.
If you've embedded the class into
>
> I have a textbox class and I want to reassign the class programmatically
> to another textbox class. Any ideas? TIA!
>
> David L. Crooks
>
Sure, use the redefine button in the class browser. It's the second from
the right.
Regards,
Jim
___
On Jun 30, 2006, at 9:50 AM, Ed Leafe wrote:
You'll have to create another textbox from the new class, and then
assign any modified props to that new object, and then destroy the
original object.
Or put one on top of the other and selectively make them .enabled
and .visible as needed.
On 6/30/06, David Crooks <[EMAIL PROTECTED]> wrote:
I obliviously wasn't very clear.
Never were truer words spoken.
I have a form with a textbox that is
using a class. Now I want assign it to another class that is read-only.
What does that second sentence mean? Do you really just want to
ED]>
To: "ProFox Email List"
Sent: Friday, June 30, 2006 6:01 PM
Subject: Re: Reassign a class to another one
Forms are DBF Files too!
Ok. I'll try to be better this time.
0. BACKUP YOUR FORM (SCX/SCT files)
Try in the command window:
1. USE .scx in 0
2. Browse
you see all
)
3. Look in the column OBJNAME until you reach your Textbox.
4. Replace CLASS with
5. Replace CLASSLOC With
-Vassilis
- Original Message -
From: "David Crooks" <[EMAIL PROTECTED]>
To: "ProFox Email List"
Sent: Friday, June 30, 2006 5:43 PM
Subject: RE:
On Jun 30, 2006, at 10:43 AM, David Crooks wrote:
I obliviously wasn't very clear. I have a form with a textbox that is
using a class. Now I want assign it to another class that is read-
only.
Unfortunately, the class property is read-only so I need a way around
it. Thanks!
Textboxes don'
On Friday, June 30, 2006 10:27 AM Vassilis Aggelakos wrote:
>Keep in mind that VFP Classes (vcx) are pure dbf files.
>You can browse them with:
>USE in 0
>* locate record
>Replace BASECLASS With
I obliviously wasn't very clear. I have a form with a textbox that is
using a class. Now I want as
: "David Crooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2006 5:02 PM
Subject: VFP7: Reassign a class to another one
I have a textbox class and I want to reassign the class programmatically
to another textbox class. Any ideas? TIA!
David L. Crooks
I have a textbox class and I want to reassign the class programmatically
to another textbox class. Any ideas? TIA!
David L. Crooks
___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free versi
18 matches
Mail list logo