[Libreoffice-bugs] [Bug 110986] Progressbar:setForegroundColor() does not work

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 1 14:47:35 UTC 2017


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

Thomas Krumbein <tk at mic-consulting.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Thomas Krumbein <tk at mic-consulting.de> ---
Hey Fauli,

"Unfortunately without clear steps to reproduce it, we cannot track down the
origin of the problem." ???

That ist real stupid. All nessessary steps are declared even with API services.

The attached file do have a working code example inside. So I am sure- if you
are really interested to solve the problem or even to understand - you do have
all informations.

But for beginners:

- create a dialog inside the Basic IDE (graphice)
- put a dialog-Element "Progessbar" to this dialog
- write the code to start the dialog
- get the object of the progressbar
- change the foreground color i.e. to RGB(200,0,0) (this is red!)
- execute your dialog
- run the code for displaing progress bar -> foreground is green - I guess,
this is a predefined value. 

Foregroundcolor do not have any effect. Just for tests: change property
setbackgroundcolor() - an you can see the effect - that works;)


this is the code-segment out of the attached file:

sub Fortschrittsbalken
  Dim oCtl as object, i%
  oCtl = oDialog.getControl("ProgressBar1")
  oCtl.setRange(0, 100)

  for i = 1 to 100
    oDialog.getControl("Label9").text = CStr(i)
    oCtl.getModel().ProgressValue = i
    wait(70)
    if oCtl.getValue/100 > 0.8 then
        oCtl.setForeGroundColor(RGB(200, 0, 0))
    end if
  next
end sub

this should change progress-bar color to red by reaching 80% - an this works
till min. OOo 3.2.1.

-- 
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/20170801/a0f35e9e/attachment.html>


More information about the Libreoffice-bugs mailing list