This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Grid Layout

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Report post to moderator
this is a question on gidlayout.
There is a gridlayout (2,2). all the four grids are filled up. if i add a new componenent which row will/column it occupy?
Joe
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Column 2, row 2. However some of the other buttons will be repositioned:
Button 1: row 1 col 1
Button 2: row 1 col 2
Button 3: row 1 col 3
Button 4: row 2 col 1
Button 5: row 2 col 2
Whenever both number of columns and number of rows are set by the constructor, the number of columns is actually completely ignored, and instread is determined by how many componenets are added. You can read about it here.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
And please don't post the same question twice in two identical threads, as it's a waste of time to answer the question in one thread when it's already been answered in the other.
 
    Bookmark Topic Watch Topic
  • New Topic