Search found 62 matches

by AndrzejB
Tue Sep 22, 2020 12:08 pm
Forum: C++ Development
Topic: How can I add bitmap to dialog?
Replies: 1
Views: 26

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...
by AndrzejB
Tue Sep 22, 2020 8:12 am
Forum: C++ Development
Topic: Is possible add buttons to wxMessageBox?
Replies: 1
Views: 57

Is possible add buttons to wxMessageBox?

wxMessageBox uses flags: #define wxYES 0x00000002 #define wxOK 0x00000004 #define wxNO 0x00000008 #define wxYES_NO (wxYES | wxNO) #define wxCANCEL 0x00000010 #define wxAPPLY 0x00000020 #define wxCLOSE 0x00000040 I need also: "Yes to All", "No to All" in application close warning
by AndrzejB
Mon Sep 21, 2020 4:44 pm
Forum: C++ Development
Topic: How to closing wxAuiNotebook pages after ask?
Replies: 1
Views: 42

How to closing wxAuiNotebook pages after ask?

I have wxAuiNotebook* notebook;
is bind: Bind(wxEVT_AUINOTEBOOK_PAGE_CLOSE, &MyFrame::OnPageClose, this);
I do actions in OnPageClose, but how to prevent closing tab if user choose "No closing tab".
by AndrzejB
Sat Sep 12, 2020 3:27 pm
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

Build whole wxWidgets from https://github.com/MaartenBent/wxWidgets.git, branch scintilla_3.10.5? This really helps. Thank You. Note: If I compare changes between master and this branch: git diff --name-status master most changed files are *.in, *.bcc, *.gcc, *.vc This files can be autogenerated? (I...
by AndrzejB
Sat Sep 12, 2020 3:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Link problem with Sockets
Replies: 2
Views: 101

Link problem with Sockets

I try socket sample, but library libwx_gtk3u_socket-3.1.a not found
Next, I call ../configure with --enable-sockets and call make, but nothing helps
by AndrzejB
Sat Sep 12, 2020 1:30 pm
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

Which sample? My main.cpp will near identical with wxWidgets stc sample. I create new stc obiekt and insert this to sizer. I modify namespaces to avoid using standard stc.
by AndrzejB
Sat Sep 12, 2020 1:09 pm
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

I can build first version of this repository but this uses stc files from wxWidgets. To avoid this I try add namespace but is odd error.
by AndrzejB
Sat Sep 12, 2020 11:21 am
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

I have created project. After copying wx/src/stc folder link standard stc.
I try change namespaces, but is error Can someone see? https://github.com/ideorg/scintillamod
by AndrzejB
Sat Sep 12, 2020 8:02 am
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

I don't know why my project linking, although not use *.cxx files from scintilla. It seems that ScintillaWX.cpp not uses methods from Scintilla? in ScintillaWX::ScintillaWX is Initialise(); in ScintillaWX::Initialise is //ScintillaBase::Initialise(); --- commented and no call init Scintilla --------...
by AndrzejB
Fri Sep 11, 2020 2:18 pm
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

I want modify scintilla I created new project with stc and scintilla folders. If I add to project only 3 file: stc/PlatWX.cpp stc/stc.cpp stc/ScintillaWX.cpp, program linking although I have not added *.cxx files from scintilla. It uses old version of Scintilla? How to use new version, I changed nam...
by AndrzejB
Fri Sep 11, 2020 9:46 am
Forum: Component Writing
Topic: How write own widget?
Replies: 11
Views: 328

Re: How write own widget?

Aaah, I search error in other place.
My custom button will emit event on press (mousedown), noy click (mouse up) event.
How distingush wxEVT_BUTTON event between press and click?
by AndrzejB
Fri Sep 11, 2020 7:51 am
Forum: Component Writing
Topic: How write own widget?
Replies: 11
Views: 328

Re: How write own widget?

I derived from wxPanel I write BEGIN_EVENT_TABLE(wxxBreadCrumb, wxPanel) EVT_MENU(wxID_OPEN, wxxBreadCrumb::clicked) but is error: : invalid static_cast from type ‘void (wxxBreadCrumb::*)(wxMouseEvent&)’ to type ‘wxCommandEventFunction’ {aka ‘void (wxEvtHandler::*)(wxCommandEvent&)’} 4 | EVT_MENU(wx...
by AndrzejB
Thu Sep 10, 2020 3:30 pm
Forum: C++ Development
Topic: Advanced editor component
Replies: 16
Views: 278

Re: Advanced editor component

How do "debugging" functionality? Must be changed attributes of certain line If I want select, stc->SetSelection(10,20) but this should not select but changed attributes and attributes must be persistent while selection is not. Partial solution: indicators (https://stackoverflow.com/questions/350957...
by AndrzejB
Thu Sep 10, 2020 11:50 am
Forum: Component Writing
Topic: How write own widget?
Replies: 11
Views: 328

Re: How write own widget?

Button can have bitmap, but always has (size=5) border: wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL); arrowButton = new wxButton(this, 0, wxT(""), wxPoint(10,10), wxSize(140,20)); wxBitmap bitmap(arrowButton->GetClientRect().GetWidth(), arrowButton->GetClientRect().GetHeight()); wxMemoryDC memdc; ...
by AndrzejB
Thu Sep 10, 2020 6:16 am
Forum: Component Writing
Topic: How write own widget?
Replies: 11
Views: 328

Re: How write own widget?

"Derive from wxWindow for simple (i.e. not containing children) controls, not from wxControl, which is the base class for the native controls." If we want child controls (for example drawe listbox with child scrollbars) need derive from wxControl? I use childs (wxButton) with wxWindow and is ok. My ...