Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Control Visible Only during Print

Status
Not open for further replies.

horriblehager

Programmer
Mar 31, 2014
1
US
I am new to powerbuilder. I am looking to make a text control visible only when printing. I unchecked visible and enabled. I then went into the visible expression box, but getting stuck with what my if then else should be and what property I should be seeing if it is true?

Any help would be appreciated.

Client/Server application.

Thanks in advance.

 
I'm assuming you issue a 'datawindow.print' type command to initiate the printing.

You could do something like
Code:
datawindow.setredraw(FALSE)
datawindow.modify("modify string to change the properties")
datawindow.print()
datawindow.modify("modify string to change properties back")
datawindow.setredraw(TRUE)

It would be difficult to put this into an expression on the object in the datawindow since there is no 'currently printing' type property to go by.

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top