Tech Support > Computer Hardware > Desktops > Re: Help with scripting
Re: Help with scripting
Posted by Philip Powell on December 9th, 2004


It looks like there is a problem with resizing activex controls. I have
tried here and can get the code to work and the object appears to stretch
but actually the content stays the same while the object size gets bigger.
So I get black borders wherever I drag wider and chopped content if I drag
smaller than the original width.

The Activex control for the web browser does not appear to offer the
capability to resize it as width and height are read only values. The DX
developers would know more about whether these are limitations imposed by DX
and can be worked around easily or ones imposed by the activex control
itself.

Phil
"Wolf" <Wolfwood@jam.rr.com> wrote in message news:kK4mHEX3EHA.3048@Solo...

--------------------------------------------------------------------------------






Posted by Fix on December 9th, 2004


Same thing happens with the DesktopX text box activex control : black
borders when you try to resize it... I've reported it, but it's been exactly
the same thing as when I've reported anything : no answer (that's the
reason why I've decided to post some of the bugs I found in DX - and have
reported - on this newsgroup too, you'll see them in the «my most annoying
bugs...» post dated 18/11/2004... unfortunately this post had no answer
either ...)
Now anyway this is «just» a software, and even if I find it veeeeeeeeeery
cool (some of you may know it already, since I'm an intensive DX user for
the beginnings of the DX adventure ) it will only stay a software for me
So even if it has some bugs, he, I'll sleep tonight anyway (well I will
not, but it's not because of DX).
Don't know why I write this here, since it's not the subject, I just need to
say it... Maybe that's because these days we see posts like "it has some
bugs, give my money back" more often than before I *LOVE* DX, but I still
know it's not the real life
Best regards,
Fix

"Philip Powell" <pjpowell@clara.co.uk> a écrit dans le message de news:
i7L5d$i3EHA.2396@Solo...


Posted by TheGreenReaper \(Laurence Parry\) on December 10th, 2004


Know that this problem did get into the bug database. People are not
ignoring you. It's just that it hasn't been fixed yet. :-)

--
TheGreenReaper (Laurence Parry)
http://www.greenreaper.co.uk/



Posted by Wolf on December 10th, 2004


TheGreenReaper (Laurence Parry) wrote:
Hey GreenReaper, I was looking at your website, and might have found a
solution for the stretching in your skin optimization tips article.

"· Rule 1: Tile, tile, and tile again."

Instead of stretching the image could it just keep placing repeats of
the image in between?

Posted by TheGreenReaper \(Laurence Parry\) on December 10th, 2004


You could, but what is the problem with stretching? You have to turn it
on for A and C in Object Properties/States/Images/Advanced first, of
course. After that just have B's onmove resize both A and C and that
should work. :-)

--
TheGreenReaper (Laurence Parry)
http://www.greenreaper.co.uk/



Posted by Simon Justice on December 10th, 2004


It does work well. I just tried it.
Looks a bit kludgy even on a high end machine but that's the way to do it, I
fear

"TheGreenReaper (Laurence Parry)" <greenreaper@hotmail.com> wrote in message
news:eHBkWcn3EHA.3280@Solo...


Posted by Wolf on December 10th, 2004


TheGreenReaper (Laurence Parry) wrote:

Posted by TheGreenReaper \(Laurence Parry\) on December 10th, 2004


Well, something like (in B's script):

Sub Object_OnMove(x, y)
Dim A, C, NewWidth
Set A = DesktopX.Object("NameOfA")
Set C = DesktopX.Object("NameOfC")
' Same for both A and C, assumably . . .
NewWidth = B.Left - A.Left
A.Width = NewWidth
C.Width = NewWidth
Set A = Nothing
Set C = Nothing
End Sub

Might have to be tweaked for your exact setup.

--
TheGreenReaper (Laurence Parry)
http://www.greenreaper.co.uk/



Posted by Wolf on December 10th, 2004


TheGreenReaper (Laurence Parry) wrote:
Ok, I tried it and it worked, on B and C (Right and Bottom), but on A
and D (Top and Left), it doesn't want to stretch correctly; it is
supposed to stretch in reverse, but it stops at the original image.


Similar Posts