CTrackLookButton, An IE 3.0 style button

This is CTrackLookButton class like in IE 3.0 Download the sample and click on help about. The implemantation is a trivial like all buttons

Download Sample.



Comments

  • But I can't find botton.rc2 ! Why??

    Posted by Legacy on 01/02/2004 12:00am

    Originally posted by: songxinyan

    Please's tell me .What is I can do!

    Reply
  • SetWindowText()

    Posted by Legacy on 09/04/2002 12:00am

    Originally posted by: benx

    If SetWindowText() is called to change the title of
    the button, it will not display normally as the original
    text is not erased,

    I just added:
    pDC->FillSolidRect(rc, pDC->GetBkColor());
    in CTrackLookButton::DrawItem() and it worked well.

    Reply
  • good button tip

    Posted by Legacy on 09/13/2001 12:00am

    Originally posted by: jloc

    i study vc++ control and jpg, gif
    this tip help me

    thanks a lot

    Reply
  • Cool One

    Posted by Legacy on 08/07/2001 12:00am

    Originally posted by: Satak

    Cool One. Looks very good. The problem of focus as reported already is the only issue.

    Reply
  • Thanks a lot

    Posted by Legacy on 11/05/2000 12:00am

    Originally posted by: Christoph Platz

    Really cool! Thanks a lot!

    Reply
  • With 2 TrackLookButtons, one of them always has active focus. How can I change that?

    Posted by Legacy on 12/04/1999 12:00am

    Originally posted by: Erich Ruth

    I have two tracklookbuttons, IDC_NEXT and IDC_PREVIOUS in a CFormView. I use the following code to initialize these two push buttons.

    m_previous.LoadBitmaps(IDB_WHITEARROW,IDB_BLUEARROW,IDB_WHITEARROW);
    m_previous.SetTextAlignment(CTrackLookButton::AlignLeft);

    m_next.LoadBitmaps(IDB_WHITEARROW,IDB_BLUEARROW,IDB_WHITEARROW);
    m_next.SetTextAlignment(CTrackLookButton::AlignRight);

    When I compile the program, the m_previous button is activated and the m_next button is not even though the mouse is not even close to either one. Is there any way of changing the code so that neither button is initially active? So that the only way a push button can have focus is when the user moves the mouse over the push button?

    Please, any response you can give me will be greatly appreciated.

    Sincerely,
    Erich J. Ruth

    Reply
  • Some minor problems

    Posted by Legacy on 11/27/1999 12:00am

    Originally posted by: lei

    First of all, thanks very much for your effort! I think I'm a bit fussy. The following minor problems are only for you to consider, or improve... if you like.

    (1)
    If you click on one of the three bottom buttons, a message box pops up; and you close the message box by clicking on the OK button. You'll see that the button you just clicked on still has the focus, just as the mouse cursor's still in.

    (2)
    If you click on a button, keep the mouse button pressed, and drag the cursor to another button, then the second button is down. This is not the right behavior.

    (3)
    If you cover the dialog box by another application, and uncover it, the button you last clicked on is still up even though the cursor is not in.

    Reply
  • pkzipfix

    Posted by Legacy on 11/26/1998 12:00am

    Originally posted by: pkzipfix

    Some cool stuff you have done . 
    
    Works great in dialog boxes in CView inhereted classes as follows .

    int CTestView::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    CTracklookButton *mybutton;
    mybutton=new CTracklookButton();
    mybutton->Create("NULL",WS_CHILD WS_VISIBLE BS_OWNERDRAW BS_PUSHBUTTON
    ,CRect(x,y,x1,y1),this,IDC_TEST);
    mybutton->LoadBitmaps(IDB_ONE,IDB_TWO,NULL);
    mybutton->SetTextAlignment(CTrackLookButton::AlignBelow);

    }
    note:-
    when used with CFormView inhereted classes or CRecordview
    it fails to Load the bitmaps ;
    note the code will compile with no errors
    tried loading the buttons on the heap and stack with no luck .
    can you please comment.

    keep up the good work

    thanks .

    Reply
  • CTrackLookButton

    Posted by Legacy on 10/13/1998 12:00am

    Originally posted by: Asif Rashid

    There is an error in zip file. Since author did not save the path information with the zip, therefore I have to manually move bmp files and other resource files to res directory.

    But the output of the class was impressive.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: October 29, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this eSeminar, Gene Kim will discuss these survey findings and will share woeful tales of artifact management gone wrong! Gene will also share examples of how …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds