Search results

  1. Kinniken

    Activating root user

  2. Kinniken

    Compiling wxWidgets for 10.4?

    I'm pleased to say that I'm about done with that project :D Only a few wrinkles to iron out (like that annoying vector sorting problem) and I'll be done. Thanks for your help, you saved me many fruitless hours peering at stupid bugs :)
  3. Kinniken

    Sorting a vector of pointers?

    Hi, I have a vector of objects "students" with an overload < operator which allows me to sort it with the following command: sort(students_list->begin(), students_list->end()); This works fine. However, I need to do the same with a vector of pointers to students. Is there a way I can use...
  4. Kinniken

    Compiling wxWidgets for 10.4?

    I guess I'll just use global constants until I find a better way. In the meantime, I have yet an other question... How do you create a multi-line wxTextCtrl? According to the doc I thought txAdresse->SetWindowStyle(wxTE_MULTILINE); would do it but it seems to have no effect...
  5. Kinniken

    Compiling wxWidgets for 10.4?

    It doesn't work :( : UTC.h:69: error: a brace-enclosed initializer is not allowed here before '{' token UTC.h:69: error: invalid in-class initialization of static data member of non-integral type 'const std::string []'
  6. Kinniken

    Compiling wxWidgets for 10.4?

    Quick and (hopefully) easy C++ question... how do I initialise a static const table of either strings or char* in one of my class? I tried things like: static const char** myStrings = {"s1","s2","s3"}; or static const string* myStrings = {"s1","s2","s3"}; But the compiler refuses them...
  7. Kinniken

    Compiling wxWidgets for 10.4?

    This thing is even weirder than I thought. Even when using .Skip(), the method supposed to ensure that the normal event behaviour is executed, every wxGrid methods to detect selections fails. However, someone pointed out an obvious workaround to me: the event passed in parameter has a...
  8. Kinniken

    Compiling wxWidgets for 10.4?

    erratum: all the cells highlighted in aqua return true to IsInSelection(). It's just that they are not in SelectedRows().
  9. Kinniken

    Compiling wxWidgets for 10.4?

    Which one would that be?
  10. Kinniken

    Compiling wxWidgets for 10.4?

    And as usual, the insight comes ten minutes after acknowledging defeat: my override of the SelChange() event is preventing the triggering of parts of the wx code devoted to sel change... I switch my event to an other trigger and the first "miracle" happens: the black outline now moves to the...
  11. Kinniken

    Compiling wxWidgets for 10.4?

    I'm totally at a loss on this problem... Here is what it looks like: Notice the odd black outline on cell (0,0), which is there when the grid is created and is impossible to move or make disappear. The selected row is never taken into account, nowhere - IsInSelection() called on one of...
  12. Kinniken

    Compiling wxWidgets for 10.4?

    No, I would have to go to university for that. I might this afternoon. Hmm, looking more closely, it seems there are two "selection" levels - one when rows get an aqua background and one when a cell gets a thick black border. Possibly because I have cell editing disabled, all I can do is the...
  13. Kinniken

    Compiling wxWidgets for 10.4?

    Yeah, Qt would be useless for me for those license reasons - I can't afford $1500 for a commercial one... Anyway, for the moment it's not like I have a choice: my assignment requires using wxWidgets. For that matter, technically it requires using MS Visual Studio, but since I can port it back...
  14. Kinniken

    Compiling wxWidgets for 10.4?

    Well guessed Viro, that was my problem. Fixed! :D Now I can simulate anchor-based resizing behaviour instead of that sizer-based abomination. And I agree with you that this message map is ugly and unnecessary. As much as I appreciate being able to code the GUI on OS X and port it to...
  15. Kinniken

    Compiling wxWidgets for 10.4?

    Thanks, that worked :) Next question ;) : How do I get a method to trigger when the window is resized? (preferably "live") I tried overloading the OnSize() method of my frame, but it never triggers...
  16. Kinniken

    Compiling wxWidgets for 10.4?

    Quick question, now that I have started using it: how do I convert an int to wxString, in order to display it? All my (windows-based) teacher could suggest was itoa(), but it's a non ANSI-function which apparently does not exist in the stdlib Xcode uses...
Back
Top