Page 2 of 2 FirstFirst 12
Results 41 to 50 of 50

Thread: [VB6/Win7+] Using the Windows UI Ribbon Framework

  1. #41

  2. #42

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by HackerVlad View Post
    Great job! Everything looks fine. But why did you put a picturebox with a red square inside? To watch how the graphics are buggy? Yes, it is buggy.
    The red square is for Galleries Mode (visible in the 2nd resize animation), you can switch the ribbon into it from the File menu. From the tab that brings up, you can adjust the shape, color, size, border style/size and change layout to 2x2 or 3x3.

    And how are the graphics buggy? Did you change the Form.HasDC property? The only graphics bug I'm aware of now is a tB bug with minimize/restore. Is it the same glitching I thought you said HasDC=False fixed on Win7 too?

  3. #43
    Fanatic Member HackerVlad's Avatar
    Join Date
    Nov 2023
    Posts
    681

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by fafalone View Post
    The red square is for Galleries Mode (visible in the 2nd resize animation), you can switch the ribbon into it from the File menu. From the tab that brings up, you can adjust the shape, color, size, border style/size and change layout to 2x2 or 3x3.

    And how are the graphics buggy? Did you change the Form.HasDC property? The only graphics bug I'm aware of now is a tB bug with minimize/restore. Is it the same glitching I thought you said HasDC=False fixed on Win7 too?
    I didn't change anything. I just compiled the EXE. I launched it and saw that the picturebox starts to glitch when it climbs to the location of the application ribbon when resizing the form to almost the smallest size.

  4. #44

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    If it's only when parts of it start going out of view I guess that's ok since it's really only allowed to resize smaller than startup to show the new ribbon resize features... maybe changing HasDC to False on the PictureBox too would help?

    But one more question if you don't mind; are you using the RichEdit DLLs that come with it (the download has a riched20.dll and mtpls.dll in the build folders), and if so are color emojis working (are they in color like the picture or just black and white like the plain text)? Looks like that might not work on Windows 7; it's crashing on my VM. But that might be because Direct2D acceleration is broken in general (why Aero can't be enabled on the VM) so I'm hoping it's just that.

    If you're not sure whether it's loading, the difference would be visible in the startup text, it either says "Welcome to the Advanced Ribbon w/ Direct2D Demo" with several emojis or "Welcome to the Advanced Ribbon Demo".

  5. #45
    Fanatic Member HackerVlad's Avatar
    Join Date
    Nov 2023
    Posts
    681

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by fafalone View Post
    If it's only when parts of it start going out of view I guess that's ok since it's really only allowed to resize smaller than startup to show the new ribbon resize features... maybe changing HasDC to False on the PictureBox too would help
    Yes, it helped to solve the problem! I set HasDC to False and the graphics stopped glitching!

  6. #46
    Fanatic Member HackerVlad's Avatar
    Join Date
    Nov 2023
    Posts
    681

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by fafalone View Post
    But one more question if you don't mind; are you using the RichEdit DLLs that come with it (the download has a riched20.dll and mtpls.dll in the build folders), and if so are color emojis working (are they in color like the picture or just black and white like the plain text)? Looks like that might not work on Windows 7
    Yes, I use your DLL files. Emojis are black and white, unfortunately. They will probably be colored only in Windows 10(

  7. #47
    Fanatic Member HackerVlad's Avatar
    Join Date
    Nov 2023
    Posts
    681

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    But there is another graphical glitch. If you insert an image into a text field. Then it starts to fade when scrolling the text field.
    There are a lot of glitches with the display of images inside the text field. Small pictures are immediately visible, while large pictures don't even appear immediately when pasted. Take a look for yourself, experiment and you will understand everything.

  8. #48
    Fanatic Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    630

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Very good work Fafalone.
    I have some visual problems.
    At first the letter looked fine but I don't know if I pressed a button that I shouldn't have and it looks like this.

    https://imgur.com/a/exmNn67
    Greetings

  9. #49

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by HackerVlad View Post
    Yes, it helped to solve the problem! I set HasDC to False and the graphics stopped glitching!
    Wonderful, will include change in next update. Thanks.

    Quote Originally Posted by HackerVlad View Post
    Yes, I use your DLL files. Emojis are black and white, unfortunately. They will probably be colored only in Windows 10(
    Windows 8.1+

    Quote Originally Posted by HackerVlad View Post
    But there is another graphical glitch. If you insert an image into a text field. Then it starts to fade when scrolling the text field.
    There are a lot of glitches with the display of images inside the text field. Small pictures are immediately visible, while large pictures don't even appear immediately when pasted. Take a look for yourself, experiment and you will understand everything.
    This is more on the RichEdit... all my control does is paste it in on Win7. The small size is a factor.

  10. #50

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: [VB6/Win7+] Using the Windows UI Ribbon Framework

    Quote Originally Posted by yokesee View Post
    Very good work Fafalone.
    I have some visual problems.
    At first the letter looked fine but I don't know if I pressed a button that I shouldn't have and it looks like this.

    https://imgur.com/a/exmNn67
    Greetings
    You hit the "Set as Ribbon Colors" button that assigns the color picker values to the ribbon (you hadn't picked any in the pic so it would all be 0 or the picture box default)... I think due to themes, the colors set don't match up right anyway.

    If it's staying like that even after restarting the program delete the ribbon.cfg file.. the demo creates it in App.Path to save/load the ribbon state; haven't checked if that includes colors.

    Edit: Next update will have a check to make sure you've picked a color before setting it.
    Last edited by fafalone; Feb 18th, 2025 at 10:07 PM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

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