Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Icon

The button across the top of the editor are separated into groups by a vertical line (a button I assume) I have done this before but I forget how. What icon (ico or bmp) do you use for this separator?

Comments

  • edited July 15
    srp ole picture resized to min width (no image) (Well for me anyway) - They could be using the ribbon control, but, just noticed the picture result is similar
  • Hmmm for reason on my system it's showing as a blank space, invisible. On another computer it's showing as a blank space surrounded by a black border. I'll post images when I get back in the office.
  • Barry is half right. These are SRP Picture controls, but using the special ControlPart property. We added this feature in the earliest release in order to support theme-compliant menu components like vertical bars, horizontal bars, and caption bars.
  • edited 4:46AM
    Wow, so cool
    OI10 easy change (properties)
  • Not sure what is going on here but I am getting different results on different machines, some look like the below, two screenshots . In one case we have nothing as a seperator, the other we get a black outline.




    Other windows render correctly, same control is used in all cases.


    I am not using the ControlPart property.
  • Are you using an image then? What kind of transparency? What is different between these machines?
  • I have no idea what is different, it might be the SRP control version. But the one that displays correctly is on the same copy of OI that displays a blank icon in a different window. No I am not using an image. Let me try and figure out what is different.
  • If I change the ControlPart property to TBD, it works correctly.
  • This is strange the form that was working correctly, I changed the ControlPart property to TBD, it doesn't work on that form now. Setting the ControlPart back to None does not fix it, saving the form somehow has broken it.
  • No I am not using an image.

    So if you weren't using the ControlPart property and you weren't using an image, how were you achieving the look of a bar? I'm confused about this.

    I changed the ControlPart property to TBD, it doesn't work on that form now.

    Double check to confirm if it really isn't working or if it is just very light and hard to see. Some versions of Windows will render this very subtly, almost hard to see if you aren't looking closely. Also, make sure to leave enough width (2-3 pixels).
  • Something in your SRP Picture controls logic set it to be a divider if the control was two pixels wide, that has changed, presumably due to a newer SRP control version. Saving the form stops it from working the way it used to.

    I copied the control from the new working form (using TBD) to the new non-working form (the one that was working) and it doesn't work.

    The form that works I can see the control correctly in FORMDES, on the non-working from it is invisible in FORMDES.

    BTW I am really confused.
  • OK i have it working on both forms, recopied the control from the working form to the non-working one, saved the form and it displays correctly when the form is executed. It still however does not display when in FORMDES.

    I'm OK with it, do not spend any more time on this I have it working.

    Thank you for the help.
  • OK here is what fixed everything, you must now use the ControlPart property.

    The form that was not showing the divider in FORMDES had another picture control overlapping it.
  • Hi Jim.

    Are you in OI9 or OI10?
  • @BarryStevens - It is the same blog site but you would still have to search for the article.
  • Ah, sorry, I thought it was new blog you just created. It is now in my Evernote - because I am old and would not remember what to search for 🤣
Sign In or Register to comment.