Bug? B4A 5.02 - Designer

Discussion in 'Bugs & wishlist' started by NJDude, Jun 14, 2015.

  1. NJDude

    NJDude Expert Licensed User

    There's an issue with the designer, the error shown HERE occurs when you:

    In this example I have 2 buttons on the designer: StartButton and StopButton (look at the script part).

    1- Selected StopButton
    2- Deleted StopButton
    3- Run the script (an error saying that a button is missing will show up, that's fine)
    4- Selected StartButton
    5- Right clicked and selected DUPLICATE (or Copy)
    6- Gave the duplicated button the same name of the deleted button (StopButton)
    7- Run the script
    8- ERROR!!

    After that point, you cannot use the designer.

    Even if I comment (or delete) the line on the script (StopButton.Bottom = 100%y) the error still persists as you can see HERE
     
    Last edited: Jun 14, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    I wasn't able to reproduce it. Are you able to reproduce it when you start from a new layout?
     
  3. NJDude

    NJDude Expert Licensed User

    I can reproduce it at will.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you record a screencast of this (starting from a new project)?
     
  5. NJDude

    NJDude Expert Licensed User

    Ok, HERE is the screencap.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Thank you. Can you upload this layout file (before the error)?
     
  7. NJDude

    NJDude Expert Licensed User

    Here's the project.
     

    Attached Files:

  8. Erel

    Erel Administrator Staff Member Licensed User

    It was helpful. It happens when you change the name and immediately switch to "script mode" before the change is committed. If is fixed for the next update.

    The workaround is to press on Enter after you change the name. This will commit the change.

    Note that the layout is not corrupted after this error happens. You can save the layout and then close the designer and open it again.
     
  9. NJDude

    NJDude Expert Licensed User

    Another workaround is to SAVE the layout after any changes.

    Thanks.
     
  10. barx

    barx Well-Known Member Licensed User

    Told you he was good at breaking things...
     
    thedesolatesoul and NJDude like this.
  11. erosmax

    erosmax Well-Known Member Licensed User

    The Designe of 5.02 version work bad
    1) When I insert object it's not see when i call of project code;
    2) All Object have a trasparent color default;
    3) If I insert a new object with the code...it's not displayed!
    3)... I would like to return to the previous version, but I do not know if my current codes and project (saved with 5.02), will be read without problems.

    Thanks
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Note that you can return to the previous version. There will not be any problems.

    I'm not familiar with the issues you reported (and not sure that I understand them). If you can please provide more information.
    Specifically the objects defaults haven't changed.
     
Loading...