Howdy,
I've done a little research on this but I just want to confirm my findings are current.
Is it true - there is no practical way, in OOo Basic, to create a Modeless Dialog for the user.
I really need to let the user select buttons on the Form after the Dialog appears.
Any suggestions or confirmations would be appreciated.
[Solved] Modeless Dialog?
[Solved] Modeless Dialog?
Last edited by Hagar Delest on Sun Mar 15, 2009 11:39 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Tobin Sparks
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
Re: Modeless Dialog?
On http://www.oooforum.org/forum/search.phtml you find many modeless dialogs.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
[Solved] Modeless Dialog?
Howdy,
Thanks Villeroy for your reply. I was sure I wasn't the only one looking for this .
Thanks for the pointer. I'll have to check those out later. Gota say though it seems strange it's not built in.
Thanks Again
Thanks Villeroy for your reply. I was sure I wasn't the only one looking for this .
Thanks for the pointer. I'll have to check those out later. Gota say though it seems strange it's not built in.
Thanks Again
Tobin Sparks
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
Re: Modeless Dialog?
I can not open itVilleroy wrote:On http://www.oooforum.org/forum/search.phtml you find many modeless dialogs.
OpenOffice 4.1 on Windows 10
LibreOffice 5.2 on Windows 10
LibreOffice 5.2 on Windows 10
Re: [Solved] Modeless Dialog?
The other forum is no longer available. Here is a simple example. You can change the value of the variable M between True and False to see how the dialog behaves differently.
Code: Select all
DialogLibraries.LoadLibrary( "Standard" ) 'Load the standard Library
dlg = CreateUnoDialog( DialogLibraries.Standard.Dialog1 ) 'Load the existing Practice Dialog
odlgModel = dlg.Model
Doc = ThisComponent
Sheet = Doc.Sheets(0)
Cell = Sheet.getCellByPosition(0,0)
M = False 'Set False for non_modal
If M Then
dlg.execute()
Else
dlg.visible = true
do
n = dlg.model.CloseButton.State
Controls() = odlgModel.getControlModels
TextFieldModel = Controls(1)
TextFieldModel.Text = Doc.CurrentSelection.AbsoluteName
if n = 1 then exit do
wait (100)
loop
End If
- Attachments
-
- Non-modal dialog.ods
- (20.28 KiB) Downloaded 565 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: [Solved] Modeless Dialog?
Ok, very good, thank you, but how can I use a Command Button instead of OptionButton for closing ?
how can I Use all the other dialog controls in the nomodal mode ?
how can I Use all the other dialog controls in the nomodal mode ?
OpenOffice 4.1 on Windows 10
LibreOffice 5.2 on Windows 10
LibreOffice 5.2 on Windows 10