Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 302947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:08:38+00:00 2026-05-12T07:08:38+00:00

Why are my buttons not positioned at 0x0 within the box panels ? main:

  • 0

Why are my buttons not positioned at 0x0 within the box panels ?

main: layout [
    size 680x400
    origin 0x0
    space 0x0
    pad 0x0
    at 0x0

    across       
    Menu1: box brick 200x200
    return     
    Menu2: box blue 200x300
]


Menu1-items: layout [
    origin 0x0
    space 0x0
    at 0x0
    button "1"
    button "2"
    button "Quit" [quit]
]

Menu2-items: layout [
    origin 0x0
    space 0x0
    at 0x0
    button "3"
    button "4"
]    
Menu1/pane: Menu1-items
Menu2/pane: Menu2-items
Show Menu1
Show Menu2

View Main
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:08:38+00:00Added an answer on May 12, 2026 at 7:08 am

    The menu1-items layout itself has a default offset. Ditto for menu2-items.

    There are two ways to address that. I’ve used one method for menu1-items, and the other for menu2-items. Pick the one you prefer:

    main: layout [
        size 680x400
        origin 0x0
        space 0x0
        pad 0x0
        at 0x0
    
        across       
        Menu1: box brick 200x200
        return     
        Menu2: box blue 200x300
    ]
    
    
    Menu1-items: layout/offset [    ;; added /offset
        origin 0x0
        space 0x0
        at 0x0
        b1: button "1"
        button "2"
        button "Quit" [quit]
    ] 0x0                           ;; added 0x0 for value of /offset refinement
    
    Menu2-items: layout [
        origin 0x0
        space 0x0
        at 0x0
        button "3"
        button "4"
    ]    
    
    menu2-items/offset: 0x0         ;; inserted setting of /offset variable
    Menu1/pane: Menu1-items
    Menu2/pane: Menu2-items
    Show Menu1
    Show Menu2
    
    
    View Main
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app has several buttons which trigger different events. The user should NOT be
For some reason my Submit and Cancel buttons are not being wrapped in the
I have the following code layout in mxml. The button will be positioned correctly
I am creating radiobuttons positioned horizontally, I am showing some and not showing others
Width + wrap_content works fine with other single line TextViews within my layout. However
Printing button is not shown in the report toolbar when they are opened in
Why when I set enabled=false on a button does it not render correctly in
I am trying to center a div button and its not working here is
I have a ASP.NET page with an asp:button that is not visible. I can't
Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.