Re: [api-dev] Re[api-dev] freshing Dialog

2009-10-27 Thread Fernand Vanrie

Vil ,

I still have the same problem with the Throbber Controls,  manualy 
klicking on a buttom does the job, opening a msgbox or print dialog 
also.


Hope someone knows a other way

Fernand
Hi, 


short question:
I want to change the amount of input (editFields) in a Dialog after a
listerner hits on an event.
The change of the dialogs model works ok, but the effect of appearing new
edit fields in a dialog only shows up if I use a roadmapitem to go to
another step and than back to the step where the change has happend.
-- I need to know how to tell the dialog to repaint itself according the
changed properties of its model.

can this somehow be done by the XPaintListeners...?
I couldn't find anything.

I am aware, that oodialogs are not ment to change dynamically...

thank you :)
  



-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] OpenOffice.org Basic - Sear ch and Replace in code…

2009-10-27 Thread Andrew Douglas Pitonyak

You should post your code...

On 10/24/2009 06:05 AM, Johnny Rosenberg wrote:

I am coding something in OpenOffice.org Calc using the built in Basic
language thing. Now, when I produced about 50 KiB of code I found that
I was not very consistent in how to type things. For example,
sometimes I type like ”BlahBlah=Foo+Bar-3” and sometimes like
”BlahBlah=Foo + Bar - 3”. So I figured that it wouldn't be too hard to
search for patterns using regular expressions for replacing things,
but I failed doing this!

Thing like work perfectly in OpenOffice.org Writer Search and Replace
doesn't seem to work at OpenOffice.org Basic Search and Replace.
One thing that I need to do this, I guess, is things like $1, $2 and
things like that in the Replace field, but all happens is that my
search string is replaces by $1 and $2 respectively. Of course the
Regular Expression checkbox is ticked.

One example:
Search for: ([a-zA-Z0-9\(\)])([\+|\-|\*|\/])([a-zA-Z0-9\(\)])
Replace with: $1 $2 $3

I tried this in OpenOffice.org Writer and it works perfectly.

Before:
a+b
hej(3)+svejs(4)
tjoho(x)+3

After:
a + b
hej(3) + svejs(4)
tjoho(x) + 3

Doing the same thing in OpenOffice.org Basic:

Before:
a+b
hej(3)+svejs(4)
tjoho(x)+3

After:
$1 $2 $3
hej(3$1 $2 $3vejs(4)
tjoho(x$1 $2 $3

Doesn't look very nice to me…

Is this a bug or am I not supposed to do this?

Johnny Rosenberg

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org


   


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org