wxString cat = cmb->GetValue();
bool isAll = cmb->GetSelection() == 0;
wxControlWithItems::GetSelection
int GetSelection() const
Returns the index of the selected item or wxNOT_FOUND if no item is selected.
Return value
The position of the current selection.
Remarks
This method can be used with single selection list boxes only, you should use wxListBox::GetSelections for the list boxes with wxLB_MULTIPLE style.
b) in the selcet compiler combobox choose with the mouse the second entry (intel), C ompiler should now be : icc ( does it ??)No. It's still gcc.
c) now select the sdcc compiler : C compiler should be : sdcc (does it ??)No. It's icc.
b) in the categories combo box choose debugging --> do you still have as many settings ? (there should be only 1 !!)Yes, I still have as many settings as before.
c) in the categories combo box go back to <all categories> --> all settings should be listed again, or is your list empty ???The list is empty now.
Please also state yous linux version and wx version.Gentoo Linux, Kernel 2.6.16.9, gcc 3.4.6, wxGTK 2.6.2, Unicode, C::B revision 2639
can some other linux users give this a little test spin :
These are the steps to reproduce :
1) Settings -> Compiler and debugger (normally the list will contain 3 compilers : GNU, Intel, SDCC)
2) choose the programs tab
a) C compiler : should be gcc
b) in the selcet compiler combobox choose with the mouse the second entry (intel), C ompiler should now be : icc ( does it ??)
c) now select the sdcc compiler : C compiler should be : sdcc (does it ??)
3) cancel out of the settings menu
4) Settings -> Compiler and debugger
5) stay on the compiler tab, and leave the compiler on the GNC GCC,
a) the categories are on <All categories>, you can see a lot of settings (produce ..., profile .. Enable ... , ...°
b) in the categories combo box choose debugging --> do you still have as many settings ? (there should be only 1 !!)
c) in the categories combo box go back to <all categories> --> all settings should be listed again, or is your list empty ???
Could you linux users who were also suffering from this bug give it a try ?Of course but I wont have access to my linux machine before the weekend, thus you have to be patient ;)
cool, the compiler combobox will be fixed this weekend.I had such an issue when changing the template categories (Bug #7480). If I changed selection and wanted to select all categories again, there were no templates displayed.
Did you have the same strang visualiosation issue like I had (first time selection, then no longer visible ...)
or can that be a wrong setting off my linux system ?
no no I don't mean that:No, for me it works as expected. Everything stays visible.
Compiler tab : categories:
1) first time I open : I see all choices "visible", say I select debug --> now switches ok (no lag)
2) second time now i go to that choice box : the "debug" choice is not visible, it is like I have a blank line, but when I move the ouse over it (so it gets selected) then i can read it again. Say I now choose another entry -> next 2 entries not visible, visible again when mouse is over it, once mouse is longer over it again not visible (but the choice entry is still there : I can select it and things change, no lag, accordingly)
Could you linux users who were also suffering from this bug give it a try ?As promised a few days ago I did try this again. And it works as expected.
One strange thing I have is : each time I reenter the choice control every entry I have selected before is now unvisible, it only becomes visible when I (pre)select it with the mouse or up/down keys. I wonder if this is more general, or it is just my display settings (linux suse 10.1 64 bit) ? in the case this is moe general, well then one bad thing get's replaced by another bad thing :-(I noticed something similar, also I can't really reproduce it. It only happens sometimes when C::B lost its focus and I switched to another virtuell desktop. But this is far less problematic compared to the problem with wxComboBox.