Hi, I’m using Photon 1.13 (qnx4.25) and I’m trying to print a multitext
widget.
Two things I have problem with:
First- In my base window, my multitext has a vertical scrollbar and even
though I change the widget’s properties to disable the scrollbar before
printing, it get’s printed anyway …
Second and more importantly, If the multitext content is more than one page
in length, only the first page gets printed…
P.s. I got the thing from the doc about changing the number of rows before
printing etc… but I can’t figure out how to print multiple pages if
necessary.
Can someone at QNX help with this ?
marclupien@hotmail.com
Hello, anybody, some help would be appreciated…
“Marc Lupien” <marclupien@hotmail.com> wrote in message
news:8soats$hh5$1@inn.qnx.com…
Hi, I’m using Photon 1.13 (qnx4.25) and I’m trying to print a multitext
widget.
Two things I have problem with:
First- In my base window, my multitext has a vertical scrollbar and even
though I change the widget’s properties to disable the scrollbar before
printing, it get’s printed anyway …
Second and more importantly, If the multitext content is more than one
page
in length, only the first page gets printed…
P.s. I got the thing from the doc about changing the number of rows before
printing etc… but I can’t figure out how to print multiple pages if
necessary.
Can someone at QNX help with this ?
marclupien@hotmail.com
Marc Lupien <marclupien@hotmail.com> wrote:
: “Marc Lupien” <marclupien@hotmail.com> wrote in message
: news:8soats$hh5$1@inn.qnx.com…
:> Hi, I’m using Photon 1.13 (qnx4.25) and I’m trying to print a multitext
:> widget.
:>
:> Two things I have problem with:
:>
:> First- In my base window, my multitext has a vertical scrollbar and even
:> though I change the widget’s properties to disable the scrollbar before
:> printing, it get’s printed anyway …
:>
Someone else will have to help you with this.
:> Second and more importantly, If the multitext content is more than one
: page
:> in length, only the first page gets printed…
:>
:> P.s. I got the thing from the doc about changing the number of rows before
:> printing etc… but I can’t figure out how to print multiple pages if
:> necessary.
You might have to do the scrolling yourself when printing:
current_line = 1;
while (current_line + Pt_ARG_MULTITEXT_NUM_LINES_VISIBLE
<= Pt_ARG_MULTITEXT_NUM_LINE) do
{
Pt_ARG_MULTITEXT_TOP_LINE += Pt_ARG_MULTITEXT_NUM_LINES_VISIBLE
print the widget
}
Someone else might have a better idea.
Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems Ltd.