revbrowser & graphic
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
revbrowser & graphic
I want to have a line follow the cursor. No problem. Simple with only one line of code.
I also want the line to move over a revBrowser object that has had a pdf loaded. Problems-
1) The revBrowser object always seems to be "on top" and the graphic (ie the line) will not display over the browser.
2) The mouseMove event does not register when the cursor is in the area of the revBrowser object. The midpoint of the line stops at the edge of the browser.
I have found some similar problems raised in other topics, but no solution.
Thank you for any help you can offer.
I also want the line to move over a revBrowser object that has had a pdf loaded. Problems-
1) The revBrowser object always seems to be "on top" and the graphic (ie the line) will not display over the browser.
2) The mouseMove event does not register when the cursor is in the area of the revBrowser object. The midpoint of the line stops at the edge of the browser.
I have found some similar problems raised in other topics, but no solution.
Thank you for any help you can offer.
This is not a rev specific problem, it's an IE problem really. You'll find this behaviour in other programming languages on Windows also. And no way to circumvent it either.
The only suggestion I can think of is to create another stack that acts as the line, that is, if the line is simply a straight line, and set that stack as a topmost stack. Since the first stack is the one that the browser is addressed to, the second stack will not be affected by the browser wanting to be ontop of everything else.
As for the mouse tracking.. Hmmmmm... Nothing off the top of my head at the moment for that issue.
The only suggestion I can think of is to create another stack that acts as the line, that is, if the line is simply a straight line, and set that stack as a topmost stack. Since the first stack is the one that the browser is addressed to, the second stack will not be affected by the browser wanting to be ontop of everything else.
As for the mouse tracking.. Hmmmmm... Nothing off the top of my head at the moment for that issue.
I have no real expertise in programming, which can sometimes be an advantage. I just try things to see if they work without knowing or worrying about some complexities.
The RealBasic HTMLViewer seems to behave for what I am trying to do. I do not know why that is.
Gyroscope is partly correct. I do have some idea. The way Rev handles some objects would make the project much simpler and it would be my preferred approach, except for the fatal problem of the browser. I have said it before- Rev is very good and can be stunning in it's simplicity to perform powerful tasks. It can be very difficult for me to find the necessary information or approach, but that is partly my problem (time, experience, etc) and partly the software and it's documentation.
Thanks again for your help.
The RealBasic HTMLViewer seems to behave for what I am trying to do. I do not know why that is.
Gyroscope is partly correct. I do have some idea. The way Rev handles some objects would make the project much simpler and it would be my preferred approach, except for the fatal problem of the browser. I have said it before- Rev is very good and can be stunning in it's simplicity to perform powerful tasks. It can be very difficult for me to find the necessary information or approach, but that is partly my problem (time, experience, etc) and partly the software and it's documentation.
Thanks again for your help.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
It may be worth finding out. I suspect this is ultimately a case of trading one set of problems for another, except that the others aren't yet known. Determining why RB's browsers has such unusually good buffering may help avoid a more costly shift further down the road.sm wrote:The RealBasic HTMLViewer seems to behave for what I am trying to do. I do not know why that is.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
A (delayed) follow up note.
I finally had time to get back to realbasic (2008- recently released) for this project. It does NOT behave correctly. It behaves differently to revolution and some aspects encouraged me to think it would do what I want. However, the more detail I applied the more it became apparent that it will not work correctly.
Thanks again to those who helped me with this. I don't think I will be able to find an answer to my problem, at least not one that I can manage.
I finally had time to get back to realbasic (2008- recently released) for this project. It does NOT behave correctly. It behaves differently to revolution and some aspects encouraged me to think it would do what I want. However, the more detail I applied the more it became apparent that it will not work correctly.
Thanks again to those who helped me with this. I don't think I will be able to find an answer to my problem, at least not one that I can manage.
Hi SM,
To get the mouseLoc while no mouseMove message is sent, you might try to send your own message.
However, this will not tell you whether the mouseLoc is within a particular object of the website. Neither is this "simply one line of code".
Best,
Mark
To get the mouseLoc while no mouseMove message is sent, you might try to send your own message.
Code: Select all
global gMouseMessageSwitch
global gCustomMouseLoc
on mouseMessage
put the mouseLoc into gCustomMouseLoc
if gMouseMessageSwitch is "on" then
send "gCustomMouseLoc" to me in 40 millisecs
end if
end mouseMessage
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode