<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tk@mic-consulting.de" title="Thomas Krumbein <tk@mic-consulting.de>"> <span class="fn">Thomas Krumbein</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Progressbar:setForegroundColor() does not work"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110986">bug 110986</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEEDINFO
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Progressbar:setForegroundColor() does not work"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110986#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Progressbar:setForegroundColor() does not work"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110986">bug 110986</a>
              from <span class="vcard"><a class="email" href="mailto:tk@mic-consulting.de" title="Thomas Krumbein <tk@mic-consulting.de>"> <span class="fn">Thomas Krumbein</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>