Re: Label BackColor - VFP8
From: Steve Meyerson (stevemeyerson_at_cox.net)
Date: 10/23/04
- Previous message: Sietse Wijnker: "Re: BindEvent()"
- In reply to: Craig Boyd: "Re: Label BackColor - VFP8"
- Next in thread: Craig Boyd: "Re: Label BackColor - VFP8"
- Reply: Craig Boyd: "Re: Label BackColor - VFP8"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 23 Oct 2004 12:36:20 -0400
Thank you Craig. I already used the _SCREEN.Themes=.F. on my app and
it worked ok and I'm not planning on converting any other of my apps
in the near future, so I'm going to stick with that for now.
However, I did learn from your post about a powerful and easy to use
tool. I tried it (Log Only) and it seems it would work interactively
ok without creating the table (TransBack.dbf) first. But I could see
where the table might help if the changes were numerous or complex.
Thanks again.
Steve Meyerson
On Sat, 23 Oct 2004 05:46:25 GMT, Craig Boyd <craig1442@mchsi.com>
wrote:
>If you still have access to VFP 6 or 7, I wouldn't do it in the runtime
>code at all. I would use the Visual Foxpro Transformer Application to
>change all the BackStyle properties of those labels to transparent (MS
>apparently removed the transformer from the VFP 8 install - I couldn't
>find it anyways - guess you're supposed to use the code reference tool now).
>
>Run the following code from the VFP 6 or 7 command window or a prg and
>then follow the directions I set out below it.
>
><code>
>
>CREATE TABLE C:\TransBack.dbf (Rule C(254))
>INSERT INTO transback (rule) VALUES
>("BackStyle | 0 | | *.scx | Label ")
>USE IN SELECT("transback")
>DO (HOME()+ "tools\transfrm\transfrm.app")
>
></code>
>
>Now, on the FILES tab of the transformer add in the folder that contains
>your form files, or you can selectively add scx, vcx, or pjx files as
>needed. Then, go to the RULES tab and open that table we just created.
> Now go to the LOG tab and click on the TRANSFORM button (don't worry
>nothing will get changed until you uncheck the CREATE LOG ONLY checkbox
>there) you're just testing it right now. It should show you all the
>labels that it is going to change once it completes the operation. Now,
>if you created subclasses you can use this too, but what's the point
>since you can just change your subclass BackStyle and it effects all the
>controls, so my bet is that you used VFP Base Label class. Now, when
>you are ready (got a good backup?), uncheck the CREATE LOG ONLY checkbox
>and click the TRANSFORM button and it will permanently change all the
>labels just like you went into each and every form and changed it yourself.
>
>Steve Meyerson wrote:
>
>> I'm converting from VFP6 to VFP8. The BackColor of all the labels are
>> now a darker shade than their Pages' BackColor. All colors are set to
>> default. The property sheet shows them to be exactly the same -
>> RGB(236,233,216).
>>
>> I tried .SetAll('BackColor',...Page1.BackColor,'Label'), but it had no
>> effect.
>>
>> VFP8 also seems to ignore any other label BackColor I try.
>>
>> What am I not doing her? Any clues? Thanks.
>>
>> Steve Meyerson
- Previous message: Sietse Wijnker: "Re: BindEvent()"
- In reply to: Craig Boyd: "Re: Label BackColor - VFP8"
- Next in thread: Craig Boyd: "Re: Label BackColor - VFP8"
- Reply: Craig Boyd: "Re: Label BackColor - VFP8"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|