Problem with text alignemnt under Window

We are integrating our own custom widgets within Phab under Win32. Several
of these widgets use text alignement (flag parameter to PgDrawText()), such
as Pg_TEXT_MIDDLE, Pg_TEXT_BOTTOM, etc. The alignement is not woking in
this environment. Is this a known problem? Is there anything that can be
done to fix this problem? (Can PfExtent be used in this environment?)

Never mind, PfExtent gave me what I needed to re-alignment my text. Is
there a macro under Win32 (gcc) that is defined so I can #ifdef the code?
Not much of a Window programer…

“Richard Doucet” <doucetr@DONTaeclSPAM.caME> wrote in message
news:dfkmd1$spd$1@inn.qnx.com

We are integrating our own custom widgets within Phab under Win32.
Several of these widgets use text alignement (flag parameter to
PgDrawText()), such as Pg_TEXT_MIDDLE, Pg_TEXT_BOTTOM, etc. The
alignement is not woking in this environment. Is this a known problem?
Is there anything that can be done to fix this problem? (Can PfExtent be
used in this environment?)

For Photon programming under Windows I use:

#ifdef CYGWIN

#else

#endif

There are some text alignment issues in Photon under Windows, which uses
Phindows to render fonts. Most of the problems I have seen are for vertical
alignment, and for TextArea draws. I have fixed the bulk of these issues for
the next release of Photon/PhAB for Windows and Phindows.

Max

“Richard Doucet” <doucetr@DONTaeclSPAM.caME> wrote in message
news:dfkond$tf$1@inn.qnx.com

Never mind, PfExtent gave me what I needed to re-alignment my text. Is
there a macro under Win32 (gcc) that is defined so I can #ifdef the code?
Not much of a Window programer…

“Richard Doucet” <> doucetr@DONTaeclSPAM.caME> > wrote in message
news:dfkmd1$spd$> 1@inn.qnx.com> …
We are integrating our own custom widgets within Phab under Win32.
Several of these widgets use text alignement (flag parameter to
PgDrawText()), such as Pg_TEXT_MIDDLE, Pg_TEXT_BOTTOM, etc. The
alignement is not woking in this environment. Is this a known problem?
Is there anything that can be done to fix this problem? (Can PfExtent be
used in this environment?)

Thanks.

FYI, I’ve had problem with both vertical and horizontal alignment.


“Max Feil” <maxf@magma.ca> wrote in message news:dfl0sp$6of$1@inn.qnx.com

For Photon programming under Windows I use:

#ifdef CYGWIN
windows code
#else
neutrino code
#endif

There are some text alignment issues in Photon under Windows, which uses
Phindows to render fonts. Most of the problems I have seen are for
vertical
alignment, and for TextArea draws. I have fixed the bulk of these issues
for
the next release of Photon/PhAB for Windows and Phindows.

Max

“Richard Doucet” <> doucetr@DONTaeclSPAM.caME> > wrote in message
news:dfkond$tf$> 1@inn.qnx.com> …
Never mind, PfExtent gave me what I needed to re-alignment my text. Is
there a macro under Win32 (gcc) that is defined so I can #ifdef the code?
Not much of a Window programer…

“Richard Doucet” <> doucetr@DONTaeclSPAM.caME> > wrote in message
news:dfkmd1$spd$> 1@inn.qnx.com> …
We are integrating our own custom widgets within Phab under Win32.
Several of these widgets use text alignement (flag parameter to
PgDrawText()), such as Pg_TEXT_MIDDLE, Pg_TEXT_BOTTOM, etc. The
alignement is not woking in this environment. Is this a known problem?
Is there anything that can be done to fix this problem? (Can PfExtent
be
used in this environment?)

\