Search found 88 matches

by AndrzejB
Sun May 30, 2021 8:56 am
Forum: Compiler / Linking / IDE Related
Topic: I search working example cmake for Windows
Replies: 7
Views: 3928

I search working example cmake for Windows

I search working example project for Windows with MinGw or Visual Studio (prefer MinGw AND Visual Studio ). Using cmake.
With Stc and Aui.
I will try make my project based on this example. Main problem is linking mismatch.
by AndrzejB
Sat May 29, 2021 7:40 am
Forum: Compiler / Linking / IDE Related
Topic: cmake for MinGW and STC link errors
Replies: 2
Views: 2494

cmake for MinGW and STC link errors

I build c:\wxWidgets-3.1.5\build\msw>mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release next c:\gitmy\scintas\src\build>cmake -G "MinGW Makefiles" .. My modified part of CMakeLists.txt : set(wxWidgets_LIB_DIR ${wxWidgets_ROOT_DIR}/lib/gcc_lib) if(CMAKE_BUILD_TYPE STREQUAL "Debug") set(wxW...
by AndrzejB
Sat May 29, 2021 4:56 am
Forum: Compiler / Linking / IDE Related
Topic: cmake for Visual Studio and link errors
Replies: 1
Views: 2278

cmake for Visual Studio and link errors

1. Download wxWidgets 3.1.5 sources for Windows 2. Install to c:\wxWidgets-3.1.5 3. In Visual Studio Powershell in directory C:\wxWidgets-3.1.5\build\msw make: nmake -f makefile.vc UNICODE=1 BUILD=release TARGET_CPU=X64 4. Go to project C:\gitmy\scintas\src\build and cmake -G "Visual Studio 16 2019"...
by AndrzejB
Fri May 28, 2021 4:41 am
Forum: Compiler / Linking / IDE Related
Topic: Cygwin,configure and WxWidgets directory
Replies: 1
Views: 2406

Cygwin,configure and WxWidgets directory

I try build wxWidgets 3.1.5 with Cygwin under WIndows 10. I see in readme.txt: 3. Installing under Unix/BeOS ----------------------------- Please note that GNU make may be required to build wxBase, please use it if you get any errors from the native Unix make. The recommended way to build wxBase is:...
by AndrzejB
Wed Dec 16, 2020 12:28 pm
Forum: C++ Development
Topic: Paint,events and threads
Replies: 1
Views: 204

Re: Paint,events and threads

(Partial?) solution: it works if I replace Refresh() by paintNow()
Only partial because I want extend it by timer:

Code: Select all

EVT_TIMER (wxID_ANY, wxxTerminal::OnTimerEvent)
paintNow() works but timer not. Timer should be in thread.

Solution: instead of timer-> thread with sleep(100)
by AndrzejB
Wed Dec 16, 2020 12:18 pm
Forum: C++ Development
Topic: Paint,events and threads
Replies: 1
Views: 204

Paint,events and threads

I have control wxxTerminal, If I press Enter and last line (commandline) is not empty, is sended event from control to user. wxCommandEvent event(wxEVT_COMMAND_ENTER, GetId()); event.SetString(commandLine); wxPostEvent(GetParent(), event); Event is pushed to queue (wxPostEvent) for asynchronous call...
by AndrzejB
Fri Dec 11, 2020 5:08 pm
Forum: C++ Development
Topic: How on keyPress enable national chars?
Replies: 1
Views: 261

How on keyPress enable national chars?

My component uses: EVT_KEY_DOWN(wxxTerminal::keyDown) EVT_KEY_UP(wxxTerminal::keyUp) EVT_CHAR(wxxTerminal::keyPress) I want: - no modifiers - print char - control - special in keyDown - left Alt - menu - right Alt - print national char, for Polish keyboard is A->Ą, c->ć etc it will be well to avoid ...
by AndrzejB
Fri Dec 11, 2020 10:49 am
Forum: C++ Development
Topic: How to send event from my component?
Replies: 3
Views: 316

Re: How to send event from my component?

It works when I change wxEVT_MY_CUSTOM_COMMAND to wxEVT_COMMAND_ENTER
both wxPostEvent(GetParent(), event); and wxPostEvent(this, event) works
by AndrzejB
Fri Dec 11, 2020 10:40 am
Forum: C++ Development
Topic: How to send event from my component?
Replies: 3
Views: 316

How to send event from my component?

to frame? Button has: void wxButton::Click() { wxCommandEvent event(wxEVT_BUTTON, GetId()); InitCommandEvent(event); Command(event); } But in my case not found InitCommandEvent and Command I defined // define a custom event type (we don't need a separate declaration here but // usually you would use...
by AndrzejB
Thu Dec 10, 2020 6:56 pm
Forum: C++ Development
Topic: How write terminal emnulator?
Replies: 4
Views: 396

Re: How write terminal emnulator?

Own components using wxWidgets should have name start with "wx" or other , for example "wxx"?
wxTerminal or wxxTerminal?
by AndrzejB
Thu Dec 10, 2020 9:40 am
Forum: C++ Development
Topic: How write terminal emnulator?
Replies: 4
Views: 396

Re: How write terminal emnulator?

I think, I should first write simple one-line editor. Text cursor is delivered by system or I must draw vertical line using timer? How to choose mono-spaced font Linux/Windows independent?
by AndrzejB
Thu Dec 10, 2020 6:34 am
Forum: C++ Development
Topic: How write terminal emnulator?
Replies: 4
Views: 396

How write terminal emnulator?

Features:
- mono-spaced font
- only last logical line editable
- non editable last line prompt
- logical line can be two or more physical lines
- resizing of dialog causes change logical line to one physical or more, depend of text length
by AndrzejB
Mon Sep 28, 2020 3:05 pm
Forum: C++ Development
Topic: How check menu item?
Replies: 1
Views: 316

Re: How check menu item?

Problem solved:
1. I must set style wxITEM_CHECK to menu item
2. call Check after appending to menu

But.. is possible change style of checkbox? Currently is white in green box, is possible , for example, black on white box?
by AndrzejB
Mon Sep 28, 2020 1:33 pm
Forum: C++ Development
Topic: How check menu item?
Replies: 1
Views: 316

How check menu item?

Problem seems to be easy. I have: wxMenuItem *open_project = new wxMenuItem(menuFile, wxID_OPEN_PROJECT, wxT("Open project"), "",wxITEM_CHECK ); open_project->SetCheckable(true); open_project->Check(true); or menuFile->Check(wxID_OPEN_PROJECT, true); is error: invalid menu item In wxWidgets sample i...
by AndrzejB
Mon Sep 28, 2020 8:03 am
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 1101

Re: Copy-paste from closed editor

I have cinnamon. Other applications have the same problem, including gedit and gitk.