| View previous topic :: View next topic |
| Author |
Message |
_francois_ General User

Joined: 24 Nov 2005 Posts: 35
|
Posted: Wed Sep 17, 2008 12:34 am Post subject: Problem with on the fly generated ComboBox in Calc |
|
|
Hi
I create a repport via OLE Automation using Powerbuilder
In that repport I have a dropdown combo which is created as follow
oCB = oDoc.createInstance("com.sun.star.form.component.ComboBox")
oControl = oDoc.createInstance("com.sun.star.drawing.ControlShape")
oCB.Dropdown = true
oCB.Enabled = true
oCB.MaxTextLen = 60
oCB.lineCount = 5
oCB.name = "cb" + g_dossier
oControl.setPosition(oPoint)
oControl.setSize(oSize)
// populating itemList //
oCB.StringItemList = itemList
oControl.setControl(oCB)
oPage.add(oControl)
The combobox is correctly displayed in the page but I cannot choose a value in the combobox
if I save and close my document then re-open it my combo works just fine
I know I could save/close/open in my script but Id like to know if I could avoid those steps
I tried .uno:refresh reload and stuff like that wut withtout any success so far
Thanks in advance
Cheers |
|
| Back to top |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Mon Sep 29, 2008 1:50 am Post subject: |
|
|
Francois,
I have no problem creating and using the combobox (using your code) here (WinXP, OOo 2.3.1)
Which OOo version you have? _________________ Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs |
|
| Back to top |
|
 |
_francois_ General User

Joined: 24 Nov 2005 Posts: 35
|
Posted: Mon Sep 29, 2008 6:38 am Post subject: |
|
|
Sorry I forgot to mention the versions
Win XP Pro SP3
OOo 2.4.0 FR |
|
| Back to top |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Tue Sep 30, 2008 1:07 am Post subject: |
|
|
mmmh, 2.4.0 was more buggy than 2.4.1
If you can wait another week: OOo 3.0 is around the corner. Otherwise I would recommend upgrading to 2.4.1
Good luck. _________________ Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs |
|
| Back to top |
|
 |
|