[Libreoffice-bugs] [Bug 134232] Improve the Help for reading and updating control object contents (see comment 3)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 3 15:21:31 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=134232

Buovjaga <ilmari.lauhakangas at libreoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|TextBox: the text assigned  |Improve the Help for
                   |to the Text property isn't  |reading and updating
                   |displayed in UI (v6.0.x ..  |control object contents
                   |6.4.4.2)                    |(see comment 3)
          Component|BASIC                       |Documentation
             Blocks|103494                      |
                 CC|                            |ilmari.lauhakangas at libreoff
                   |                            |ice.org,
                   |                            |olivier.hallot at libreoffice.
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Buovjaga <ilmari.lauhakangas at libreoffice.org> ---
(In reply to TFKane from comment #3)
> The right way to do this, is:
> 
> Sub ButtonClicked_ProperWay(Event as Object)
> 	Button = Event.Source()
> 	Context = Button.getContext()
> 	oText = Context.getControl("MyTextBox")
> 	msgbox "updating <"+oText.Text+"> ... (will succeed)"
> 	oText.Text = "it works"
> End Sub
> 
> However, I was unable to find any documentation that illustrated the above.
> Indeed, I had to guess the the "Event as Object" parameter existance.
> 
> IMO, the LibreOffice Basic documentation should be integrated with a more
> accurate API documentation and possibly many examples. At least, in my
> experience.
> 
> Hoping this post was helpful.

Ok, let's turn this into a documentation issue


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103494
[Bug 103494] [META] Textbox bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210603/a4bb48b3/attachment.htm>


More information about the Libreoffice-bugs mailing list