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 1040867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:16:38+00:00 2026-05-16T15:16:38+00:00

EDIT: Click here for the code . So I’m experimenting with interface building with

  • 0

EDIT: Click here for the code.

So I’m experimenting with interface building with MonoDevelop (version 2.4). I’m trying to get used to the Gtk concept of “containers within containers”. I created a vbox with two… er… boxes, put a menu on the top box, and a table on the bottom one. I set the table to have two column and five rows. On the top four rows, I put a label in the left and an entry in the right. On the bottom right cell I put a button. It looks like this:

GUIBlah Application

Here’s the things I’m struggling with:

1) How do I get the table’s columns NOT to be of equal width? Amusingly, when I added just the labels, and hadn’t added the entry boxes yet, the left column used up only the space needed for the labels. Now it’s 50/50 and it won’t budge.

2) How do I get the labels to be right-aligned, so the final “:” in their texts gets nicely aligned and close to the entry boxes? I set the “Justify” property of the labels to “Right” and was seemingly ignored.

3) The action code for the “Open” and “Close” actions under the “File” menu consist on displaying a modal message box with an OK button. But pressing the OK button doesn’t dismiss the message box, only closing the message box window does. The code is:

(new Gtk.MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok,
                  "Open Action")).Show();
  • 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-16T15:16:39+00:00Added an answer on May 16, 2026 at 3:16 pm

    1) Set at least of one the Entry widgets to “expand” and “fill” horizontally.

    2) Set the label’s Xalign property to 1.0. Justify controls layout of wrapped text, Xalign/Yalign controls the position of the whole block within the label’s area.

    3) You should Destroy() the dialog after you’re done with it. Alternatively you can Hide() it and re-use it. You should also look into using the dialog’s Run() method – typically something like:

    var dialog = new FooDialog(...);
    try {
        dialog.Show();
        var response = (ResponseType) dialog.Run ();
        if (response == ResponseType.Ok) {
            //do stuff
        }
    } finally {
        dialog.Destroy ();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the code here to work. It compiles fine. It will
Here is my spaggeti code $(#table_exams tbody tr).click(function () { window.location.hash=# +$(this).attr(exam_ID); window.location.href=/medilab/prototypes/exams/edit?examId= +
I am using Komodo Edit , a code editor. When I right click on
Here is code <h:outputLink styleClass=button value=javascript:void(0);> Text <f:ajax execute=@form event=click listener=#{commentView.saveComment} render=main_form /> </h:outputLink>
EDIT: Here's a link to show you my sample code: http://www.singingeels.com/jqtest/ I have a
I am trying to toggle the parent <li> and <button> styles. Here my code
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Is there a way to make a click-to-edit control in silverlight? I've got some
I have editable grid view, If I click on edit in any row say
When I'm editing with files on the server, and I click to edit them,

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.