Page 2 of 2 FirstFirst 12
Results 41 to 60 of 60

Thread: [RESOLVED] [2005] Scrolling Label Text

  1. #41
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    267

    Re: [RESOLVED] [2005] Scrolling Label Text

    lol .. i'm afraid your right .. changed .. and scrolling is good now .. text is also updated

  2. #42
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    267

    Re: [RESOLVED] [2005] Scrolling Label Text

    off topic:

    what would happen if the xml is saved at the same time that the xml script from above is reading the file .. would the scroll text/interface hang?

    i should make a script to test this ..

  3. #43

    Thread Starter
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: [RESOLVED] [2005] Scrolling Label Text

    Not really sure. You could get an Access Denied on either side.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  4. #44
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by obi1kenobi
    Great control! I think you should post it in the CodeBank!

    @jmcilhinney: The scrolling text link in your signature is missing the C# link.
    Yeah, that's on purpose because I haven't written the C# version yet. Now's as good a time as any I suppose...
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #45
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by jmcilhinney
    Yeah, that's on purpose because I haven't written the C# version yet. Now's as good a time as any I suppose...
    ...Done.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #46
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    267

    Re: [RESOLVED] [2005] Scrolling Label Text

    when i use larget text with quit a few chars .. and the texts is totally away on one side ... it takes quit some time before the text appears again on the other side .. the marquee control is empty for a few seconds .. any ideas? is this coded in the marquee control itself?

  7. #47

    Thread Starter
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by Amien
    when i use larget text with quit a few chars .. and the texts is totally away on one side ... it takes quit some time before the text appears again on the other side .. the marquee control is empty for a few seconds .. any ideas? is this coded in the marquee control itself?
    Is that directed to me or jmcilhinney?

    If it is towards me it probably has something to do with the math on the OnPaint event. I'll take a look at it tomorrow.

    What font and size are you using?
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  8. #48
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by .NetNinja
    Is that directed to me or jmcilhinney?
    Yeah, especially in long threads it's a good idea to quote the post you're referring to. Even if you think it's obvious that you're referring to the one directly above, there's no guarantee that someone else won't slip a post in just before you.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #49
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    267

    Re: [RESOLVED] [2005] Scrolling Label Text

    your right .. the message was too .NetNinja
    font is calibri .. size 36

  10. #50

    Thread Starter
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by Amien
    your right .. the message was too .NetNinja
    font is calibri .. size 36
    I used one that was around 85 characters long. With the font details your provided and I am not seeing a delay. What is the size of the control? Do you sample string you are using?
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  11. #51
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    267

    Re: [RESOLVED] [2005] Scrolling Label Text

    size: 1270; 74

    i'm using about 220 chars .. the more chars i use the longer the cap. When i use only a few chars .. i have no problem. looks like the longer the string .. the longer the cap
    Last edited by Amien; Nov 25th, 2008 at 09:04 AM.

  12. #52

    Thread Starter
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: [RESOLVED] [2005] Scrolling Label Text

    I'm honestly not seeing an issue with it. I just did a sample string with 220 characters with no problem.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  13. #53
    Member
    Join Date
    Feb 2008
    Posts
    50

    Re: [RESOLVED] [2005] Scrolling Label Text

    Hope you don't mind i changed it up a bit to scroll up and down.

    thanks a lot man.

  14. #54
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: [RESOLVED] [2005] Scrolling Label Text

    how about a 'marquee' inside of a listview cell or datagridview cell?
    this would be sweet. then you could set the width of the column to avoid nasty scrollbars and if the text extends past the visible area, then it marquees.

  15. #55
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: [RESOLVED] [2005] Scrolling Label Text

    Good idea but perhaps it would be better suited to WPF since the marquee is quite a performance hog on older machines... It used 20% CPU on our old school computers :S
    Please rate helpful ppl's posts. It's the best 'thank you' you can give

  16. #56
    Addicted Member
    Join Date
    Jan 2008
    Posts
    162

    Re: [RESOLVED] [2005] Scrolling Label Text

    Hi all

    can anyone post the sample app please how to use it ??


    thx

  17. #57
    New Member
    Join Date
    Jun 2008
    Location
    Bedford UK
    Posts
    3

    Re: [RESOLVED] [2005] Scrolling Label Text

    Quote Originally Posted by .NetNinja View Post
    I'm honestly not seeing an issue with it. I just did a sample string with 220 characters with no problem.
    So, I know this thread has been basically dead for over a year, but I've just stumbled across it; it's a great control, and I'm looking to accomplish something similar to what this does, with a few alterations...

    I need two text fields, a "header" and a "body" (a bit like on the TV News, where "BREAKING NEWS " is the header and then "As usual, nothing newsworthy happened today" would be the body, but both in different colours.

    Any idea whether this could be accomplished with a few modifications to this control, or would I have to start from scratch?

    I've modified it to include (and concatonate) the header and body, but have got stuck on the different colours part.

    Sorry if this is dragging up an old thread, and making you have to rack your brains about this control again, I'm fairly new to Custom Control writing!

    Thanks

    DamoUK

  18. #58
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: [RESOLVED] [2005] Scrolling Label Text

    thats cool but how do you use this in your own app if you made a module/class with just the code to show the marque we could then import that file and use the function/sub??

  19. #59
    New Member
    Join Date
    Jun 2010
    Posts
    1

    Re: [RESOLVED] [2005] Scrolling Label Text

    Hi

    this is great, it fits in what i have to do.

    I have noticed one Bug that I think needs fixing.

    If you enter more Text than the Size of the textLabel, it gets truncated in the Marquee.

    Is this something that can be fixed.

    So if the Label is 200 characters and you enter 300 in the property. Its gets truncated when run.

    I plan to adopt it for a Multi screen enviroment, where I hope its can be strectched asone continious scroll. It may not be an issue for me, but its does show up on a single screen

    Steve

  20. #60
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: [RESOLVED] [2005] Scrolling Label Text

    You might want to consider WPF for that, actually... Repeated multi-screen-size drawing on CPU is making me shudder just thinking about it
    Please rate helpful ppl's posts. It's the best 'thank you' you can give

Page 2 of 2 FirstFirst 12

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