Control a button's position

I am trying to make a simple app where moving a horizontal slider will control a round button's horizontal position and moving a vertical slider will control a round button's vertical position. So far, a can't even get a numerical representation of the button's position during the execution of the app by using the line:
set the contents of text field "text1" to item 1 of the bounds of button "ball" as string
What am a doing wrong and how can I control or see the position of the button during execution?
MacBook Pro   Mac OS X (10.4.10)  

'... can't even get a numerical representation of the button's position' - ...
tell window "window01"
set tBounds to (bounds of button "button01")
set content of text field "buttonTop" to (item 1 of tBounds)
set content of text field "buttonLeft" to (item 2 of tBounds)
end tell
  Mac OS X (10.4.6)  

Similar Messages

  • Invalid control character 0 at position 7, Error Code : UFGUIEZK

    When I first login obiee dashboard, it would error about "invalid control character 0 at position 7".
    But if I click a select button, it would show the result what I want it.
    help me please.

    Hi Joe,
    (Especially using the IE8 brower)
    When I enter any dashboard pages, (not the login page...) it would error about "invalid control character 0 at position 7".
    I press the "Backspace" button. (I keep a same brower and same session.)
    Then I enter same dashboard. It doesn't mention about the error message. -_-; It works....
    What's the points is...
    OBIEE is working~
    I can use any answers... can make any dashboards.
    Everything is gonna all right...
    Except... If I wanna the any dashboard, I would enter the page twice.
    Thanks for your concern~!
    Edited by: user1121165 on 2009. 12. 15 오후 4:29
    Edited by: user1121165 on 2009. 12. 15 오후 4:33

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ?
    All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do that, any technique or I have to create a button component from scratch?
    Thanks!

    simplebuttons have upState etc properties you can use to assign movieclips to the 3 states.  you can use the currentFrame property of movieclps to (appear to) smoothly transition from one state to another.

  • Crystal report Viewer Not Showing Control Bar Button Icons

    Hi
    I am using Crystal report along with .net 2003 in web application.
    While executing, the report  its not showing any errors,but the control bar buttons(print, export, next page last page, previous page, first page, etc ) are showing without there icons.
    These invisible buttons can be found by placing the mouse over the specified area, then it shows the tool tip like print etc.
    Please give me solution.

    Would you like to have a look at these:
    [1.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303336333633373339%7D.do]
    [2.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333933313333%7D.do]
    [3.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303332333533323337%7D.do]
    [4.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333733363334%7D.do]
    [5.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313336333333303335%7D.do]
    [6.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333833393338%7D.do]
    Hope this helps!
    AG.

  • How to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe

    Hello, everyone. Using VC++, I have gotten the handle of a *.exe(built by Labview), but I cannot get the button handle. I want to get the button handle and post the message to control the button. How can I do that? When I use the SPY++, the *.exe(built by Labview) have not any child windows which is very different from the *.exe(built by VC++). In SPY++, what is the LVDChild class? How can I send the message to control the button on *.exe(built by Labview)???
    That is  to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe. How can I get it ?
    Thank you!

    hummingbird wrote:
    Thank you! But I dont kown how to use vi server to raise a value signalling event. Can we put vi server into the vc program? Can you give me some more information or some examples, hehe!
    hummingbird
    Checkout the LabVIEW ActiveX server interface in the User Manual in Chapter 20, Windows Connectivity and the VI Server Reference in Chapter 17, Programmatically Controlling VIs.
    There is a sample for Visual Basic under examples/comm/VBtoLV.frm, which should be quite simple to translate to Visual C as long as you can figure out the basics of ActiveX programming in VC (I have never done anything with ActiveX in VC). For those basics I would recommend some text book or MSDN.
    Rolf Kalbermatter 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to control the button available in SRM 7.0

    Dear ,expers :
       I work in SRM 7.0 .SP 09
    You know ,the purchaser can do the "renew "in contract in the purchaer's view .But in my case ,some purchaser can do this ,but other nerver .So I just want to control the button available though the user role .
      Or other method ?
    BestRegards !
    Alex !

    Hi,
        We can achieve this with Meta configuration . You have to  configure  the button in the following path with dynamic customer class  and method and in this method you have to check the authorization for the user for the Auth object .
    if user is not authorized you can disable this button.
    Like this you can achive the control on the button.
    ->SAP Supplier Relationship Management
         ->SRM Server
            ->Cross-Application Basic Settings
                ->Extensions and Field Control (Personalization)
                   ->Control Actions
                      ->Configure Control Actions at Item level(    Check the button is at header level or item level or sub sructure level                                                                               
    and  configure accordingly   )
    regards,
    Devi

  • How to control custom button display or hide in toolbar

    I had been added four buttons in Acrobat Tool bar.
    Now I find a function AVToolButtonSetComputeEnabledProc in SDK that this function only control the button enable or disenable.
    Now I want to control the custom button display or hide, how can I to do?
    Does this SDK have a API to achieve my  need?

    As of Acrobat X, we no longer support dynamic hiding/showing – only enable/disable.

  • Remote Control Menu Button

    Starting from the top, I have a 1st play title menu (A) with 4 buttons that are targeted to 4 other menus (B) – each of which, have multiple motion buttons leading to individual clips (C).
    I would like to be able to click on the Remote Control Menu button anywhere within the DVD and have it return to the 1st play title menu (A). In the Disc Inspector, I have set the “Remote Control” pull down menu to the 1st play title menu (A).
    I can achieve what I want by clicking on the Remote Control “Title” button but not the “Menu” button. What am I missing?
    Thanks in advance for your help.

    Sorry - I made an assumption that you were not able to go fro a track to the title menu... what you are asking is to go from a menu to the title menu by using the ;menu' key.
    Sadly, it won't be possible - the Menu key is designed to move only between tracks and menus. If you are in a track it will take you to a menu, once there, pressing it again willr eturn you to the track.
    You need to use the 'return' key to traverse through the menus, but it isn't a robust implementation in DVDSP.
    Therefore, the only way to accomplish what you want is to use the Title key on the remote control when in a menu... unless you add a button to each sub menu that jumps to the title menu.

  • Controlling window size and positioning in RH8 WebHelp

    Evening all,
    I've seen a post before about controlling the size and/or positioning or RH WebHelp windows, but I haven't been able to find it again.
    I'm generating WebHelp in RH8 and at this point am using the default skin and whatever default tri-pane and CSH windows RH chooses to use.
    Question is: how do I control the size and position of these windows? Or can I?
    I suspect they're set in a .js, but don't know which one. I know I can create new windows, and if I recall correctly, I can make one for CSH and one for the classic tri-pane help display. Is this how folks typically control the windows used to display RH content? Or do they muck about in the original .js files?
    Or, and this is the more likely, am I just being too anal-retentive about this and I should just let RH do its default thing and not worry about it?
    Thanks - I'm just a bit confused here,
    Patrick

    Hi Patrick
    If you aren't working with a programmer to connect your WebHelp to an application, you really don't have much control over the placement and attributes that are used.
    Note that when you create a project in RoboHelp HTML, you have an ability to create a WebHelp window with the desired attributes. But really, all that does is configure the way a window will open if you are using something called the "WebHelp API" to open topics. As you stated earlier, JavaScript is actually used by the API to open the window.
    Cheers... rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • .xlsm Can't exit design mode because Control 'Command Button 3' can not be created

    I have several Windows 7 Enterprise machines that cannot open one .xlsm file properly. When it opens, it is opening in Design mode rather than as a spreadsheet with macros. My users are getting the error "Can't exit design mode because Control
    'Command Button 3' can not be created". All our machines have Office 2010 ProPlus, but this file will only open on the XP PC's that have yet to be upgraded. Any ideas?

    Hi,
    How do you create the button in Excel 2010? Just insert the control manually or insert it using a macro?  This issue may be caused by the controls aren't instantiated before you can exit design mode.
    Please try the method:
    Code can only run after all controls are instantiated and properly connected. Make sure every file needed for the control is available before trying again.
    Quote from:
    http://msdn.microsoft.com/en-us/library/office/gg251344(v=office.14).aspx
    Regards,
    George Zhao
    TechNet Community Support

  • Can I control  the change bar position?

    In my attach file, I want to  control  the change bar position. the "red " change bar position.

    You can move the change bars farther away from the text frame, you can change the color and thickness of the change bars, but you cannot tell FrameMaker where to start and stop a change bar. In your case, FrameMaker is showing a change in each row of the table; hence, each change bar is shorter than the height of the row. This is the way FrameMaker indicates changes in the content of table cells. You cannot change it. You cannot tell FrameMaker to make consecutive change bars in consecutive table rows continuous.

  • I need to control flash button states within html

    I am utilizing a flash header for navigation on a site built
    in html. I need to control the button states in my flash header
    from within my html page to facilitate breadcrumbs. The header
    works in a similar manner to an expandable banner. The sub menu
    expands over the html page. However, I cannot figure out how to get
    the primary navigation buttons in the flash header to stay in the
    "hit state" so that the user knows which section of the site they
    are in.
    Can anyone point me in the right direction?
    Thanks

    You will want to use movieclips as buttons so that you can
    control what state they are in by code.
    As far as using the html to set the state, you could devise a
    scheme using FlashVars, which get designated in the embedding code
    of the html page.
    Assuming you are not using frames, and the flash is reloaded
    for each page that you navigate to, then you will have adjust the
    FlashVars code to reflect the relevant page's button.

  • Access "controls" or buttons on a LabVIEW VI with DLL

    Hello Experts,
    I have a LabVIEW GUI executable file and need to access "control" or buttons on it via another programming lanuguage (Visual Basic .NET) say if the user presses a "EXIT" button on the VB.NET GUI, it goes and clicks the "EXIT" button on the LabVIEW GUI. Is this possible to do using LabVIEW built DLL's ? If not, could you please guide me to the right apprach ?
    Thank you very much for your time !

    Yes, the front panel comes up after my calling but I am not able to access any "controls" or buttons on it. However, if now (after calling) I manually click on this front panel, it works but I want my VB.NET code to be able to do that.
    Our vendor owns the source code and they only provide the executable file to be able to communicate to their mechanical system. We, as a OEM, integrate their mechanical system into our system and provide our end customers with the VB code that controls the entire system.

  • Fit Control to Pane + Splitter Position

    Hello,
    Using Splitters makes the UI much more attractive especially when a part of a FP. can be hidden by button. I'm talking about the splitter position property / or window bounds. I like this feature but somehow I am in a little trouble with the following:
    First of all I place some splitters and place a control to the pane ( for example a listbox ) and set the control to " Fit control to pane". When I set this method, I can not set the position the splitter out of the window bound. More precisely, an error occurred when I set this value too low.
    Consequently, a small part of the pane is always visible and can not be hidden. I've attached some pictures please take a look at.
    So, when I want to hide a panel I have to set the panel content to NOT fit control to pane, it could be OK when my FP is NOT resizable but in most cases the window is resizable, so the listbox does not grow automatically.
    Any ideas?
    Thanks in advance,
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Attachments:
    Question.png ‏43 KB

    Dear Ion Rosca,
    Please take a look at the attached VI. See instructions on the VI FP.
    Thanks,
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Attachments:
    TestVI.vi ‏7 KB

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

Maybe you are looking for