Page 8 of 8 FirstFirst ... 5678
Results 281 to 304 of 304

Thread: NewTab: tab control for VB6

  1. #281

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    OK, please Mojtaba test now in Windows 7, it defaults the X to Marlett font now.

  2. #282
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    Hello. I checked in an old machine that I have with XP and the MS Mincho font is not installed.

    That image that you posted is from Windows 7 or from Windows 10?

    Because it is not only if the font is installed, but also if it supports that character. You are using Unicode 2715 that is very high. In older Windows versions, the font may exists but not including the upper characters.
    I said based on Microsoft
    Products that supply this font
    https://learn.microsoft.com/en-us/ty...list/ms-mincho

  3. #283
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    OK, please Mojtaba test now in Windows 7, it defaults the X to Marlett font now.
    successful
    Last edited by Mojtaba; Jan 27th, 2025 at 04:16 PM.

  4. #284
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,040

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Mojtaba View Post
    Eduardo, I found a solution to the problem
    as I said, this problem in Windows 7 is due to the lack of the Segoe MDL2 Assets font.
    Well, use another font called MS Mincho. It is installed by default on all systems from XP to 11.
    I put the character font X in the picture

    Attachment 194022

    This is the source code I wrote. Do you have the source code for the font icon selection above? If possible, just merge them together. Find out all the fonts and graphic parts that come with WINDOWS and create a new character mapping table or array.
    I want to use some icons that come with the operating system to complete the UI design of simple buttons, tab controls, and toolbars in a minimalist style. If the font can be converted to WMF, EMF vector graphics format allows for direct drawing on any computer, as some systems may lack certain fonts. Of course, the most beautiful ones ultimately belong to SVG color and transparent images, which I am currently researching.

    https://www.vbforums.com/showthread....-graphic-fonts
    Name:  SELECTICO_2.jpg
Views: 379
Size:  61.9 KB
    Last edited by xiaoyao; Jan 27th, 2025 at 09:44 PM.

  5. #285
    Addicted Member
    Join Date
    Feb 2022
    Posts
    217

    Re: NewTab: tab control for VB6

    Hi Eduardo
    Is there a way to attach a form to the Default (index 0) Tab in TDI Mode?
    thanks!

  6. #286

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Quote Originally Posted by taishan View Post
    Hi Eduardo
    Is there a way to attach a form to the Default (index 0) Tab in TDI Mode?
    thanks!
    Hi. You could just make not visible the first tab and add the form as any other:

    Code:
    Private Sub Form_Load()
        Form2.Show
        NewTab1.TabVisible(0) = False
    End Sub

  7. #287

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Updated again, fixed a bug.

    In TDI forms: there are two ways of making a tab/form not closable:
    1 - Set the ControlBox property of the Form to False.
    2 - Set the ShowTabCloseButton parameter in the TDIBeforeNewTab event to False.

    The recent fix was for the second option.

  8. #288
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by xiaoyao View Post
    This is the source code I wrote. Do you have the source code for the font icon selection above? If possible, just merge them together. Find out all the fonts and graphic parts that come with WINDOWS and create a new character mapping table or array.
    I want to use some icons that come with the operating system to complete the UI design of simple buttons, tab controls, and toolbars in a minimalist style. If the font can be converted to WMF, EMF vector graphics format allows for direct drawing on any computer, as some systems may lack certain fonts. Of course, the most beautiful ones ultimately belong to SVG color and transparent images, which I am currently researching.
    Of course, I don't think this is related to newtab
    It is better to discuss this in your own post
    I will answer in your post
    Last edited by Mojtaba; Jan 28th, 2025 at 09:25 AM.

  9. #289
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,040

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Mojtaba View Post
    Of course, I don't think this is related to newtab
    It is better to discuss this in your own post
    I will answer in your post
    1.5mb, tab control, I hope to use it to achieve vector graphics, which can reduce the size of the occupation.

  10. #290
    Addicted Member
    Join Date
    Feb 2022
    Posts
    217

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    Hi. You could just make not visible the first tab and add the form as any other:

    Code:
    Private Sub Form_Load()
        Form2.Show
        NewTab1.TabVisible(0) = False
    End Sub
    Great, that worked perfectly.

    Just downloaded the latest version.

    The continued improvements in TDI mode are excellent, and I'd venture to say the control is 99% rock solid.

    The TDI mode has allowed me to a reduce a monster 170kb main form by moving that (previous) Tab's controls, events, and logic into new separate managable forms --- a great contribution to my sanity, and making the migration to Python that much easier for OSX.

    Question: In TDI mode, what is the best way to get/set the (TabData / TabIndex / Other property) so when the user Reorders Tabs, we can update Tab (form) captions for localization at runtime?

    Also: What is the best way to set the user preferred tab order at App/Form load?

    Thanks!

  11. #291

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    OK, here is a sample project.
    Attached Files Attached Files

  12. #292
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Hello Eduardo
    There is a slight problem with exiting the form, when you want to close a form with a user confirmation message
    There are two options to exit or stay in the software. If the user confirms that there is no problem to exit, but if he refuses to exit the form
    The active tab is replaced, and the content of the form is not displayed
    Watch the movie :



    I also put the sample project :
    Attached Files Attached Files
    Last edited by Mojtaba; Mar 1st, 2025 at 05:49 PM.

  13. #293

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Hello Mojtaba, thanks for providing the sample project.
    Please test now, the ocx has been updated.

  14. #294
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    Hello Mojtaba, thanks for providing the sample project.
    Please test now, the ocx has been updated.
    The relocation of tabs has been fixed. But the form contents still disappear

  15. #295

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Mojtaba View Post
    The relocation of tabs has been fixed. But the form contents still disappear
    OK, updated again.

  16. #296
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    OK, updated again.
    Thanks , the problem is solved

  17. #297
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    I realized that by closing the tabs, we don't completely exit the form and only hide the form
    Isn't closing the full form better than hiding it?

  18. #298

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Mojtaba View Post
    I realized that by closing the tabs, we don't completely exit the form and only hide the form
    Isn't closing the full form better than hiding it?
    Why do you say that? In your example the question to the user "Are you sure you want to exit?" would never appear if the form was not closing.

    The form Unload even happens when the form is unloading, not just hiding.

  19. #299
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    Why do you say that? In your example the question to the user "Are you sure you want to exit?" would never appear if the form was not closing.

    The form Unload even happens when the form is unloading, not just hiding.

    Sorry, I tested again, the problem was with my code that the complete form could not be closed and empty
    Last edited by Mojtaba; Mar 2nd, 2025 at 11:22 AM.

  20. #300
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Eduardo ,
    How can I put the tabs at the bottom right ?
    In the Tab orientation

    Name:  right.jpg
Views: 78
Size:  11.8 KB
    Last edited by Mojtaba; Mar 8th, 2025 at 03:20 PM.

  21. #301

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Hello Mojtaba.

    Not currently possible. I realize that there are some orientations that are possible but not available now:
    TopRight
    BottomRight
    LeftBottom
    RightBottom

    The motivation to do that... it usually have been for fun. Not sure when or if I ever will add those tab orientations.

  22. #302
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    Hello Mojtaba.

    Not currently possible. I realize that there are some orientations that are possible but not available now:
    TopRight
    BottomRight
    LeftBottom
    RightBottom

    The motivation to do that... it usually have been for fun. Not sure when or if I ever will add those tab orientations.
    Thanks Eduardo, I'm adding this feature with the help of artificial intelligence.
    I don't want to change your source. Would you give me permission for personal use?

  23. #303

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,436

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Mojtaba View Post
    Thanks Eduardo, I'm adding this feature with the help of artificial intelligence.
    I don't want to change your source. Would you give me permission for personal use?
    You can change the source all that you wish, it is open source with MIT license.
    If AI bots can do that already... feel free if you want to post the source code here.

  24. #304
    Addicted Member Mojtaba's Avatar
    Join Date
    Dec 2020
    Posts
    212

    Re: NewTab: tab control for VB6

    Quote Originally Posted by Eduardo- View Post
    You can change the source all that you wish, it is open source with MIT license.
    It AI bots can do that already... feel free if you want to post the source code here.
    Thank you very much

Page 8 of 8 FirstFirst ... 5678

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