OOBasic Dialog Resizing button

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 Resizing button

Postby JeJe » Thu Jun 11, 2020 10:20 pm

This is to get round the problem of OOBasic dialogs not being resizable by the user.

This resizing button allows resizing of a dialog by pressing the button with the mouse or using the arrow keys when the button has the focus. You just need to install the extension and copy and paste the button from the dialog there onto your dialog. Optionally you can use the button's tag to set options such as calling a custom resizing sub for when your form resizes.

There is some excellent code here for a resizable border,
viewtopic.php?f=21&t=92867
but I've had a problem with the non-modal dialog version.
So this button is an alternative.

Edit:
Note only tested in OO
Library with code is called JeDialog

resizing dialog.jpg
Attachments
Dialog Resizing Button.oxt
(7.07 KiB) Downloaded 40 times
Openoffice 4.1.6
Windows 8
JeJe
Volunteer
 
Posts: 1201
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