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

  • Home
  • SEARCH
  • 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 7965839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:15:44+00:00 2026-06-04T06:15:44+00:00

I using the following: var list = []; lin = new gui.AWindow(); Len =

  • 0

I using the following:

  var list = [];
  lin = new gui.AWindow();

  Len = list.length;                
  lin.add(Len+1);
  list[Len] = "close button";

multiple times to generate new rows of buttons in the window. I want the event handlers when the button is clicked to give its row number.

qx.Class.define("gui.AWindow",
{
  extend : qx.ui.window.Window,
    events :
      {
        "execute"   : "qx.event.type.Data"
      },
     members :
     {
        add : function() 
{ 
            closeButton = new qx.ui.toolbar.Button("CLOSE");

            lin.add(closeButton,{row: Pos+1, column: 0});

            closeButton.addListener("execute", function(e) 
                {
                      this.debug(e.getData());

                }, this);
            }

     },
    construct : function()
    {
        this.base(arguments, "gui");
          // hide the window buttons
        this.setShowClose(false);
        this.setShowMaximize(false);
        this.setShowMinimize(false);

        //adjust size
        this.setWidth(250);
        this.setHeight(300);

        var layout = new qx.ui.layout.Grid(0, 0);
        this.setLayout(layout);


    }
});
  • 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-06-04T06:15:45+00:00Added an answer on June 4, 2026 at 6:15 am

    If you use a qx.data.Array instead of using a standard JS list then you can use the indexOf method to find the index of the button in the array.

    In your event handler you can use qx.event.type.Event.getTarget() method to get a reference to the widget that fired the event and pass that to the indexOf method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

tried using the following but it's not the solution controller: var list = new
I'm getting values from the html using the following method: javascript: var list =
i am fetching data using following code _.each(cardIds, function(id){ var mdc = new MdlCard({cardId:
In the following example using (var context = new MyEntities() { // Delete old
I am trying to get the list from server through javascript using following var
I'm filling a drop-down list using the following: var columnNames = db.Mapping.MappingSource.GetModel(typeof(StaffDirectoryDataContext)) .GetMetaType(typeof(Person)).DataMembers; I'm
I am using the following to generate a drop down list: @for (var index
I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
I am trying the to query my Status Update repository using the following var
Suppose I have the following: using(var ctx = DataContextFactory.Create(0)) { ... Some code ...

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.