Re: Label BackColor - VFP8

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve Meyerson (stevemeyerson_at_cox.net)
Date: 10/23/04

  • Next message: Craig Boyd: "Re: Label BackColor - VFP8"
    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


  • Next message: Craig Boyd: "Re: Label BackColor - VFP8"

    Relevant Pages

    • Re: Label BackColor - VFP8
      ... I would use the Visual Foxpro Transformer Application to ... >>change all the BackStyle properties of those labels to transparent (MS ... go to the RULES tab and open that table we just created. ... >>labels that it is going to change once it completes the operation. ...
      (microsoft.public.fox.vfp.forms)
    • Re: Label BackColor - VFP8
      ... If you still have access to VFP 6 or 7, I wouldn't do it in the runtime ... I would use the Visual Foxpro Transformer Application to ... go to the RULES tab and open that table we just created. ... labels that it is going to change once it completes the operation. ...
      (microsoft.public.fox.vfp.forms)
    • Re: Selecting a cell
      ... tab to the correct field and type the new number you want. ... > it into a custom label program to print price & description barcoded labels. ... > Dialogue, tab right 4 cells, type the number of labels - then CTRL-F etc. etc. ...
      (microsoft.public.excel.programming)
    • Re: How can I format label name as I loop through records?
      ... I'm using a tab control to ... > identify all the potential subform records, ... > I have created small 'marker' labels above each tab and want to make ...
      (microsoft.public.access.formscoding)
    • Re: flag notes on tab
      ... "Damon Heron" wrote: ... the labels, if you have room. ... What I'd like to be able to do is that from the main tab, ... I was able to somewhat "fix" my issue using a msgbox. ...
      (microsoft.public.access.formscoding)