Setting LINE ITEM (graphics object) dynamically (Merged) [message #124422] |
Sat, 18 June 2005 05:46 |
wael890610
Messages: 17 Registered: June 2005 Location: Egypt-Ismaelia
|
Junior Member |
|
|
Hi all this is my 1st tobic in ur forum
I want to ask 3 questions.
1-i have an IMAGE item , I whant hide this item when the event mouse move(using WHEN_MOUSE_MOVE & SET_ITEM_PROPERTY) .i have error frm-41016 . there is no reason for this error .
2-I have LINE item , am traying to use FIND_ITEM (‘line name’) to set its color property at run time . but I have error couldn’t find item id ( line item appear in graphic not in data block)
3-I group 3 LINE item in group N and I want to affect all of them as one related item (change the color of group N affect all 3 lines
Thnx all[/FONT][/FONT][/FONT]
|
|
|
|
Re: problem with SET_ITEM_PROPERTY [message #124521 is a reply to message #124422] |
Sun, 19 June 2005 19:52 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
I'll answer point 3 first and come back to the others later.
Quote: | 3-I group 3 LINE item in group N and I want to affect all of them as one related item (change the color of group N affect all 3 lines
|
The current_record visual atribute only affects the current line, and only while it is the active line.
To set three (3) lines to a different colour you need to use set_item_instance_property on each item on each on the lines about which you are interested. That is, go to the first line of interest, change each item one after the other, then go to the next line and do the same again.
Quote: | 2-I have LINE item , am traying to use FIND_ITEM (‘line name’) to set its color property at run time . but I have error couldn’t find item id ( line item appear in graphic not in data block)
|
If _YOU_ can't see the item in the Forms Builder Object Navigator then the find_item command will not be able to find it either. If is _DOES_ exist in the Object Navigator then please paste the code you are using in your reply.
David
[Updated on: Sun, 19 June 2005 19:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: problem with SET_ITEM_PROPERTY [message #124888 is a reply to message #124844] |
Wed, 22 June 2005 02:14 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
wael890610,
Please confirm what others questions you need answered as I believe the quoted code gives a full example of how to 'loop' through all the items of a record.
David
|
|
|