Opening a Dialog With Basic

당신이 λ§Œλ“  LibreOffice BASIC μ°½μ—μ„œ λŒ€ν™”μƒμž νŽΈμ§‘κΈ°λ₯Ό λ‹«μœΌλ €λ©΄ λŒ€ν™”μƒμžμ΄ ν• λ‹Ήλœ λͺ¨λ“ˆμ˜ 이름탭을 λˆ„λ₯΄μ„Έμš”. 이름탭은 μ°½ μ•„λž˜μ— μžˆμŠ΅λ‹ˆλ‹€.

Dialog1ShowλΌλŠ” μ„œλΈŒλ£¨ν‹΄μ— λŒ€ν•œ λ‹€μŒ μ½”λ“œλ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€. 이 μ˜ˆμ—μ„œ μž‘μ„±ν•œ λŒ€ν™” μƒμžμ˜ 이름은 "Dialog1"μž…λ‹ˆλ‹€.


Sub Dialog1Show
    With GlobalScope.BasicLibraries
       If Not .IsLibraryLoaded("Tools") Then .LoadLibrary("Tools")
    End With
    oDialog1 = Tools.ModuleControls.LoadDialog("Standard", "Dialog1")
    oDialog1.Execute()
End Sub

"LoadDialog"λ₯Ό μ‚¬μš©ν•˜μ§€ μ•Šκ³  μ½”λ“œλ₯Ό λ‹€μŒκ³Ό 같이 ν˜ΈμΆœν•  수 μžˆμŠ΅λ‹ˆλ‹€.


Sub Dialog1Show
    DialogLibraries.LoadLibrary("Standard")
    oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 )
    oDialog1.Execute()
End Sub

이 μ½”λ“œλ₯Ό μ‹€ν–‰ν•˜λ©΄ "Dialog1"이 μ—΄λ¦½λ‹ˆλ‹€. λŒ€ν™” μƒμžλ₯Ό λ‹«μœΌλ €λ©΄ 제λͺ© ν‘œμ‹œμ€„μ˜ λ‹«κΈ°(x) μ•„μ΄μ½˜μ„ ν΄λ¦­ν•©λ‹ˆλ‹€.

Please support us!