Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / howto adjust wxGrid rows/columns after layout

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. howto adjust wxGrid rows/columns after layout
#6292
Posted by: lotan 2005-07-01 03:57:37
Hi,

I want to adjust each row/column of a wxGrid to a certain relative size.

As the size of the wxGrid can only be properly determined (for the calculations below) after the layouting process has taken place, my strategy is to find an event that occurs, preferably once, after the main frame is drawn and find out the size of the wxGrid.

After that, I want to keep the relative sizes in an array and use that information in conjunction with wxGridSizeEvents to keep the forementioned relation on a resize of the whole form.

My problem is: I can't find an event that would be triggered after the widgets are drawn and laid out.

So, can anyone help me with that?  Is that how things like that are supposed to be solved or would one do that completely differently?

Thanks for any kind of help.

Reini
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0