Search found 111 matches

by beneficii
Fri Feb 08, 2019 5:50 am
Forum: C++ Development
Topic: wxRichTextCtrl is funky when inputting Japanese characters using input method
Replies: 1
Views: 952

wxRichTextCtrl is funky when inputting Japanese characters using input method

I'm using Windows 10 Home 64-bit, and normally when I enter Japanese characters in a textbox, it works like this: スクリーンショット (5).png As you type it and the suggestions pop up, the text you're typing (underlined with a wavy green line) is inside the textbox. But with wxRichTextCtrl, when you're typing...
by beneficii
Fri Feb 08, 2019 1:28 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up a base project
Replies: 5
Views: 1618

Re: Setting up a base project

How would I do that? Do they mean the character encoding for the source file? I tried setting it to UTF-8. It's still trying to look for mswd, which doesn't exist. Does CharacterSet refer to something else? EDIT: OK. I fixed it. It's the character set for the project. I set it to Unicode and now it ...
by beneficii
Fri Feb 08, 2019 12:14 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up a base project
Replies: 5
Views: 1618

Re: Setting up a base project

Thanks! It seems to largely work, but there is an issue.

There is one error in the property sheet, which causes an error. It tries to find setup.h in "(wxwidgets_dir)/lib/vc_lib/mswd/wx" (emphasis added), but the correct directory name is mswud.

What should I do?
by beneficii
Thu Feb 07, 2019 10:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up a base project
Replies: 5
Views: 1618

Setting up a base project

I'm using Visual Studio 2017, and it seems that every time I have to set up using wxWidgets, I need to create a template by adding all these include directories for each and every configuration, all these library names, and library paths for each and every configuration. It's a time consuming proces...
by beneficii
Tue May 01, 2018 9:45 am
Forum: C++ Development
Topic: Auto-scrolling with wxScrolled when user is making a selection
Replies: 1
Views: 647

Auto-scrolling with wxScrolled when user is making a selection

What would be the best way of going about implementing auto-scrolling in wxScrolled<wxWindow>, when you are holding down the mouse button and move the cursor past the edge of the window? This would be for the purpose of allowing people to do selections (here, of tiles) that are greater than the visi...
by beneficii
Mon Apr 30, 2018 11:38 am
Forum: C++ Development
Topic: Event won't propagate on Window
Replies: 5
Views: 1341

Re: Event won't propagate on Window

Even using wxID_ANY in the event table, it does not work. I tried Bind() with it, too, and it still did not work.

I guess something's wrong with the way the events are declared or defined? The event-type is declared in EditWindow.h, and defined in EditWindowEvent.cpp.
by beneficii
Mon Apr 30, 2018 8:23 am
Forum: C++ Development
Topic: Event won't propagate on Window
Replies: 5
Views: 1341

Re: Event won't propagate on Window

EditWindowEvent inherits from wxCommandEvent. In addition, I just tried Bind() instead of the event table, and the event handler function MyFrame::OnLeftDown() still isn't called!

Is there something wrong in the way I've set up the events?
by beneficii
Mon Apr 30, 2018 1:09 am
Forum: C++ Development
Topic: Event won't propagate on Window
Replies: 5
Views: 1341

Event won't propagate on Window

I am using wxWigets 3.1.1 on Windows 10, with Visual Studio Community 2017. On the window in the bottom-left corner of the screen, when you press down on the left mouse key, it's supposed to trigger an event that calls MyFrame::OnLeftDown(). But the function never gets called.
by beneficii
Thu Mar 01, 2018 10:39 pm
Forum: C++ Development
Topic: Handling mouse selection events
Replies: 1
Views: 793

Handling mouse selection events

I'm using wxWidgets 3.0.3 with Visual Studio 2017 Community on Windows 8.1, and I've got a question. I'm working on a tile map editor, and I want to add a selection tool to the interface. This is where the user can press the left mouse key down on a tile, and while holding the mouse key down moves t...
by beneficii
Thu Feb 22, 2018 11:10 pm
Forum: C++ Development
Topic: Event fails to call event function
Replies: 3
Views: 1094

Re: Event fails to call event function

OK, got it, thanks!

BTW, if I use wxQueueEvent() instead of wxPostEvent(), it crashes. Why is this?
by beneficii
Thu Feb 22, 2018 9:27 pm
Forum: C++ Development
Topic: Event fails to call event function
Replies: 3
Views: 1094

Event fails to call event function

I'm using wxWidgets 3.0.3 on Windows 8.1, with my IDE being Visual Studio 2017 Community. I inherited from wxScrolled<wxWindow> to create EditWindow , which has the event myEVT_TILEHOVER declared and defined, along with EditWindowEvent which inherits from wxEvent , EditWindowEventFunction which is a...
by beneficii
Sat Feb 10, 2018 12:36 am
Forum: C++ Development
Topic: Handling scrolling events in wxScrolled with wxWindow
Replies: 6
Views: 2441

Re: Handling scrolling events in wxScrolled with wxWindow

Somehow the drawing code still looks unnecessarily complicated to me ;) I think it's a clipping problem, the rectangles you draw at the right and bottom edge of the window are a few pixels too small. I couldn't pinpoint exactly where the error is, but when i force the rectangles to a width and heig...
by beneficii
Fri Feb 09, 2018 4:56 pm
Forum: C++ Development
Topic: Handling scrolling events in wxScrolled with wxWindow
Replies: 6
Views: 2441

Re: Handling scrolling events in wxScrolled with wxWindow

I can't tell you exact what's wrong, but i think the problem is in your drawing code. It seems you're calculating the positions of the tiles incorrectly when the window is scrolled. You can see that if you scroll a bit, then tab to another window (that covers your window) and tab again. Then you se...
by beneficii
Thu Feb 08, 2018 4:05 pm
Forum: C++ Development
Topic: Handling scrolling events in wxScrolled with wxWindow
Replies: 6
Views: 2441

Handling scrolling events in wxScrolled with wxWindow

I'm using wxWidgets 3.0.3 on Windows 8.1, with my IDE as Microsoft Visual Studio 2017 Community. So on this project here, I am creating a window that can display tiles (basically, little 8x8 or 16x16 graphics) and colors on a palette. It makes use of wxScrolled<wxWindow> to do so. I've gotten the pa...