Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » AutoScroller package update
Re: AutoScroller package update [message #56465 is a reply to message #56330] Sat, 13 March 2021 23:08 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Klugier,

I took 10 minutes to enhance .usc file.
Following code adds drawing of sidebars


Quote:
Paint(w) {
r = GetRect();
sbWidth = 16;

sr = r;
sr.right = sr.right-sbWidth;
sr.bottom = sr.bottom-sbWidth;

vsb = sr;
vsb.left = sr.right;
vsb.right = r.right;

hsb = sr;
hsb.top = sr.bottom;
hsb.bottom = r.bottom;

PaintHScrollBar(w, hsb);
PaintVScrollBar(w, vsb);

DrawCtrlFrame(w, r, .SetFrame);
DrawBorder(w, r, :SGray, :SGray);

sr.right = sr.right-sbWidth; ___________ // normaly shoudn't need this, but still had to add it otherwise ClassName overlaps VScrollbar ???
DrawClassName(w, sr, "AutoScroller");
}

[Updated on: Sat, 13 March 2021 23:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using TerminalCtrl - does not compile
Next Topic: Error with MessageCtrl when using "["
Goto Forum:
  


Current Time: Mon May 06 22:08:03 CEST 2024

Total time taken to generate the page: 0.02691 seconds