Results 1 to 6 of 6

Thread: Painting on SMART - PLEAS ASSIST :)

  1. #1
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Exclamation Painting on SMART - PLEAS ASSIST :)

    Hello all. My question is simple, I hope the answer is as well. I have a banner at the top of my script. I want to paint text over this banner. It's used as a progress report so the text will be updating very often. I do not want to clear the canvas cause I don't want to repaint the banner every 10th of a second. The text over-writes the previous text making it impossible to read.

    Solution?

    EDIT: PLEASE*

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    Hello all. My question is simple, I hope the answer is as well. I have a banner at the top of my script. I want to paint text over this banner. It's used as a progress report so the text will be updating very often. I do not want to clear the canvas cause I don't want to repaint the banner every 10th of a second. The text over-writes the previous text making it impossible to read.

    Solution?

    EDIT: PLEASE*
    That's going to be really difficult as you only have 1 DC to work with (The debug DC). The only way I can think of is to create a transparent form, set parent to Smart and paint on the form.

    Other than that, you might find yourself doing exactly what you don't want to have to do.

    If you want, you can also try making an interactive GUI: http://villavu.com/forum/showthread.php?t=65657


    EDIT: Another option is to Crop a part of the bitmap that will have your text, Wipe that portion of the old Text off of Smart's DC and just paint back that portion with the new text on top. Is there a reason you don't want to just repaint onto the DC? It doesn't take too much CPU. Also Smart won't draw when minimized so it shouldn't be much of a problem.
    Last edited by Brandon; 12-14-2012 at 10:39 PM.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jul 2012
    Location
    London
    Posts
    1,549
    Mentioned
    0 Post(s)
    Quoted
    86 Post(s)

    Default

    I see it's coming closer and closer to release date, if you need me again hit me with pm dude

  4. #4
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    My edgeville script, and any of flights ones have a good paint method, i dont understand it greatly though so you'd have to just copy it

    I think it does what your after, writes normal text over the image but doesent change the image?

    Edit - the fact brandon says its hard means i must have misuderstood what your trying to achieve, goodluck
    Last edited by DannyRS; 12-14-2012 at 10:40 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Take a look at my agility script, all you do is paint the banner once (or every time you log in due to smart restarting) and you just paint a small box over the old text and paint new.. simple aye

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Take a look at my agility script, all you do is paint the banner once (or every time you log in due to smart restarting) and you just paint a small box over the old text and paint new.. simple aye
    Yeah, i agree with you and brandon on this being the best option. Thank you!
    for now I'm just clearing and re-writing everything.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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