CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #5
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: draw label caption text as the inverse of the underlying form?

    mmmmhhhhh. it's close, but not quite there..

    vb_da_best, i know why you suggest what you do; the text percentage is overpainted by a rectangular shape and as the shape passes over the text, it is inverted.. it cant be used for what i want thought, because it is the shape that is inverting rather than the text.. i want text to invert over a picture :/

    cimperiali's method is close, but uses a hotspot per letter, and requires painting messages per character.. it would take a long time to write the code that types properly kerned text.. hrmm

    ive slapped a background picture on my form, and drawn a solid Shape onto the form, then set the pen style to 6 - Invert (its the same as Not Xor) and the shape renders perfectly, the inverse of what is under it! however, i cannot find ANY way of making this work for anything other than a Shape, even though the help text indicates that DrawMode is applied to all objects. Ive tried Form1.Print "Some text" but the text is not drawn with inverse on, even though the form's drawmode is set to Invert

    ..

    so on we quest...
    Last edited by cjard; June 9th, 2005 at 11:15 AM.
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured