Search found 207 matches

by spectrum
Sun Dec 28, 2008 10:46 am
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 5915

Hi All, i am actually working wxWidgets 2.9.0/2003 server, inside a dataview, and i still have problems of this kind. Seem that dc->DrawBitpam, or dc->DrawIcon in my custom render cannot render fine the transparency. Anyway, i have looked how wxListCtrl do, and for now as workaround i used .ico from...
by spectrum
Sat Dec 27, 2008 12:51 am
Forum: C++ Development
Topic: wxDataViewCtrl, need to color a line
Replies: 0
Views: 459

wxDataViewCtrl, need to color a line

Hi all, i am testing from some days wxDataViewCtrl from wxWidgets 2.9.0 on XP. It works really fine, anyway i need to color lines background with alternate colours, and still i cannot. I try in 2 ways: 1)I try create the control with wxDV_ROW_LINES property. In particular, i should display alternate...
by spectrum
Wed Dec 24, 2008 3:14 pm
Forum: C++ Development
Topic: wxListCtrl & wxImageList
Replies: 3
Views: 1095

well, for who is interested, wxDataViewCtrl works fine from 2.9.0.

greetings,
spectrum
by spectrum
Wed Dec 24, 2008 2:35 pm
Forum: C++ Development
Topic: 2.9.0 testing
Replies: 0
Views: 346

2.9.0 testing

Hello all, i have compiled wxWidgets 2.9.0 as dll's. Once created them successfully i set up my working project to work with them. First of all, linking my project i was getting some unresolved externals, expecially if using std::string::c_str(), so i found some suggestions, and recompiled the wxWid...
by spectrum
Wed Dec 24, 2008 12:38 pm
Forum: C++ Development
Topic: moving a wxtreectrl node
Replies: 1
Views: 428

hi antek, i never used wxTreeCtrl, i don't see the chance to change id/item association/tree linking. So i would try: 1) SortChildren method then writing your own OnCompareItems you should be able to sort only interested childrens. 2) Add an invisible column to reorded as you prefer. greetings, spec...
by spectrum
Wed Dec 24, 2008 12:27 pm
Forum: C++ Development
Topic: How to implement 'search entry' and 'classifiable columns' ?
Replies: 1
Views: 419

Hello Felipe, to enter the text to find, you can use whatever wxwidgets controls as wxTextCtrl, wxTextEntryDialog, wxFindReplaceDialog. Then, the strategy of how to search is up to you. wxListCtrl is a pure "visual" control, i would keep the data in a separate layer, like a std::map<string, obj>, wh...
by spectrum
Wed Dec 24, 2008 12:16 pm
Forum: C++ Development
Topic: no mouse events in a wxpanel
Replies: 6
Views: 1244

Hi extreme,

how are you handling the event ?
You can handle frame events through the EVENT_TABLE, and it is working.
To get the panel OnMouse you would "Connect" to the desired panel event.

See http://docs.wxwidgets.org/stable/wx_wxevthandler.html
for details,

grets,
Spec
by spectrum
Tue Dec 23, 2008 3:37 pm
Forum: C++ Development
Topic: wxDataViewColumn 's not resizable
Replies: 2
Views: 638

thx doublemax,

i am using 2.8, did all as in the example code, but still my columns header are not clickable/sizeable.

I am switching to wxGrid, this is almost more stable and portable on 2.8.
by spectrum
Tue Dec 23, 2008 1:55 pm
Forum: C++ Development
Topic: wxDataViewColumn 's not resizable
Replies: 2
Views: 638

wxDataViewColumn 's not resizable

hi all, i am testing the wxDataViewCtrl, even if is quite new it seems working fine for my purpose. A problem is that it appear as not allowing column resizing/clicking. I can succesfully add new lines with images and texts, but column headers are not accepting any mouse event. am i doing somethign ...
by spectrum
Tue Dec 23, 2008 8:57 am
Forum: C++ Development
Topic: metaprogramming with wxWidgets
Replies: 3
Views: 675

hi vic, yes, with interface controls compiled into the binary the loading proces can be a little faster, there is a little overhead to get coordinates and properties from XRC, but i don't really think is an appreciable effort. wxFormBuilder allow 2 kind of approaches: 1) generate the c++ code for di...
by spectrum
Mon Dec 22, 2008 10:30 pm
Forum: C++ Development
Topic: wxListCtrl & wxImageList
Replies: 3
Views: 1095

hi doublemax, thanks for the suggetsion, anyway, using wxDataViewCtrl is hard, there is no sample available of how to use AppendBitmapColumn(... and bitmaps. Then, with standard wxListCtrl, seems i can add succesfully an icon on first column, and an icon on the 4th. They just need to be on the same ...
by spectrum
Mon Dec 22, 2008 7:17 pm
Forum: C++ Development
Topic: wxListCtrl grayed line
Replies: 0
Views: 338

wxListCtrl grayed line

hi all,

is there some support on wxListCtrl, to draw grayed lines as even or odd line ?

thanks,
Spec
by spectrum
Mon Dec 22, 2008 5:20 pm
Forum: C++ Development
Topic: wxListCtrl & wxImageList
Replies: 3
Views: 1095

wxListCtrl & wxImageList

Hi all, i have a wxlistCtrl, and i need to put a 16x16 icon in the first column, and a 64x16 in the 4th. But, from what i understand, -i can't add 2 image lists for the wxListCtrl, -i can set different image lists for the listctrl switching on the fly, but loosing the images of the previous list, -i...
by spectrum
Mon Dec 22, 2008 5:04 pm
Forum: C++ Development
Topic: Timer Accuracy
Replies: 1
Views: 1389

hi crasic, how do you measure the timer accuracy ? wxTimer precision is platform-dependent, but in general will not be better than 1ms nor worse than 1s. So it is almost better than a m$ Sleep API, that afaik should have a +/-10 msec accuracy, or something near. Anyway, under windows, and with a rec...
by spectrum
Mon Dec 22, 2008 4:28 pm
Forum: C++ Development
Topic: metaprogramming with wxWidgets
Replies: 3
Views: 675

Hi vic, the idea is not bad, my questions are, 1) how we will get a better start-up execution performance using this method, instead of xrc and on-the fly loading ? I work always with xrc, loading forms on the fly, and the result is very responsive at my opinion. 2) if you want, there is wxFomBuilde...