Mouse position over text frame
Hello,
Is it possible to work out the insertion point in a text frame by having just the mouse postition?
Thanks.
Yes
Search for HitTest.
Dirk
Similar Messages
-
Hallo,
is it possible to get the position of the mouse relative to the Frame and not to the component where I added the MouseListener?
kind regards
MarkusYou could first check where the component starts in the frame and then add those starting coordinates to the coordinates. If there is a faster way to do this please post it
-
Hi,
I need to get notification when user click inside a text frame (textStrory). I had gone through the IEventWatcher but I am not getting on which should I place this interface.
Any Suggestion will be greatly appreciated.Yes
Search for HitTest.
Dirk -
Random text not clear until mouse runs over text
When using Firefox some letters or words are not clear until I pass the mouse over them; then they appear normal. Letters seem broken and slightly faint until they are "moused." Other parts of the screen are fine. This only happens on my main monitor with a DVi-D connector to the PC. It doesn't happen with my second monitor which has an analogue connection. My main monitor also has a D-SUB socket but not on my graphics card. No problem with word files or graphics or videos.
I couldn't update my graphics driver so i tried your alternative suggestion.Seems to have worked. Thank you. I didn't have this problem with Internet explorer which I tried, so it must have been the Firefox acceleration. Thanks again.
-
How do I disable the annoying mouse pointer ballons when mouse is over text
when I point my mouse pointer to a bookmark or underlined text in say an email or even on a website I get those annoying balloons that popup with info and maps etc on what I am pointing at...I want that feature disabled it's extremely distracting and I cant find how to do it can you help? I am running Win7 and Firefox 4.01
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Change X, Y position of a text frame based on some conditions
Hi All,
I am trying to re-position the Y position alone of all text frames in a documennt if that text frame has certain Y position. Here is the code I tried.
It works, but, it place all the text frames in to the given myTextFrame.move ( ["216.425 pt","54 pt"] ); one on another. Whereas, I need to change Y position of only the text frames with the following conditions.
The conditions are:
If X="216.425 pt" AND Y="103.89 pt", change to X="216.425 pt" and Y="54 pt" OR
If X="216.425 pt" AND Y="78.945 pt", change to X="216.425 pt" and Y="54 pt" OR
If X="216.425 pt" AND Y="79.157 pt", change to X="216.425 pt" and Y="54 pt" OR
If X="213.425 pt" AND Y="486.647 pt", change to X="216.425 pt" and Y="54 pt" OR
If X="213.425 pt" AND Y="74.409 pt", change to X="216.425 pt" and Y="54 pt"
Please help me on this to add the above conditions into the following code and reposition only the text frames has the above said XY positions. Is there anyother way other than "move" statement?
var myDocument=app.activeDocument;
var myPages=myDocument.pages;
for(p=0;p<myPages.length;p++) {
var allTextFrames=myPages[p].textFrames;
for (s=0; s<allTextFrames.length; s++) {
var myTextFrame = allTextFrames[s];
var myTextFrameBounds = myTextFrame.geometricBounds;
var properly_aligned = "54 pt";
if ((myTextFrameBounds[0] = "103.89 pt") && (myTextFrameBounds[1] ="216.425 pt")) {
myTextFrame.move ( ["216.425 pt","54 pt"] );Hi Jongware,
Thanks for your reply.
I have modified the code little bit after referring one of the post. Here is the updated code. It is working fine for the whole number (var oldposition1) as input value and does not work for decimal values (var oldposition2, var oldposition3, var oldposition4 and var oldposition5). However, it repositions the frames with decimal values (newposition1, newposition2 and newposition3). I am facing problem with the decimal input values for original position of text frames. Is there any other way to give decimal values as input as my document comes with these decimal values as X, Y position.
var oldposition1 = [216, 103] // original position, upper left corner
var oldposition2 = [216.425, 78.945] // original position, upper left corner
var oldposition3 = [216.425, 79.157] // original position, upper left corner
var oldposition4 = [213.425, 74.409] // original position, upper left corner
var oldposition5 = [213.425, 486.647] // original position, upper left corner
var newposition1 = [216.425, 54] // new position, upper left corner
var newposition2 = [36, 54] // new position, upper left corner
var newposition3 = [216.425, 437.4] // new position, upper left corner
var myObjects = app.activeDocument.pageItems.everyItem().getElements();
for (var i=0; i<myObjects.length; i++){
if (Math.round(myObjects[i].geometricBounds[1])==oldposition1[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition1[1]){
myObjects[i].move(newposition1);
else if (Math.round(myObjects[i].geometricBounds[1])==oldposition2[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition2[1]){
myObjects[i].move(newposition1);
else if (Math.round(myObjects[i].geometricBounds[1])==oldposition3[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition3[1]){
myObjects[i].move(newposition1);
else if (Math.round(myObjects[i].geometricBounds[1])==oldposition4[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition4[1]){
myObjects[i].move(newposition1);
else if (Math.round(myObjects[i].geometricBounds[1])==oldposition5[0]&&Math.round(myObjects[i].ge ometricBounds[0])==oldposition5[1]){
myObjects[i].move(newposition3); -
Divide chracters in text frame
Dear All,
Hoping my message find you well,
I'm sending this messgae regarding this link : http://forums.adobe.com/message/4001567
Just need a favor with all my respect to you and i think you will not let me down
asking u for 2 script to divide characters in the textbox like the following:
1st : (TEXT FRAME) : Each letter alone and delete the space character .. with out moving any character from it's position
2nd : (TEXT FRAME) : Each word alone and keep the space character
"both in multiple text frame"
and I would be really appreciate youHi bro just remind you
-
Text mouse role over do something
Hi,
In a dynamic text field how do you send a message say that
the user just rolled over word three therefore change
its color to red or do something else. Basically I'm puzzled
in text fields how you get the mouse roll over to trigger off a
word.
How do you do it? SelectCaret position a person has to click
on the word. What I'm wanting is a mouse roll over trigger.
Thanks,What i need is for 500 pages of text (pretty hard to turn
each word into a button for 500 pages of text). Is there a way to
do it in a dynamic text field without converting each word into a
button?
Thanks, -
Mouse over text/ image appears
Does anyone know if you can create text in dreamweaver that
when the mouse "rolls" over the text an image appears? The text
stays in place and the image would appear in the center of the
screen... I know this is possible in Javascript, but I'm not
advanced enough to code. Is there a technical name for this type of
text effect? Any help is appreciated! Thanks.> You could also consider using css positioning
techniques. By using
> absolute
> positioned elements, Dreamweaver calls them 'layers',
you can achieve the
> same
> effect. Gooling will reveal plenty of tutorials for
using this approach.
You can achieve this effect without using absolute
positioning. DW versions
earlier than CS3 required the AP for the show/hide UI to find
the element.
DWCS3 does not.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Nick Barling" <[email protected]> wrote in
message
news:[email protected]...
> Hi,
>
> There are a number of ways in which you can create the
effect you
> describe.
>
> The technique is called a 'disjointed rollover' and
fairly easy to create
> on
> your own without being a JavaScript guru.
>
> I would recommend learning enough JavaScript to build
your own custom
> functionality because that way you know exactly what
your code is doing
> and you
> can also make use of the latest JavaScript coding
practices. However, to
> get
> you started you could use the built in functionality
within Fireworks, if
> you
> have it, to create your disjoined rollover. Once the
disjoined rollover
> is
> built you can publish an html page and the requisite
images and then
> manipulate
> the code within Dreamweaver. One warning about
Fireworks; the code
> generated
> is not the best and can be quite daunting when you try
and workout what is
> going on. I have used the CS3 disjointed rollover
functionality in
> Fireworks
> and I was disappointed not to see any improvement in the
way Fireworks CS3
> handles the code over Fireworks MX.
>
> There is a tutorial macrochat here that gives a rough
idea of how to
> achieve
> disjointed rollovers:
>
>
http://www.adobe.com/devnet/fireworks/articles/fw_macrochat.html
>
> As I said before though, I would recommend writing your
own more semantic
> JavaScript that uses the DOM approach and separates the
scripting from the
> html. A good book that covers several options is the
visual quick start
> guide,
> JavaScript and AJAX, Sixth Edition, by Negrino and
Smith. It is a good
> beginners guide and is full of great examples of common
JavaScripting
> techniques. You can also 'Google' for lots of online
tutorials for
> disjoined
> rollovers.
>
> You could also consider using css positioning
techniques. By using
> absolute
> positioned elements, Dreamweaver calls them 'layers',
you can achieve the
> same
> effect. Gooling will reveal plenty of tutorials for
using this approach.
>
> regards
>
> Nick Barling
> www.barkingweb.com
> -
When mousing over text, the cursor flickers constantly (with every letter passed) from arrow to i-beam and back. The problem occurs in both MS Word 2011 and Pages. Any idea of how to solve this annoying problem will be much appreciated. System 10.10.1 on a MacPro (Late 2013)
The mouse is controlled by the OS so don't guess any app other than a mouse driver or OS X itself would be able to cause this sort of flicker issue.
Have you seen the following and is it what you are seeing? Maybe you could make a movie (Quicktime is great for this this to make a screen recording) - but not sure how to attach a movie to these discussions as mine is grayed out and can't be selected (to the right of the insert image). Here is the what I found for a search of "mouse cursor flickers os x yosemite"
https://www.youtube.com/watch?v=ZNQ0D84DdF4
What kind of mouse are you using? Is the mouse driver up to date if it's a third party mouse? -
Cursor Mouse Over on Frame (Container) Reveals Frame Edges
I just installed InDesign CS5 and everything is fine, but there is a set preference that I want to remove that causes the edges of the Frame(s) (or Containers) to light up as I move my mouse cursor over them.
I personally find this really annoying and can't seem to find a way to turn that default setting off.
Any advice?Any advice?
Learn to live with it.
Seriously, you can't turn it off, though it apparently doesn't show in Presentation mode. I think eventuyally you get used to it, and even come to like it. I find it pretty handy now and then. -
Easing a gotoAndStop(frame) given by the mouse position
Hi there.
I have an external swf loaded into the background and i want it to go to a frame according to the mouse vertical position.
Example: when the mouse is on the bottom part of the screen the movie is in the frame 0 and when it is on the top value goes to 800.
so far i did it like this:
_root.onEnterFrame = function ()
{
var frame:Number = Stage.height-_ymouse;
bgContainer.gotoAndStop(frame);

}
But somehow i need it to ease between the values given by the mouse position so that when there is a fast movement of the mouse, the swf only gradually goes to the frame equivalent to the last mouse position.
any sugestions??
Cheers!actualFrame ist not a number NaN so i can't use it to define a frame to the clip to stop..
I just need a function that makes something like this:
_ymouse ----> clip.gotoAndStop()
1 ----> 1
800 ----> 16
800 ----> 26
800 ----> 67
800 ----> 135
800 ----> 233
800 ----> 358
800 ----> 498
800 ----> 571
800 ----> 704
800 ----> 731
800 ----> 800 -
Why States don't work on Tablet view for text frames over background image?
I have Macbook Pro with Top config on top S/W everything updated.
Using Muse.
Tablet view site.
Simple text frames buttons with states over a full width background image - DON'T WORK!
The text frame buttons are in TOP layer.
Visible but do not respond to to any touch. UNLESS I delete the background image.
Can't figure it out for days.
Please help.
Thanks
Eli @TO MUSE STAFF!!!!
I Found a major bug that needs to be fixed:
In Tablet view:
A linked text frame or state button has to be in the top layer to respond to states.
If a composition menu is opening up and covering the button when triggered - THE BUTTON WILL NOT RESPOND EVEN IF THE COMPOSITION IS CLOSED!!!
Only if the button is ARRANGED ABOVE the composition in the layer and becomes the absolute TOP OBJECT in the layer - ONLY THEN it will respond.
PLEASE LET ME KNOW IF YOU GOT IT.
I have tested it on a few projects and the bug is consistent.
[email protected]
Thanks for fixing it in the near future
Eli -
The text on web pages fades as you scroll the page, it reappears if you click refresh or move the mouse arrow over it.
I went to many different web pages and it does it on all of them including this one.
I went to the same web pages using IE 10 and the text does not fade away.
I reset FF still doing it. I uninstalled and reinstalled FF still doing it.
What could be wrong?Hello,
Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
Then perform these steps:
*Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
*In the Firefox options window click the ''Advanced'' tab, then select "General".
*In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
*Now, restart Firefox and see if the problems persist.
Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
* [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
* [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
Did this fix your problems? Please report back to us!
Thank you. -
How to get rid of "Oracle Portal" label(text) when mouse is over Logo.gif image
In several portal screens (for example:
Add Item wizard, Create Folder wizard,
Create Page Style Wizard, Account Info screen, Create Page wizard, Create Application Wizard, etc, etc.... )
there is like a Banner with the Logo.gif image and the text "Oracle Portal" displayed when the mouse is OVER Logo.gif
I know how to replace this image with our own file, but what i would like to know how to replace or eliminate the "Oracle Portal" text.
I imagine the information for this Template is stored somewhere in the database.
I will appreciate if someone can help me to identify where is located this info so I can delete/replace the text.
Any other suggestions will be wellcome.
Tks in advance
nullMalin,
when you install iAS, there is a directory
oracle_home\portal30\images where all the image files are stored.
for example, in my installation is:
D:\oracle\iSuites\portal30\images
one of the files is logo.gif, just overwrite that file with your own file (but keep the same name) and then your own logo or whatever you want will show up in the Portal.
pls note that there are different image files you may want to replace.
i hope it helps...
null
Maybe you are looking for
-
How to call a esb service from jsp
Hi, Please help me in achieving this, i would like to call have a simple UI developed in JSP which has 3 radio button namely select, update and create. I have 3 more fields namely NAME and DESIGNATION. I have created a table with 2 columns namely NAM
-
When trying to cycle through multiple open windows in Safari using Command-tilde, I get a strange behavior. Sometimes it works, sometimes it doesn't. I tried to figure out a pattern to this, but it seems completely random. Any ideas? On all other app
-
Is there a way to end a method that has no return type?
Without using an exception, as they are costly I am told, and without using may if then statements, is it possible to end a method if some criteria isn't met. example. public void doThis(){ // the method relies on the state of some // other thing
-
Trigger Available Software install on client
Hi all, Previously in CM07 with the Run Advertised Programs applet, it was possible to advertise a program as non-mandatory and then start the application installation using a VBScript (eg. icon on user's desktop). Does anyone know if it's possible w
-
Hi, i've been playing ashphalt since I got my first iPhone. Last night I saw that it on editors choice list and free for this weekend. So i installed it but later I noticed that the regular price was billed on my account. Tried online support , says