Hallo,
ich habe bemerkt das beim BBrowser das bSample_OwnerDrawValues die Charts nicht mehr angezeigt werden, weil die METHOD Draw(hDC AS PTR, srcArea AS _winRect) nicht aufgerufen wird.
Habe ich seit der X# 2.19 bemerkt.
Mit X#2.17 lief alles, mit der X#2.18 ist das Verhalten schon nachstellbar. Also irgendwas zwischen X# 2.17 und X#2.18 wurde geändert.
Hat das schon jemand bemerkt, oder am besten auch bereits eine Lösung gefunden?
Grüße Frank
BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Frank,
check my post on "fieldspec not returning correct value"
It is the same issue. I raised it with Chris but did not get a reply yet.
grtz,
Luc
check my post on "fieldspec not returning correct value"
It is the same issue. I raised it with Chris but did not get a reply yet.
grtz,
Luc
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hallo Luc,
ja, das ist dasselbe Problem. Vielleicht gibt es eine schnelle Lösung. Ich versuche auch noch weiter.
Grüße
ja, das ist dasselbe Problem. Vielleicht gibt es eine schnelle Lösung. Ich versuche auch noch weiter.
Grüße
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hallo Frank,
You can avoid it if you can ommit putting a fieldspec to the datacolumn. Maybe not directly possible in the bbrowser sample, but in your own code.
I examined it in the bBrowser sdk and it goes wrong in the drawcell method on
// Spaltenwert zeichnen
if symValueView=#Text .or. symValueView=#RTF .or. symValueView=#ComboBox .or. symValueView=#ComboEdit .or. symValueView=#PushButton
symvalueView is changed to #text because of the fieldspec:valtype changing from O to M. The first drawvalue is called giving the textinfo of the image or icon and not the 2e call after the else,
grtz,
Luc
You can avoid it if you can ommit putting a fieldspec to the datacolumn. Maybe not directly possible in the bbrowser sample, but in your own code.
I examined it in the bBrowser sdk and it goes wrong in the drawcell method on
// Spaltenwert zeichnen
if symValueView=#Text .or. symValueView=#RTF .or. symValueView=#ComboBox .or. symValueView=#ComboEdit .or. symValueView=#PushButton
symvalueView is changed to #text because of the fieldspec:valtype changing from O to M. The first drawvalue is called giving the textinfo of the image or icon and not the 2e call after the else,
grtz,
Luc
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Guys,
I am sorry for this problem.
We changed the fieldspec class because FoxPro tables support more datatypes than just CDLMN (for example also Integer (I), Currency (Y) and DateTime (T).
And the VO documentation also does not list 'O' as acceptable value for FieldSpec:ValType
We'll make sure it is fixed in 2.20
Robert
I am sorry for this problem.
We changed the fieldspec class because FoxPro tables support more datatypes than just CDLMN (for example also Integer (I), Currency (Y) and DateTime (T).
And the VO documentation also does not list 'O' as acceptable value for FieldSpec:ValType
We'll make sure it is fixed in 2.20
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hallo Luc,
danke für den Hinweis. Bekomme aber keine Lösung hin. Ich warte auf die X#2.20.
Danke Frank
danke für den Hinweis. Bekomme aber keine Lösung hin. Ich warte auf die X#2.20.
Danke Frank
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Frank,
Where does the Fieldspec come from that is used for the column?
Can you (for now) change the type by calling the SetType() method from the fieldspec like this:
Robert
Where does the Fieldspec come from that is used for the column?
Can you (for now) change the type by calling the SetType() method from the fieldspec like this:
Code: Select all
local oFs as Fieldspec
oFs := oColumn:Fieldspec
oFs:SetType("O")
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hallo Robert,
das war die Lösung, Danke für die Hilfe.
Grüße Frank
das war die Lösung, Danke für die Hilfe.
Grüße Frank
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hi Frank,
If you'd like, I can also send you an updated X# runtime dll containing the fix from Robert, so you'd not need to change your code. Another developer has already tested it and confirmed it is working well.
Chris
If you'd like, I can also send you an updated X# runtime dll containing the fix from Robert, so you'd not need to change your code. Another developer has already tested it and confirmed it is working well.
Chris
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Hallo Chris,
bis jetzt war es nur eine Stelle im Programm, wo mir das aufgefallen ist. Wenn es häufiger auftritt, komme ich gern darauf zurück, ansonsten warte ich auf die Veröffentlichung der X#2.20
Grüße Frank
bis jetzt war es nur eine Stelle im Programm, wo mir das aufgefallen ist. Wenn es häufiger auftritt, komme ich gern darauf zurück, ansonsten warte ich auf die Veröffentlichung der X#2.20
Grüße Frank