Search found 14401 matches

by doublemax
Sun Jan 19, 2020 9:43 pm
Forum: C++ Development
Topic: Drag and drop from file manager to wxTextCtrl
Replies: 2
Views: 46

Re: Drag and drop from file manager to wxTextCtrl

I assume you're using a recent version of wxWidgets, as wxEVT_DROP_FILES requires at least wx 2.8.10 on platforms other than Windows. I tested that code under Windows and Linux with KDE desktop and it worked in both cases. Can you test your code on another Linux version, maybe it's the file manager ...
by doublemax
Sun Jan 19, 2020 9:38 pm
Forum: C++ Development
Topic: How to know if a wxFrame is beeing closed by a user
Replies: 9
Views: 107

Re: How to know if a wxFrame is beeing closed by a user

There is no official way to get that information. All you could do is to call Close(true) when you close a frame programmatically, and then check wxCloseEvent::CanVeto() in the close event handler, which should be false in this case. If that's not enough, you need to keep track of that information i...
by doublemax
Sun Jan 19, 2020 9:29 am
Forum: C++ Development
Topic: French Text not showing up
Replies: 4
Views: 87

Re: French Text not showing up

Most likely this is an issue with text encoding. How is the XML file encoded (e.g. UTF8) and how do you load it? Please show some code.
by doublemax
Thu Jan 16, 2020 10:16 am
Forum: C++ Development
Topic: Best control for the task
Replies: 5
Views: 100

Re: Best control for the task

If you need 2 checkboxes, i can't think of any alternative to wxDVC. Except for dedicated controls, if the number of lines is not too big.
by doublemax
Thu Jan 16, 2020 12:43 am
Forum: C++ Development
Topic: WarpPointer question
Replies: 8
Views: 181

Re: WarpPointer question

Most applications ignore the mouse position when using the scroll wheel for zooming. If the user wants to zoom into a specific area, he can use a rubber-band to select the area. Another option when using the scroll wheel is to zoom in a way that the point under the cursor always remains the same aft...
by doublemax
Wed Jan 15, 2020 9:12 pm
Forum: C++ Development
Topic: WarpPointer question
Replies: 8
Views: 181

Re: WarpPointer question

Just for the record: IMHO moving the mouse pointer programmatically is horrible from a GUI design point of view.
by doublemax
Wed Jan 15, 2020 6:24 am
Forum: C++ Development
Topic: Save multiple images as one file.
Replies: 3
Views: 81

Re: Save multiple images as one file.

This is not supported.

The only exception is wxGIFHandler::SaveAnimation, but this is probably not what you wanted.
https://docs.wxwidgets.org/trunk/classw ... 94c4c88b2b
by doublemax
Wed Jan 15, 2020 6:20 am
Forum: C++ Development
Topic: wxListBox when maximized
Replies: 11
Views: 201

Re: wxListBox when maximized

As soon as i put the envnt.Skip() in the onResize event program was working as desired. Good. Do you actually need the resize handler for anything? I assume not. In that case you should remove/disable it completely. Otherwise you might be starting to put that code into every window, which is not ne...
by doublemax
Tue Jan 14, 2020 8:39 pm
Forum: C++ Development
Topic: wxSpinCtrl Enter should do what Tab does
Replies: 10
Views: 153

Re: wxSpinCtrl Enter should do what Tab does

Does the event handler get called? If not, did you set the wxTE_PROCESS_ENTER style flag?

If it does, try calling Navigate delayed using CallAfter:

Code: Select all

    CallAfter( [this] {
      Navigate();
    });
by doublemax
Tue Jan 14, 2020 7:59 pm
Forum: C++ Development
Topic: wxSpinCtrl Enter should do what Tab does
Replies: 10
Views: 153

Re: wxSpinCtrl Enter should do what Tab does

Without trying, i'd say: Catch wxEVT_TEXT_ENTER event and call Navigate() in the event handler.
by doublemax
Tue Jan 14, 2020 7:56 pm
Forum: C++ Development
Topic: wxListBox when maximized
Replies: 11
Views: 201

Re: wxListBox when mazimized

Oh dear, a resource file is probably the worst to analyze by just reading it... I can't spot anything wrong right away (but it's easy to miss something somewhere), but my first suspicion would be the "OnPanel1Resize" size event handler. You need to call event.Skip() inside, otherwise the sizer layou...
by doublemax
Tue Jan 14, 2020 4:15 pm
Forum: C++ Development
Topic: How to use wxDCOverlay?
Replies: 7
Views: 136

Re: How to use wxDCOverlay?

I've never used wxDCOverlay, but it's used in the "drawing" sample to draw a rubber-band on the panel. Check it out.
by doublemax
Tue Jan 14, 2020 2:47 pm
Forum: C++ Development
Topic: wxListBox when maximized
Replies: 11
Views: 201

Re: wxListBox when mazimized

archman007 wrote:
Tue Jan 14, 2020 2:24 pm
I am consistently getting a HTTP error when I try to add attachments. I have tried several browsers. How do I overcome this.
No idea, i never had this. Put the code on pastebin and post the link here. It shouldn't be that much anyway.