Hi again,
Consider this;
I have one parent object (image) with several text objects as children of said object
I have a script attached to the parent object which is;
Const var = 1.3
Sub Object_OnMouseEnterEx(obj)
For Each elem In Desktopx.Object("parent").Children
elem.left = elem.left*var
elem.top = elem.top*var
elem.width = elem.width*var
elem.height = elem.height*var
elem.SetFont "Arial", elem.fontsize*var, elem.fontbold, elem.fontitalic, elem.fontunderline, elem.fontstrikeout, 0
elem.left = elem.left
Next
Object.left = Object.left - (((object.width*(var)) - Object.width)/2)
Object.top = Object.top - (((object.height*(var)) - Object.height)/2)
Object.width = Object.width*var
Object.height = Object.height*var
Object.SetFont "Arial", Object.fontsize*var, Object.fontbold, Object.fontitalic, Object.fontunderline, Object.fontstrikeout, 0
End Sub
Sub Object_OnMouseLeaveEx(obj)
For Each elem In Desktopx.Object("parent").Children
elem.left = elem.left/var
elem.top = elem.top/var
elem.width = elem.width/var
elem.height = elem.height/var
elem.SetFont "Arial", elem.fontsize/var, elem.fontbold, elem.fontitalic, elem.fontunderline, elem.fontstrikeout, 0
Next
Object.width = Object.width/var
Object.height = Object.height/var
Object.SetFont "Arial", Object.fontsize/var, Object.fontbold, Object.fontitalic, Object.fontunderline, Object.fontstrikeout, 0
Object.left = Object.left + (((object.width*(var)) - Object.width)/2)
Object.top = Object.top + (((object.height*(var)) - Object.height)/2)
End Sub
As you can see, I have the code set up such that when you mouse over the parent object, the object, as well as all of it's children grow bigger by a factor of whatever "var" represents (in this case 1.3). Furthermore, I have it set up such that when the parent object enlarges, the children still line up in the correct position relative to the size of the parent object.
Now for the problem;
When I apply this code, whenever I mouse over the parent, it does what it's supposed to do, but as soon as my cursor approaches one of the text objects, the parent object suddenly gets smaller (along with all of it's children) and then enlarges to the right size again.
Is there anyway to make it NOT do that? Or is this just a glitch in DesktopX..?
Thanks again.