Set Position of Symbols
Hi all. I'm using Flash 8 and have created some slideshows.
I've made symbols to navigate between the slides, and I want them
to to be in the exact same position on each slide--or at least
appear to be in the exact same position from slide to slide. I've
used the Info panel to specify a set position, and have even locked
them once set. They still jump around from slide to slide, and I
don't want the user to have to move the mouse chasing them. Any
ideas how to stop this? I've turned snapping off, as having it on
seemed to make them move around more. And I can set the position
where I want, save it, publish it, and when I check again, the
symbol has drifted from the position I stipulated.
Thanks,
Chris
Thanks for your help. It confirms what I had already
suspected. I had started off placing guidelines to mark where I
wanted the symbols and decided that the reason I ran into this
issue is because they were not aligned at the exact same spot,
slide to slide. That's when I turned to using the Info/exact
positioning. I'm reasonably sure I can get the y-axis lined up, but
it's the x-axis that most concerns me. Thanks again. I really
appreciate your time.
Chris
Similar Messages
-
Where do I find the "Maestro" font in Photoshop? It used to be included with all the other fonts. It is a set of musical symbols. Thanks.
The only way I know to achieve this would be to create three separate bookmarks on the Bookmarks toolbar and click on a one that you want to load in the current tab. You can also try to right-click the Back arrow and click the entry at the bottom of the list to return to the first page.
-
Setting position of desktop window
Hello,
I'm probably dreaming, but seems to me I've done this before; no success now.
This works:
Tell app "Finder"
open startup disk
set position of container window of startup disk to {50,50}
end tell
This doesn't:
Tell app "Finder"
open file "PT.rtf" of startup disk --this opens properly
set position of (?) to {50,50} --*
end tell
* The goal is to position the window of "PT.rtf"; have tried several things for ?, including a window ID approach, but always get error
An unrelated (I think) TextEdit question:
I've created a formatted TextEdit file with AS, setting font characteristics, bounds, etc. -- and then saved it to be called by another script at another time (that works). Is there any way to edit the properties of that file without editing and rerunning the script that originally created it? For example, just changing the bounds? If there is, I haven't found it.
Thanks> The primary question had to do with setting the POSITION (not the bounds) of a TextEdit window on the desktop. This seems to me to be a Finder task
Why do you think the Finder has anything to do with what another application does with its windows? It sounds like you're confusing desktop with screen. The Finder manages the desktop (disk icons, files on the desktop, etc.), but has no control over what any other application does with its windows.
If you want to control ApplicationX's windows then you need to tell ApplicationX what to do with them, not the Finder.
If I dissect your script:
Tell app "Finder"
now we're talking to the Finder
open file "PT.rtf" of startup disk
This opens the file, as you expect. The Finder uses the system directory to work out which application should handle .rtf files.
set position of container window of file "PT.rtf" of startup disk to {50,50}
'container' is a Finder object that relates to the item (folder, disk, etc.) that the target file is in. In this case the 'container' of the PT.rtf file is 'startup disk'
--or of "window 1 of app "TextEdit"
This is getting closer, but the Finder can't manipulate other application's objects
Kel's earlier suggestion is the right approach - once you've opened the document (which, incidentally, doesn't need the Finder at all), you tell TextEdit to set the window position as required. However, the kicker is that you didn't look at TextEdit's dictionary - if you did you'd notice that there isn't any position property for a window in TextEdit - you have to use bounds:
<pre class=command>tell application "Finder"
open file "PT.rtf" of startup disk
end tell
tell application "TextEdit"
set {l, t, r, b} to bounds of window 1
set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
end tell</pre>
To explain, 'bounds' represents the four corners of the window - left, top, right, bottom. To reposition the window you provide four new coordinates. In my example, I set the top and left coordinates to 50 and calculate new bottom/right coordinates by adding 50 to the current window height (b-t) and width (r-l).
Incidentally, this is why I recommend not using the Finder to open the document. While it may be true that on your machine, today, TextEdit is the default application for .rtf files, it might not be true tomorrow, or on someone else's machine - you could change to SuperDuperText.app as your preferred .rtf application, so now you're asking the Finder to open the document (which will use SuperDuperText.app), then telling TextEdit to set the window bounds, even though it has no idea that you've just opened a document in some other application.
A better approach is to do it all in one tell block, targetting the specific application you want:
<pre class=command>tell application "TextEdit"
open file (path to startup disk as text) & "PT.rtf"
set {l, t, r, b} to bounds of window 1
set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
end tell</pre>
>When the script which created the TextEdit document is run, the window position does get set properly, but in accordance with the bounds. When the document is saved and then opened, however, the positioning appears random (although the bounds remain correct).
This may be the crux of the problem - TextEdit documents do not save any position information. Because plain text and .rtf documents are expected to be portable (cross-platform), they don't store any position information since it may not be relevant to the target application. In this case, TextEdit is using its own algoritm to work out where to open the window, typically based on some offset from the last opened window.
In short there just isn't any way to store a window position in a plain text document. -
CAN'T SET POSITION OF A MODEL RIGHT
hi
let's say that I load a model into my java progrem, and I want to place it in a (x,y,z) position , so that it's bottom would tuch the x,z plain - i.e. the y=0
now i can get the models height with the bounding dimensions of the branchgroup that contains it... , but still when i try to set the position so it's bottom will be on the y=0 plain I just can't do it and i need to adjust manualy the location (adding a float to the y value until i see that it fits)
, and the position of the model prespectivly to the y axis value that i give it , changes from model to model!
let's say that i adjust a model's position manualy , then when i load another model , that old adjusment doesn't work
basically my problem is , that when i give the model a y location , i don't know how it will appear in respect of the value....
in a box or a cylinder , the point is the middle of the shape , but in the model it's just not like it.When you create your model, you should create it so that 0,0,0 is at its feet in the modeller. Then it'll be easy to set its position because you'll be setting the position of its feet.
-
How to add text in .ai file and set position, font, size and colour
I want to place multiple lines of of text (individually) into .ai file and set size, font, colour and position for each.
Preferably text should have origin in a single point (rather than be framed)
Hope anyone can help me out.
Thank you in advance.Here's what's in the Scripting Reference
Creating and modifying text frames
// Creates a document with text frames displaying path, area and point
// text, changes the content of each frame then deletes the 2nd frame
// create a new document
var docRef = documents.add();
// create 3 new textFrames (area, line, point)
// Area Text
var rectRef = docRef.pathItems.rectangle(700, 50, 100, 100);
var areaTextRef = docRef.textFrames.areaText(rectRef);
areaTextRef.contents = "TextFrame #1";
areaTextRef.selected = true;
// Line Text
var lineRef = docRef.pathItems.add();
lineRef.setEntirePath( Array(Array(200, 700), Array(300, 550) ) );
var pathTextRef = docRef.textFrames.pathText(lineRef);
pathTextRef.contents = "TextFrame #2";
pathTextRef.selected = true;
// Point Text
var pointTextRef = docRef.textFrames.add();
pointTextRef.contents = "TextFrame #3";
pointTextRef.top = 700;
pointTextRef.left = 400;
pointTextRef.selected = true;
redraw();
// count the TextFrames
var iCount = docRef.textFrames.length;
var sText = "There are " + iCount + " TextFrames.\r"
sText += "Changing contents of each TextFrame.";
// change the content of each
docRef.textFrames[0].contents = "Area TextFrame.";
docRef.textFrames[1].contents = "Path TextFrame.";
docRef.textFrames[2].contents = "Point TextFrame.";
redraw();
docRef.textFrames[1].remove();
redraw();
// count again
var iCount = docRef.textFrames.length;
Your are looking stuff with the pointTextRef. -
I am trying to control the Flash player browser plugin from
Javascript.
- I need to set the start position to play, based on time.
example, setPosition(10 seconds)
However I notice that the flash player API is based upon
number of frames.
for example, the methods TotalFrames() and GotoFrame() are
based on frame number.
How do I convert it to time? I don't see a frame rate
variable.
I don't see a call to access this - but the duration of a
clip is always shown near the slider
- can I also query the duration from the player?
- I also need a callback into my Javascript object when an
event occurs - for example,
when the player stops playing because it is stopped by the
user. Should work on earlier versions than Flash 8.
Any help appreciated.
thanks,
Anilno replies?
-
How to Set Position Cursor Option to Non key fields in Table Maintenance .
Hi,
I have created a Ztable and i am using table maintenance for that table. In TMG ,by default we have position cursor option to key fields only . User wants that position cursor option for non key fields also. Please help me out of this issue .
How to provide Position Cursor option to Non key fields.
Thanks & Regards,
Prasad.Hi Nabheet,
I tried using TYPE S DISPLAY LIKE E and am setting vim_abort_saving as X and sy-subrc as 4. However, this is also not enabling the fields. In this case, the first 2 fields - key fields are getting enabled but not the required ones. The above snapshot is for the same.
lv_date1 = table1-date1.
lv_date2 = table1-date2.
lv_diff = lv_date2 - lv_date1.
IF lv_diff LT 0.
CLEAR: lv_err_msg.
lv_err_msg = text-005.
MESSAGE lv_err_msg TYPE 'S' DISPLAY LIKE lc_e.
vim_abort_saving = lc_x.
sy-subrc = 4. -
Set position of dialogbox depending on screen resolution
Hi,
Could you tell me how I can set the position of a dialogbox container (CL_GUI_DIALOGBOX_CONTAINER)depending on the current screen resolution?
Thank you for your help,
FabianHi,
When u create the Dialogbox object,u have the option of specifying the height,width of the dialog container.
Dialog container
go_dialog_container TYPE REF TO cl_gui_dialogbox_container,
CREATE OBJECT go_dialog_container
EXPORTING
PARENT =
<b>width = 400
height = 150</b> style = cl_gui_control=>ws_sysmenu
REPID =
dynnr = '100'
LIFETIME = lifetime_default
<b>top = 100
left = 350</b> caption = 'My dialog box'
NO_AUTODEF_PROGID_DYNNR =
METRIC = 0
NAME =
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
EVENT_ALREADY_REGISTERED = 6
ERROR_REGIST_EVENT = 7
others = 8.
IF sy-subrc <> 0.
Do some error handling..............
ENDIF.
Hope it helps u.
Kindly reward point if u find it useful.
Thanks&Regards,
Ruthra -
Set Position of Window after action
Hello Experts,
is there any oppurtunity to set the position of the scroll - bar to the top after execute a action?
Many Thanks
MarcoI have now implemented following code in my ModifyView:
IWDAttribute Info attribute = wdContext.node<MyNode>.getNodeInfo().getAttribute(IPrivateMyView.IMyNodeElement.Attribute);
wdThis.wdGetAPI.requestFocus(wdContext.current<MyNode>,attribute
But the focus will not set to my InputField which is bound to the Attribute
Any ideas why?
Regards
Marco -
Dynamic created component, problem to set position
hello,
I want to create in dynamic way label component and put it on GridPanel in given position. How can I set this position(x,y) to created component?
thanks in advanceHi, Jeff.
Just don't want to cross post the same answer all over the forum. So I gave some inputs on the topic in this message: http://forums.sdn.sap.com/thread.jspa?messageID=11127647�
Hope this will help you. -
MediaElement can not set Position when file reaches NaturalDuration
I have created a mediaplayer in which I added a button to go one frame forward.
I'm getting the total duration after the media is opened with
mediaPlayer.NaturalDuration.TimeSpan
In this case the value is {00:02:27.7720000}
Every time I click on the button I do
// Add one frame
var frameTimeCode = TimeCode.FromFrames(1, SmpteFrameRate.Smpte25);
var newTime = time;
if (forward)
newTime = time.Add(frameTimeCode);
// If newTime is bigger than TotalDurationTimeCode, setting the position should automatically set it to TotalDurationTimeCode.
// But still checking newTime. Just to be sure
if (newTime > TotalDurationTimeCode)
newTime = TotalDurationTimeCode;
mediaPlayer.Position = TimeSpan.FromSeconds(newTime.TotalSeconds);
After this, I get the position with
currentPosition = mediaPlayer.Position;
If I let it play, it plays until total duration is reached. Same goes for fast forward.
But if I go frame by frame, I can't get beyond {00:02:26.7720000}
It seems like I can't set the position once it reaches {00:02:26.7720000}.
Also, when I rewind one frame from total duration, it skips to {00:02:26.7720000}.
I tested with another file and that one also has a one second difference in total duration and position.
- Edit -
If I get the position right after I set it, than I do get the right position.
But if I get the position later it will be set to {00:02:26.7720000}, even if I set the position manually to a value between {00:02:26.7720000} and {00:02:27.7720000}, it will jump back to {00:02:26.7720000}That was one of the things I found too.
But that doesn't explain why it does get the right position (and plays to the end) when playing normally or in fast forward.
The only difference is that I get the current position in a DispatchTimer when playing normal or in fast forward.
ticker = new DispatcherTimer();
ticker.Interval = TimeSpan.FromMilliseconds(interval);
ticker.Tick += delegate
PositionUpdateIndicator();
private void PositionUpdateIndicator()
currentPosition = mediaPlayer.Position;
// Other code that updates mediaPlayer.Position
When I get the current position per frame, the DispatchTimer is stopped and I just call
PositionUpdateIndicator();
- Edit -
Oh wait, I see another difference. When I do the frame forward, I also Pause the player.. Maybe that is messing things up. I'll be continuing my research tomorrow. -
Excel Insert graph set position
Hello,
I want to generate an excel report with a graph.
I use the VI "Excel Insert Graph.vi" to set the parameters for position and size, but in the report the graph use only the size parameter. I can't set the position of the graph in y report. See attachment.
Does anybody have a solution or an idea?
Attachments:
Excel_report.zip 41 KBNo one answered this question but 4 years later I ran into the same problem. So here is why you cant set the position with the position/size input of the Excel Insert Graph.vi:
You connected the string "A4" to the "name ("")" input of the insert graph vi. (like on the Bar Graph(Excel). vi example). If you do that, then the graph start position will be column A, row 4, no matter what you write in the position/size input.
Hope this answer can help oher people who use the labview example to base their excel vi on. -
How to set position of scrollbar
Hi,
I need to set a scrollbar at specific position depending on buttons a user would click. Does anyone has an idea on how to do this. Thanks
NessenHi,
sorry I did not express my question properly. I've got a JscrollPane that I want to make scroll to a specific position when a button is pressed. I'm initiallising Jscrollpane like this:
JScrollPane scrollPane = new JScrollPane(disp,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
is there a way to do this,
thanks
Nessen -
Option-Shift Drag sets position to 1 1 1 1: Bug or feature?
When I option-shift drag on a region's position in the Event List, it sets the position to 1 1 1 1. Just curious if this is a bug or a feature? Despite the fact that I have found a use for this, it doesn't make a whole lot of sense for Logic to act this way. Thanks.
-BenWell it looks like your exact problem is listed on that incompatibility list:
JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
aTimeStamp.compareTo(aDate) //NO LONGER WORKS
This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
For more information, see bug 5103041.
Michael Bishop -
Embed full character set with Font Symbol
I'm dealing with a problem that's been mentioned here on the
forums before, but never really been resolved (or not that I can
find). My project uses a series of TextFormats and Dynamic
Textfields created with the "createTextField" method. I'm trying to
make the document support multiple languages (26 to be exact),
however, I've hit the problem that occurs when you go to your
library, and embed a new font (and assign it a link ID)- It doesn't
seem to embed all characters of the font-set.
Is there something that can be done to alter this? or trick
flash into embedding the full characters? Somebody mentioned it
only embeds the characterset of the current language selected on
your OS, is that the case? I'm using Flash 8 Pro with WinXP SP1.
Assistance would be greatly appreciated with this
one...Hi,
Did you find a solution to this? I'm having the same problem.
I have a font which I bought as it boasted to contain Central
European characters, and indeed it does. However when I create a
font symbol they don't seem to be included.
Grateful for any assistance.
Simon
Maybe you are looking for
-
Unable to see a column of a table in portal for a particular User
Hi, A particular user is unable to see a particular column of a table in the portal . The application is developed in Webdynpro ABAP. The table contains two columns. Both the columns contain text type fields. What appears to the user is that the left
-
I recently switched my application that uses EWS from an on-premise Exchange Server to Exchage Online through Office356. The process worked just fine for several days, then I started getting the following errors; Error accessing [USERNAME] email acco
-
I am trying to back up my mail (5.1) directories but I can no longer locate them. They used to be in the user library. Would be grateful for some assistance.
-
Removal of Vodafone graphic on power up and down 5...
I have 5800 xpressmusic which was originally supplied aqs a Vodafone upgrade but never used. In it's unlocked state I have begun using it on O2 (in UK) and it works just fine. When the phone is powered up or down, after the Nokia logo graphic display
-
Missing the "none" option in presets when adding user
SL Server, fully updated When I go to add a user, I am missing the preset 'None" I have 6th grade, 7th grade, 8th grade and Faculty. Why would the None option be gone, I thought that was always there. Thanks in advance