Nodes in VBox have the same values from localToScene.

var b1=Button {text: "Button1"}
var b2=Button {text: "Button2"}
var aVBox = VBox {content: [b1,b2]}
Stage {
    scene: Scene
        width: 100
        height: 100
        content:[aVBox]
println("{b1.localToScene(b1.boundsInLocal)}");
println("{b2.localToScene(b2.boundsInLocal)}");I expect those two buttons adjacent to each other should have different bounds in the scene. But they are almost identical. Is that a known problem?
Basically, I want to get the coordinates of nodes in a VBox in the scene.

Actually, at the time you print out the values, the layout isn't started (or finished) yet.
You can see the difference with a little change:
var b1: Button = Button {text: "Button1"}
var b2: Button = Button {text: "Button2",
action: function(): Void
println("{b1.localToScene(b1.boundsInLocal)}");
println("{b2.localToScene(b2.boundsInLocal)}");
var aVBox = VBox {content: [b1,b2]}
Stage {
    scene: Scene
        width: 100
        height: 100
        content:[aVBox]
println("{b1.localToScene(b1.boundsInLocal)}");
println("{b2.localToScene(b2.boundsInLocal)}");When I click on the 2nd button, I see different values of Y.

Similar Messages

  • All AI channels have the same value - NI PCI-6221 and NI PCI-6229

    Hello,
    I use the example aiex1.cpp for a multichannel AI read with the mseries devices 6221 and 6229.
    This example works for one channel, but the other channels have the same value (+- 0.001 Volt difference).
    For example: I set 5Volt on the first channel and then the other channel have 5Volt too.
    What should I consider in the configuration?
    Please, can someone help me?
    Best regards,
    Heiko
    Solved!
    Go to Solution.

    Hi Heiko,
    Like Moritz, I'm curious what signals you have connected to your AI channels. What voltage do you expect to read on each channel?
    Tom gave me your initialization code and it looks like you've modified aiex1.cpp. Does the example work without any changes?
    I have some more questions that will help me determine where the problem could be coming from, but these two are the easiest. We'll keep getting more and more specific as we remove possible causes.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • All AI channels have the same value

    I use the example aiex2.cpp for a multichannel AI read with the mseries devices NI6280.
    This example works for one channel, but the other channels have the same value
    For example: I set 5Volt on the first channel and then the other channel have 5Volt too.
    What should I consider in the configuration?
    beilei
    Solved!
    Go to Solution.

    Hello Beilei,
    I think that you are running into the AI ghosting issue.  Are the other channels you are using connected to ground when you connect the first channel to 5V?  If the other channels are floating, they will read the same value as the first channel...5V.
    Steven T.

  • YTD and accumul. depreciation have the same value when dpis is 2 years ago

    Hi all
    I am using FA and i have some problems. I have just setup this module and now i want to migrate assets in the system. The customer gave me an excel with the following fields that want to be in the system like: asset cost, accumulated depreciation, date placed in service, ytd accumulation and so on.
    the problems are:
    1) when i want to enter new asset manually the ytd depreciation and accumulated depreciation are required to be equal. ok so far, i register new asset on test environment and when i enter the date placed in service for example two years ago (because that is the real date placed in service of the asset) and run depreciation, the system has calculated correctly the accumulated depreciation, but has calculated the same value even for YTD depreciation which is not true, because in this case accumulated depreciation and ytd depreciation are completely different. how to solve this problem? How can i put correct values in this fields?
    2) when i enter these assets directly in the fa_mass_additions table according to the fixed assets user guide, i have the following errors: when i put "ON HOLD" on queue name, and open these assets on the system, the on hold field has no value (is empty)
    When i try to run post mass additions, the report is not finding the parameter (book) because the system is giving en error message telling me that there is no value in this list of values
    please help to solve this problems because i am not being able to migrate assets for the company.
    Thank you and best regards

    gaskins,
    You may have different Color Settings, and if you use Pantone you should be aware that the whole interpretation has changed (a number of times, most radically recently).
    If you say more, more can be said.

  • Counting Numnber of Cells in a Table that Have the Same Value

    Is there a way/formula to do this, other than they way I'm doing it now, which is by using COUNTIF? In a table with 1000 rows for instance, let's say the values in the A column are what I'm keying off. I would like a count of all the cells in the A column that have the word "example" as their value. Right now for each unique value in a cell in the A column I am manually creating a COUNTIF(A1:A1000,"<value i'm matching against>) but if there are many unique values in the A column, it's quite laborious. Ideally I'd like to just have a table generated that gives me the top 5 or top 10 most occurring cell values in the A column in the table. What's the best way to do this?

    So for instance, for a column like this:
    1
    1
    1
    2
    2
    4
    5
    I want a way to get back the number of times 1 appears in the list (3), the number of times 2 appears in the list (2), 4 (1), 5 (1), and so on. If I do a COUNTIF and there are thousands of rows, I have to manually put the matching string in each one.

  • User Logon Name (pre-Windows 2000) and Domain Name Don't have the same Value

    Hi
    is it possible to have User Logon Name (pre-Windows 2000) and Domain Name with different value?
    Exemple:
    domain name domain1.com
    and User Logon Name (pre-Windows 2000) Domain2\user

    If you have trust in place, then also you can use trusted domain name to login from trustee domain. Also, UPN suffix can be added.
    http://technet.microsoft.com/en-us/library/cc773178%28v=ws.10%29.aspx
    Awinish Vishwakarma - MVP
    My Blog: awinish.wordpress.com
    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

  • Inserting sequence value from JDBC and getting the same value back

    Hi: Gurus I have a table whose primary key is a sequence. I wonder how to make sure I get the same sequence value back for current transaction so I update the other table whose foreign key is the sequence value from first table.
    E.g lets say I do this
    String query_insert = INSERT INTO table1 (column1, ....) VALUES (HIGHLIGHT_ID_SEQ.nextval, ...);
    pstmt = con.prepareStatement(query_insert);
    pstmt.executeUpdate();
    How I make sure no other transaction update the sequence value so I can read the last inserted sequence value and update the second table with this value
    String query_select = "SELECT HIGHLIGHT_ID_SEQ.currval FROM DUAL";
    pstmt = con.prepareStatement(query_select);
    Regards,
    Rashid.

    <rant>No version again. I wonder why people requiring help want to stay anonymous and never want to type their version, only 4 digits. In this case, jdbc, not only the version of the driver is important, but also it's type. Waving a magic wand again? </rant>
    Look up the returning into clause of the insert statement in the sql reference manual for your version.
    Sybrand Bakker
    Senior Oracle DBA

  • About give from one query to other the same value of a variable

    Hi Gurus,
    my problem is About give from one query to other the same value of a variable, i have a wad with a view, and this wad has some bottoms in javascript to go to anothers wad with charts, the problem is when i ran the query one, i put a value = calyear:2008 (Obligatory Variable), but when i click the bottom to go to the other query with the same variable, he ask me again a value,
    i want write a value just one time, and the others wad can recieve the first value that i put when the wad opened.
    i really need it , thanks !

    Hello Jorge,
    What you need here is Replacement path variable. Check out this link for more details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    In the second query where you need the value (calyear:2008 from first query) create a Variable for calyear of type Replacement path, in Replacement tab you can select either query or variable by which it has to replaced. In your case, it has to be variable from the first query.
    Do let me know if this works. If this does not work I suggest you to use Web APIs to replace the variable values using Web APIs. Check out the details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/4d15422ecce02ce10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    Srini

  • I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don'

    I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don't want us to use Firefox.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; FNGP_SYS)

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer.

    How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer. If I have a user name then where do I sign into Firefox, it should be that easy but I can't seem to figure it out.

    Hey susanneyes,
    Sounds like you want to set up Firefox Sync. This will allow you to keep all of your instances of Firefox synchronized. Just follow the steps in [https://support.mozilla.com/en-US/kb/what-firefox-sync?s=sync&r=0&as=s this article] and you'll be set.
    Hopefully this helps!

  • Can I sync podcasts and ITunesU. from one computer to another that both have the same acount.

    Can I sync podcasts and ITunesU. from one computer to another that both have the same account.

    No.  Time Machine won't get your boot camp partition back.  There are excellent utilities that move entire hard drive contents among hard drives such as SuperDuper! and CCC, but as far as I know they don't work with boot camp partition.  My suggestion: reinstall Mac OSX on your new Mac (you don't want to hold Option key to start it everytime anyway), partition it with boot camp exactly (or similarly) as you did to your previous Mac (install the same operating system, which should be one of the Microsoft Windows I assume).  Use Migration Assistant as kaz-k suggested to move all the stuff on the Mac partition of your previous Mac.  Reboot both your Macs from the boot camp partition - I assume they are all on Windows platform.  Now you have two computers on Windows platform.  Use Norton Ghost or similar tools to migrate all the stuff from your old machine to your new machine.  Hope this helps.  Backup all your data before such operation.  Good luck.

  • HT204380 Can I facetime talk from my Iphone to my Ipad if they have the same apple ID?

    I want to talk to my child when I'm not at home.  We have an Ipad that is in our house, and I have an Iphone on me all the time.  When I call my e-mail address from my Iphone, it rings on my Ipad, but immediatly says it is busy.  Is this because I have the same Apple ID set up for both devices?  Is there a way to make it work anyway?

    both superiormac and iCrizzo are wrong i have an iphone and an ipad 2 and have tried the same.
    the key is to call the mobile no. (with which you registered the iphone) using the ipad or call the apple id you have on the ipad from iphone. But you have to sign out from the apple id from the facetime option in the iphone.

  • My itunes account was set up under an email account that has been deleted. I started a new itunes account but have the same device as with the old account. How do i keep my music thats on my ipod touch from being deleted when i sync it to my new account?

    My itunes account was set up under an email account that has been deleted. I started a new i tunes account but have the same device as with the old account. How do i keep my music thats on my ipod touch from being deleted whin i sync it to itunes after purchasing new music?

    I have the same problem (deleted email account). I think I mistakenly set up an account when I was buying an Apple product online, not realizing that it would be the same ID as my iTunes.
    What is the way to actually contact Apple?
    I have been clicking around in circles for hours! Will I have to pay them to resolve this? I don't have any products still have applecare . . .

  • We have two iPads. mine is the first one purchased. I opened iTunes to put some photos from the Mac to my wife's iPad. I plugged in my wife's iPad.  Both ipads have the same apple id and password. iTunes synced everything from my iPad to my wife's iPad. N

    We have two iPads. mine is the first one purchased. I opened iTunes to put some photos from the Mac to my wife's iPad. I plugged in my wife's iPad.  Both ipads have the same apple id and password. iTunes synced everything from my iPad to my wife's iPad. Now we have two identical iPads looking like mine. Everything on her ipad seems gone and replaced with mine, all her recent holiday photos, emails, settings, etc etc seem gone. 
    I'm toast!
    Help!!
    LJ

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Hi i have the same apple id for my iPad and my mac. my iPhone has a different one. My i cloud on my mac seems to be the iCloud on my iPad, if that makes sense so its not sending my photos from my mac to the cloud. how do i change it to upload mac?

    hi i have the same apple id for my iPad and my mac. my iPhone has a different one. My i cloud on my mac seems to be the iCloud on my iPad, if that makes sense so its not sending my photos from my mac to the cloud. how do i change it to upload mac pictures instead? thanks

    Did you go into Settings > Store and then tap your old ID, sign out and then enter your new ID?

Maybe you are looking for