Menu

#1092 Automatically scroll at the end of the build messages log

Undefined
applied
None
Patch
2021-07-01
2021-05-07
bluehazzard
No

This patch will scroll the build messages automatically at the end of the messages, except if you scroll manually to a other line. It will continue the automatic scroll if the scrollbar is at the bottom again.

The current behaviour is, that the build message pane stays always at the top, until the build process is finished

Tested only on windows at the moment

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2021-06-29

    Please fix the formatting. You can remove the if also. And just push it, if people complain we could put an option about it.

     
  • bluehazzard

    bluehazzard - 2021-06-30
    • status: open --> applied
     
  • bluehazzard

    bluehazzard - 2021-06-30

    in revision: r12481

    i left the if in the code, because the jumping is annoying as hell when you want to read log messages during the build process

     
  • Teodor Petrov

    Teodor Petrov - 2021-06-30

    I meant you can replace:

    bool flag=true;
    if (cond)
         flag=false;
    

    with:

    const bool flag=!cond;
    
     
  • Teodor Petrov

    Teodor Petrov - 2021-07-01

    Fails to build on linux when targeting wxWidgets 3.0.5:

    loggers.cpp: In member function virtual void ListCtrlLogger::Append(const wxString&, Logger::level):
    loggers.cpp:371:19: error: class wxListCtrl has no member named IsVisible
      371 |     if (!control->IsVisible(idx -1))
          |                   ^~~~~~~~~
    

    It seems IsVisible has been added in 3.1.3: https://docs.wxwidgets.org/trunk/classwx_list_ctrl.html#a2afa655c59b4e0b36ca1ebdd3b629ba2

     

Log in to post a comment.