Nick Gammon said: It's possible that MFC will "helpfully" not let me do that, but I'll look into that in the morning.
Thanks, I appreciate you looking into it - if it isn't too fiddly, it could make a nice addition to the Aardwolf plugins as well.
Worstje said: 1. Please try to stick to the OS look, including the resizing thumb and hopefully theme awareness
I don't really mind what the defaults are, but I'd very much like the option to customise the scrollbar for my theme. Even the command window lets you customise the colours, after all (although I don't think you can do that directly from a plugin?).
Worstje said: 2. Add some kind of global option of 'Scrollbar does not stick with TextRectangle', which by default would be turned off.
Personally I would suggest that the scrollbar doesn't stick with TextRectangle by default - otherwise it may cause formatting issues with existing plugins. As long as the flag can be easily set within your plugin, it shouldn't be any trouble to add it.
Worstje said: 3. Implement the new scrollbar so it is WITHIN the text rectangle area, not right outside of it.
Or allow it to be defined independently of the TextRectangle, via another function? Eg:
long TextScrollbar(BSTR WindowName, long Left, long Top, long Right, long Bottom, long BorderColour, long BorderWidth, long FillColour, long ThumbColour, long ThumbStyle, long ButtonColour, long ButtonStyle, long Flags);
flag 0: scrollbar sticks to the right of the window (like now)
flag 1: scrollbar sticks to the TextRectangle
flag 2: scrollbar can be freely positioned
Or maybe that's too complex...if you could draw a miniwindow over the top, perhaps that would be enough to handle whatever cosmetic customisations were required.
|