BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by Frank Müßner »

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
Luc
Posts: 28
Joined: Sat Apr 30, 2016 7:31 pm
Location: Belgium

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by Luc »

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
Frank Müßner
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

Post by Frank Müßner »

Hallo Luc,

ja, das ist dasselbe Problem. Vielleicht gibt es eine schnelle Lösung. Ich versuche auch noch weiter.
Grüße
Luc
Posts: 28
Joined: Sat Apr 30, 2016 7:31 pm
Location: Belgium

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by Luc »

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
User avatar
robert
Posts: 4540
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by robert »

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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Frank Müßner
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

Post by Frank Müßner »

Hallo Luc,

danke für den Hinweis. Bekomme aber keine Lösung hin. Ich warte auf die X#2.20.

Danke Frank
User avatar
robert
Posts: 4540
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by robert »

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:

Code: Select all

local oFs as Fieldspec
oFs := oColumn:Fieldspec
oFs:SetType("O")
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Frank Müßner
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

Post by Frank Müßner »

Hallo Robert,

das war die Lösung, :-) Danke für die Hilfe.

Grüße Frank
User avatar
Chris
Posts: 4936
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Post by Chris »

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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Frank Müßner
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

Post by Frank Müßner »

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
Post Reply