-
May 26th, 2019, 03:20 PM
#1
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
-
May 27th, 2019, 03:00 AM
#2
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
-
May 27th, 2019, 04:45 AM
#3
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 ?
-
May 27th, 2019, 05:10 AM
#4
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
-
May 27th, 2019, 05:19 AM
#5
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 ?
-
May 27th, 2019, 09:28 AM
#6
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
-
May 28th, 2019, 12:50 PM
#7
Re: How are these controls created ?
As VictorN said, you can customize the look using custom drawing or owner drawing.
-
May 29th, 2019, 08:40 PM
#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
-
May 29th, 2019, 10:37 PM
#9
Re: How are these controls created ?
Originally Posted by Valerianel
[...] 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.
-
May 29th, 2019, 11:02 PM
#10
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|