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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i set_item_property on text item

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I can set_item_property on an item of a block with something like set_item_property(':block.itemname',itemname, setting);
but I cant figure out how to refer to a text item on a canvas.. i have a text item called txt_query_mode and I want to set the displayed property on or off but it wont work like this:

set_item_property('txt_query_mode',DISPLAYED,PROPERTY_OFF);

I get an error that the item doesnt exist...

any suggestions would be appreciated..

 
Add the block that the itemis in to the item name.

[tt]set_item_property('your_block.txt_query_mode',DISPLAYED,PROPERTY_OFF);[/tt]
 
but the text is not part of a block, it is a "graphic" item on the canvas.
 
You cant set the display properties of graphic items programatically. You said 'text item' whereas you meant 'bolierplate text'.

You can acheive what you want by creating a display item, setting the bevel to none and then copying your required text in at run time. You can then apply visual attributes to the display item at run time.
 
thanks, Ill do it that way. I still have a hard time doing things the "oracle way", Ill probaby never get all the terms right..

thanks again..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top