OOBasic Dialog Label Scrollbar Class

Creating Extension - Shared Libraries
Forum rules
For sharing working examples of macros / scripts. These can be in any script language supported by OpenOffice.org [Basic, Python, Netbean] or as source code files in Java or C# even - but requires the actual source code listing. This forum is not for asking questions about writing your own macros.

OOBasic Dialog Label Scrollbar Class

Postby JeJe » Fri Mar 30, 2018 6:36 pm

The OpenOffice stand alone dialog scrollbar appears to no longer work in LibreOffice.

Here's a class based replacement using labels that works in both.
The thumb doesn't show up in LibreOffice at start - that seems to be the only difference.
Its more difficult to use but is more customisable.

On the second example press the tab key and then number keys to change values by key.

***** SMALL FIX 31/03/18 TO GO TO MAX VALUE WHEN THUMB POSITIONING AND MOUSE MOVED TO RIGHT/BOTTOM BUTTON

***** FIX 08/04/18 TimerScroll values of 1 and 10 should have been smallchange and largechange - corrrected
Attachments
LabelScrollbar.odt
(22.01 KiB) Downloaded 72 times
Openoffice 4.1.2
Windows 8
JeJe
Volunteer
 
Posts: 508
Joined: Wed Mar 09, 2016 2:40 pm

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 2 guests