|
From: É. Ő. <ejj...@gm...> - 2009-01-11 10:58:22
|
Hi! My previous e-mail went to a wrong topic, sorry. again: I have a little problem.. My application loads the GUI from the xrc file generated by DialogBlocks. I am using wxGrid-s, which are work very well - except I can't re-size them. Once I called grid:CreateGrid(rows,cols), I can't use this call again (I can, but no result). I tried grid:ClearGrid(), grid:Refresh(), but no result.. The second SetGridCursor problem has been solved, I used that from an another event, wx.wxEVT_KEY_UP. I have a report now too: seems wxGrid doesn't check the row and the column in SetCellValue(), because when I used that with negative rows, it throw me an unhandled exception window (well, now I have more unhandled exception related to wxGrid, but I haven't found out, what caused that till now...). The first problem has been 'patched' now: I know how many columns I want to add, so I check it: if grid:GetNumberRows() < iRows then grid:AppendRows(grid:GetNumberRows()-1,iRows-grid:GetNumberRows()) end But I think there must be a more elegant solution :) --- Another problem that I have to print with my application. But the firm I write this app, use an old matrix printer, which prints to 'pull-out' (or fanfold? web-tranlslation, I hope it's correct. Here is a page about it: http://shop.unas.hu/shop_ordered/5207/shop_pic/termek_820145.jpg) paper. The samples I found can print pictures, and everything else, but I need just charaters, because the old program used just simple characters to draw a table. (But that used a .prn file too... :-/). So, I want to print just characters, and make some text's font bold and maybe bigger on it, that's all. I hope somebody can help me in this. Best regards: Attila |