Figured I ask from here instead of start digging from manual.
But assume I have two Hollywood window displays opened.
Both windows are 100x100 in size.
Window 1 resides at co-ordinates 10, 10.
Window 2 resides at co-ordinates 800x800.
To give more familiar example, suppose window 1 and window 2 are showing what files are in certain folders.
Now I decide I want to move one of the files from window 1 to window 2, and how I want to do that, is to go click on window 1 filename, and then keep keeping mousebutton down, and drag the name all the way to window 2, then release the button and get the name added there.
But as the mouse travels, basically between X110 - X800, there is no Hollywood display there in middle.
Can I, and How Can I, despite that keep showing text moving between the X110 and X800 co-ordinates as well?
Or to put it other way, in case the file confuses. Could I for example have red rectangle being moved between these two windows the same way, and that red rectangle been shown between those X coords 110 - 800, which don't have Hollywood displays in them?
How to move graphics over non-hollywood screen?
Re: How to move graphics over non-hollywood screen?
trivial task 
what is inbetween ? windows desktop for example ?
maybe you can only change mousepointer to have visual effect of moving

what is inbetween ? windows desktop for example ?
maybe you can only change mousepointer to have visual effect of moving
Christos
Re: How to move graphics over non-hollywood screen?
In this case windows desktop, as I am planning a program for my own use to find sounds/music, but might release it for others too.
Changing Mousepointer came to my mind too, but unless you can change the Windows own mousepointers looks somehow in Hollywood, then it wont work, as when I tested putting one game of mine on window, which changes the mousepointers looks, then right when I moved it outside the window, it changed to windows mousepointer, and similarly when moving back it changes to hollywoods automatically.
Could trick it in way of taking a screenshot of the desktop, but then the idea of being able to use for example resource management at same time to add files wouldn't work.
Changing Mousepointer came to my mind too, but unless you can change the Windows own mousepointers looks somehow in Hollywood, then it wont work, as when I tested putting one game of mine on window, which changes the mousepointers looks, then right when I moved it outside the window, it changed to windows mousepointer, and similarly when moving back it changes to hollywoods automatically.
Could trick it in way of taking a screenshot of the desktop, but then the idea of being able to use for example resource management at same time to add files wouldn't work.
Re: How to move graphics over non-hollywood screen?
Because I find the topic interesting, I did some experimenting. How about creating a third display for moving, which takes over the graphic object if necessary? You can move it in the following way:
Code: Select all
@DISPLAY {Width = #NATIVE, Height = #NATIVE, Hidden = True}
sizeX=30
sizeY=20
CreateBrush(1, 2*sizeX+1, 2*sizeY+1, 0, {AlphaChannel = True, Clear = True})
BrushToBGPic(1, 2)
SelectBGPic(2, #SELMODE_COMBO)
SetFillStyle(#FILLCOLOR)
Ellipse(0, 0, sizeX, sizeY, #RED)
CreateDisplay(2, {BGPic=2, Color=#GREEN, X=50, Y=50, Borderless=True, fixed=True})
OpenDisplay(2)
Function p_EventMouseMove()
Local mx=MouseX()
Local my=MouseY()
Local dx = GetAttribute(#DISPLAY, 2, #ATTRXPOS)
Local dy = GetAttribute(#DISPLAY, 2, #ATTRYPOS)
MoveDisplay(mx+dx-mxoffset, my+dy-myoffset)
EndFunction
Function p_EventMouseDown(msg)
mxoffset=MouseX() ; handle position
myoffset=MouseY()
InstallEventHandler({OnMouseMove=p_EventMouseMove})
EndFunction
Function p_EventMouseUp(msg)
InstallEventHandler({OnMouseMove=0}) ; remove Handler
EndFunction
InstallEventHandler({OnMouseDown=p_EventMouseDown, OnMouseUp=p_EventMouseUp})
Repeat
WaitEvent()
Forever
Re: How to move graphics over non-hollywood screen?
Thanks! This will do.
I actually thought of moving display myself too, but I forgot that you were able to make them transparent, for which reason I thought it would be silly looking moving a rectangle display all around, but with transparency this will work nicely for the purpose.
I actually thought of moving display myself too, but I forgot that you were able to make them transparent, for which reason I thought it would be silly looking moving a rectangle display all around, but with transparency this will work nicely for the purpose.
Re: How to move graphics over non-hollywood screen?
Another question regarding this.
As my plan is to move some files from one window to another, and now the solution seems to be using display to have moving graphic, problem however now comes with finding a way to have reaction with a window where those files/graphics are dropped.
I didn't see on SetEventHandler() options list anything suitale that would trigger inactive window for this purpose.
As in, my plan is to imitate windows system in that you push the mousebutton down, and keep it down, and then drag files to other window, but when I go to that other window, there isn't anything that the other window/display would react to. Like there is no option to notice that mouse has been moved inside the window/display. And OnMouseUps don't work either, I guess the window/display needs to be active first for it to react to OnMouseUps.
so far only solution I have came to is to compare the moving graphics displays X, Y and size with other window/display X,Y, and sizes to figure out if user is trying to drop some files to another window.
But is there some option to for example trigger the DropFiles option manually? Like could I some way tell Hollywood, that what I am dragging around right now are files, and hence the dropfile be triggered when releasing mousebutton above window/display, since except for onmousedown, that seems to be only way to activate inactive window/display.
As my plan is to move some files from one window to another, and now the solution seems to be using display to have moving graphic, problem however now comes with finding a way to have reaction with a window where those files/graphics are dropped.
I didn't see on SetEventHandler() options list anything suitale that would trigger inactive window for this purpose.
As in, my plan is to imitate windows system in that you push the mousebutton down, and keep it down, and then drag files to other window, but when I go to that other window, there isn't anything that the other window/display would react to. Like there is no option to notice that mouse has been moved inside the window/display. And OnMouseUps don't work either, I guess the window/display needs to be active first for it to react to OnMouseUps.
so far only solution I have came to is to compare the moving graphics displays X, Y and size with other window/display X,Y, and sizes to figure out if user is trying to drop some files to another window.
But is there some option to for example trigger the DropFiles option manually? Like could I some way tell Hollywood, that what I am dragging around right now are files, and hence the dropfile be triggered when releasing mousebutton above window/display, since except for onmousedown, that seems to be only way to activate inactive window/display.
Re: How to move graphics over non-hollywood screen?
Yes, I also think you'll have to compare the coordinates of the displays at the MouseUp event of the moved display and then decide what to do. For windows that are not in focus, this is probably the only way to do it.