A gdiPlus stringFormat object seems to behave like a persistent object between clauses.
If I create stringFormat object in the onPaint/3 clause of a dialog, and in a sububordinate clause called by onPaint/3 create a new stringFormat object with different formatFlags (e.g., stringFormatFlagsDirectionVertical) then the next pass through onPaint/3 clause creates a stringFormatter object with the stringFormatFlagsDirectionVertical flag set.
It is not a problem to restore the original formatFlags in the subordinate clause, but it is unexpected behavior.
Sample code from a test dialog is attached.
-
- VIP Member
- Posts: 458
- Joined: 5 Nov 2000 0:01
gdiPlus stringFormat object behavior
You do not have the required permissions to view the files attached to this post.
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
Re: gdiPlus stringFormat object behavior
That is a bug. We will correct it (in build 1111).
Regards Thomas Linder Puls
PDC
PDC
-
- VIP Member
- Posts: 458
- Joined: 5 Nov 2000 0:01
Re: gdiPlus stringFormat object behavior
There seems to be a lot of discussion about stringFormat object persistence:
https://groups.google.com/g/microsoft.p ... qwsn6MvfpM
https://groups.google.com/g/microsoft.p ... qwsn6MvfpM