Search found 76 matches

by AndrzejB
Mon Sep 28, 2020 3:05 pm
Forum: C++ Development
Topic: How check menu item?
Replies: 1
Views: 134

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: 134

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: 571

Re: Copy-paste from closed editor

I have cinnamon. Other applications have the same problem, including gedit and gitk.
by AndrzejB
Mon Sep 28, 2020 5:56 am
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 571

Re: Copy-paste from closed editor

I compiled wxWidgets 3.1.4 with configure:
../configure --enable-sockets --with-gtk=3 --enable-unicode --enable-debug --disable-monolithic --disable-shared
on Linux Mint 20
by AndrzejB
Sat Sep 26, 2020 11:03 pm
Forum: C++ Development
Topic: How keep icons in executable?
Replies: 1
Views: 164

How keep icons in executable?

Is needed resource icons. I see example xrc, but there is folder with resources and icons are not linked to file.
Other solution: maybe is possible one big file with all application icons instead of many icon files ?
by AndrzejB
Sat Sep 26, 2020 1:20 pm
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 571

Re: Copy-paste from closed editor

Before closing I have text "Text from wx clipboard sample at Sat Sep 26 15:16:34 2020" but after closing - no text. I think it is Linux behaviour Other applications like Gedit (previously I badly check it) also not copied clipboard after closing. Partially solution - editor will opened long time wit...
by AndrzejB
Sat Sep 26, 2020 6:12 am
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 571

Re: Copy-paste from closed editor

I do : void MyFrame::OnCloseMain(wxCloseEvent& event) { if (CloseAll()) { wxTheClipboard->Flush(); Destroy(); } else event.Veto(); } But clipboard is cleared before destroy:, I must flush before delete notebook page. Is problem: clibboard is cleared in wxModule::DoCleanUpModules -> wxClipboardModule...
by AndrzejB
Fri Sep 25, 2020 6:44 pm
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 571

Copy-paste from closed editor

I have Linux Mint 20. I open my editor, copy from, paste to other place is ok. I open my editor, copy from, close editor, paste to other place - no paste It is for my editor, using Scintilla or Pascal Synedit. But - if I open Gedit, copy from, close Gedit, is OK. Is possible paste from my closed edi...
by AndrzejB
Fri Sep 25, 2020 1:56 pm
Forum: Announcements and Discoveries
Topic: [ANN] scintas - editor using STC
Replies: 0
Views: 1206

[ANN] scintas - editor using STC

I am pleased to announce first release of editor using wxWidgets, Stc and Aui.
Version 0.1 is tested on Linux Mint. Has included modified Aui files
Clone it with submodules.
https://github.com/ideorg/scintas
by AndrzejB
Thu Sep 24, 2020 1:15 pm
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 422

Re: How to change aui tab color ?

I copy whole wxAuiGenericTabArt to my class and change my class. Was problem with polymorphic. Problem is solved: was wxAuiTabArt* MyBaseTabArt::Clone() { return new MyBaseTabArt(*this); } Must be added necessary Clone in subclass! wxAuiTabArt *MyTabArt::Clone() { return new MyTabArt(*this); } Notab...
by AndrzejB
Thu Sep 24, 2020 10:41 am
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 422

Re: How to change aui tab color ?

This method is in my art class: MyBaseTabArt
by AndrzejB
Thu Sep 24, 2020 6:42 am
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 422

Re: How to change aui tab color ?

I have problem with virtual methods of tabArt. I rewrite MyBaseTabArt = whole wxAuiGenericTabArt, except : in DrawTab: wxColor font_color = GetFontColour(page.active, back_color); where virtual wxColour GetFontColour(bool pageActive, const wxColour& back_color); wxColour MyBaseTabArt::GetFontColour(...
by AndrzejB
Wed Sep 23, 2020 7:39 pm
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 422

Re: How to change aui tab color ?

Color should be not constants. For example: all tabs would have usual colors except tabs with modified files.
by AndrzejB
Wed Sep 23, 2020 5:05 pm
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 422

How to change aui tab color ?

Aui has attached component wxAuiTabArt which draws.
How to change background or font color of title?
by AndrzejB
Tue Sep 22, 2020 12:08 pm
Forum: C++ Development
Topic: How can I add bitmap to dialog?
Replies: 1
Views: 140

How can I add bitmap to dialog?

I try own message box like wxMessageBox. How can I add bitmap to dialog? is posssible add bitmap to button: const wxSize imageSize(32, 32); wxImageList* m_imageList = new wxImageList(); m_imageList = new wxImageList(imageSize.GetWidth(), imageSize.GetHeight()); m_imageList-> Add(wxArtProvider::GetIc...