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

Buovjaga <ilmari.lauhakan...@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@libreoff
                   |                            |ice.org,
                   |                            |olivier.hallot@libreoffice.
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Buovjaga <ilmari.lauhakan...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to