Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / MFC
Article

Perforated Tape Toolbar

Rate me:
Please Sign up or sign in to vote.
4.60/5 (4 votes)
26 Jan 2000 110.6K   1.6K   20   13
A spectacular variation on toolbars
  • Download demo project - 31 Kb
  • Download source files - 4 Kb
  • Sample Image - TapeToolBar.gif

    Introduction

    This is an alternative to the standard toolbar control. To use it, just replace your CToolBar objects with CTapeToolBar objects - easy as that!

    When you call CTapeToolBar::SetTape() the toolbar is transformed into a ticker-tape style toolbar, with moving perforations and toolbar buttons.

    Why would you use it?

    No - the question is "why would you not use it". Sure - it may not be the most practical toolbar, with users having to chase the buttons across the bar - but it does look very cool.

    CTapeToolBar has the following methods:

    // Set/Get the width of the perforations
    void SetPerfWidth(int iPerfWidth = DEFPERFWIDTH);
    int GetPerfWidth();
    
    // Set/Gets the time between button movements (milliseconds)
    void SetTapeTimeOut(int iTapeTimeOut = DEFTAPETIMEOUT);
    int GetTapeTimeOut();
    
    // Set/Gets the time between perforation movements (milliseconds)
    void SetPerfTimeOut(int iPerfTimeOut = DEFPERFTIMEOUT);
    int GetPerfTimeOut();
    
    // Set/Get the distance between perforations
    void SetPerfInt(int iInt = DEFPERFINTERVAL);
    int GetPerfInt();
    
    // Set/Get the whether the toolbar is normal or "taped"
    BOOL GetTape();
    void SetTape(BOOL bTape = TRUE);

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralCool. Good on You Pin
    Fransiscusherry11-Oct-05 1:21
    Fransiscusherry11-Oct-05 1:21 
    GeneralKewl Pin
    ColinDavies29-Jun-02 21:45
    ColinDavies29-Jun-02 21:45 
    This is creative and in a class of its own.
    Too many articles here at CP are for things that are useful !
    But this Perforated ToolBar is ART
    Well done.Smile | :)

    Regardz
    Colin J Davies


    Sonork ID 100.9197:Colin



    More about me
    Smile | :)

    GeneralIt *IS* cool Pin
    Lisa12-Sep-00 16:22
    Lisa12-Sep-00 16:22 
    GeneralI Like it! You just need... Pin
    PhartPhace16-Jul-00 19:32
    PhartPhace16-Jul-00 19:32 
    GeneralRe: I Like it! You just need... Pin
    Nigel Atkinson25-Apr-05 16:54
    Nigel Atkinson25-Apr-05 16:54 
    Generalarticle Pin
    Tim Henley12-Apr-00 9:59
    Tim Henley12-Apr-00 9:59 
    GeneralThis should be placed under Codeproject NDA.. Pin
    Peter19-Jul-00 16:47
    Peter19-Jul-00 16:47 
    GeneralThis article Pin
    Chris Maunder22-Feb-00 18:44
    cofounderChris Maunder22-Feb-00 18:44 
    GeneralRe: This article Pin
    Jeremy Davis22-Feb-00 22:16
    Jeremy Davis22-Feb-00 22:16 
    GeneralI think I understand... Pin
    Steve Carleton12-Feb-00 6:47
    sussSteve Carleton12-Feb-00 6:47 
    GeneralCool - not bloody likely Pin
    Member 1413854-Feb-00 8:50
    Member 1413854-Feb-00 8:50 
    Generalnot very 'cool' Pin
    jean Poche27-Jan-00 20:46
    sussjean Poche27-Jan-00 20:46 
    QuestionIs it design only? Pin
    Uwe Keim27-Jan-00 19:42
    sitebuilderUwe Keim27-Jan-00 19:42 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.