CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2019
    Posts
    8

    How are these controls created ?

    Hello
    I wonder if anyone know in what language these tab controls are created and if they are owned-drawn or standard of any language ? There is no such controls in MFC or Win32 by default, notice the red indentation on right-bottom of tab text Name:  66nB6fb.jpg
Views: 271
Size:  39.4 KB

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: How are these controls created ?

    Not sure what you mean (which control/window)...
    Is it a tab control (CTabCtrl/CMFCTabCtrl)? Is it a tabbed view? Something else?
    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2019
    Posts
    8

    Re: How are these controls created ?

    I mean the standard tab control in mfc and win32 or any other IDE i tried, does not have indentation with red as i circled in picture.
    Could it be owner drawn or maybe custom made control from scratch in win32 ?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: How are these controls created ?

    What is "indentation with red ... in picture"?
    I only see your red text in the text box.
    Victor Nijegorodov

  5. #5
    Join Date
    Mar 2019
    Posts
    8

    Re: How are these controls created ?

    Notice under tab text there is an indentation with red which says "2" after "Articles"
    I want to know how he painted the small indentation over tab text.
    The program is called "MetaTrader". Any idea in what language it was designed the UI ?

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: How are these controls created ?

    I have no idea what what that program is, however you could use Spy++ to get some info about the widows/controls that it uses (if any).
    You could also look at the program properties.

    Besides, there is not a problem to implement custom/owner draw in MFC tab control, so you'll be able to draw anything you want to.
    Victor Nijegorodov

  7. #7
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: How are these controls created ?

    As VictorN said, you can customize the look using custom drawing or owner drawing.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  8. #8
    Join Date
    Mar 2019
    Posts
    8

    Re: How are these controls created ?

    I came myself to conclusion that only by owner-drawing can this be achieved.
    I thought maybe c# or wpf have such controls in stock. It takes thousands of lines of codes to achieve these effects in pure win32

  9. #9
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: How are these controls created ?

    Quote Originally Posted by Valerianel View Post
    [...] It takes thousands of lines of codes to achieve these effects in pure win32
    Well, using the "thousands" word here is a little bit exaggerated.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  10. #10
    Join Date
    Mar 2019
    Posts
    8

    Re: How are these controls created ?

    I have found similar tabs in a project on github called mCtrl, i have just started to analyze the code and make something similar as i want and showed in picture that i attached. I noticed just the tabular implementation has 3350 lines of code in pure win32. I always thought if people coding these UI are really crazy to implement thousands of lines of custom code just for few controls or if there are just already out-of-box components

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

Featured