Guidance Forums / wxWidgets (wxWindows) in C++ / wxGridCellStringRenderer

Search 搜索
Home Home

Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxGridCellStringRenderer
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
Posted by: upCASE 2004-03-02 16:38:10
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.

If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
© Sun 2024-6-23  Guidance Laboratory Inc. Hits:0