Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxGridCellStringRenderer

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxGridCellStringRenderer
#3433
Posted by: 2004-03-01 17:33:43
Because there is no owner drawn listbox in wxWidgets, I use a one-column-wxGrid and wxGridCellStringRenderer. I need not only one wxString in one cell, but struct-data with strings, date, ints, etc. To access the struct-data-array from both wxGrid and wxGridCellRenderer, i declare it global - and everything works fine.

BUT: If I want not only one (owner drawn) wxGrid in my project, but a few, i need a lot of different wxGrids, wxGridCellRenderers, struct-data-arrays.

Now, I got the idea to put the struct-data-array into a myGrid-declaration, derived from wxGrid. The problem is: How can I access the struct-data from wxGridCellRenderer? Any idea?
Message2. Re: wxGridCellStringRenderer
#3440
Posted by: upCASE 2004-03-02 16:38:10
Hi!
Sorry, but I lost you somewhere...
You want a multiline listbox filled with data from a struct which is global?
What have you done so far? I think it would be easier if we could see some code snippets ot maybe a screenshot of what you want to do (best would be both :)). Feel free to mail me in private and explain it in german.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2024-10-3  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0