Search found 24 matches

by walderich
Sat Dec 08, 2018 9:57 pm
Forum: C++ Development
Topic: Hittest in wxAuiNotebook not working
Replies: 9
Views: 1700

Re: Hittest in wxAuiNotebook not working

Made my first GitHub contribution and created a PR.
by walderich
Thu Dec 06, 2018 9:21 pm
Forum: C++ Development
Topic: Hittest in wxAuiNotebook not working
Replies: 9
Views: 1700

Re: Hittest in wxAuiNotebook not working

Yes, I got it to work now. The problem is, that I couldn't add the code inside the HitTest() function, as it conflicts with the called function GetTabCtrlFromPoint(): int wxAuiNotebook::HitTest (const wxPoint&, long*) const; wxAuiTabCtrl* wxAuiNotebook::GetTabCtrlFromPoint(const wxPoint&); /...
by walderich
Tue Dec 04, 2018 9:27 pm
Forum: C++ Development
Topic: Hittest in wxAuiNotebook not working
Replies: 9
Views: 1700

Re: Hittest in wxAuiNotebook not working

Oh dear, now I finally got it. I used the "m_tabs" member. But this isn't the currently active tab but the tab container (as the AUI can have multiple tabs). But trying to read the active tab within "HitTest" is not possible, as it is declared "const", but "GetActi...
by walderich
Mon Dec 03, 2018 10:22 pm
Forum: C++ Development
Topic: Hittest in wxAuiNotebook not working
Replies: 9
Views: 1700

Re: Hittest in wxAuiNotebook not working

@ONEEYEMAN: I am working on WIndows 7 64-bit, using wxWidgets 3.1. @doublemax: Thanks for the deeper look into it. That explains why it doesn't work. I tried to implement your suggestion: class DT: public wxDropTarget { public: DT(wxBookCtrlBase *nb): tgt(nb) { SetDataObject(new wxTextDataObject); }...
by walderich
Mon Dec 03, 2018 11:59 am
Forum: C++ Development
Topic: Hittest in wxAuiNotebook not working
Replies: 9
Views: 1700

Hittest in wxAuiNotebook not working

I am trying to implement an automatic tab-switch when the user drags something over the tabs of a wxAuiNotebook. Therefore I am using "Hittest". Unfortunately the method always returns a wxNOT_FOUND as result. When I exchange the wxAuiNotebook with a wxNotebook object, the Hittest method r...
by walderich
Wed Jul 11, 2018 10:16 pm
Forum: Platform Related Issues
Topic: wxStyledTextCtrl Cut/Copy/Paste not working
Replies: 5
Views: 4007

Re: wxStyledTextCtrl Cut/Copy/Paste not working

Thank you all for your quick replies! I indeed disabled wxDataObject, which prevented the clipboard to work. After recompiling wxWidgets I got my application to work. Thanks again!

@doublemax: Where is your code snippet from? Can I enforce "configure" to stop on such inconsistencies, too?
by walderich
Wed Jul 11, 2018 4:27 pm
Forum: Platform Related Issues
Topic: wxStyledTextCtrl Cut/Copy/Paste not working
Replies: 5
Views: 4007

wxStyledTextCtrl Cut/Copy/Paste not working

I compiled wxWidgets under OS X High Sierra as static build with some configuration options disabled for size optimization. I now have the issue that the wxStyledTextCtrl component doesn't work correctly: 1. "Cut" does eventually remove the selected text, but it is not copied to the clipbo...
by walderich
Sat Oct 18, 2014 12:20 pm
Forum: Platform Related Issues
Topic: Open OS X help book from wxWidgets
Replies: 3
Views: 1656

Re: Open OS X help book from wxWidgets

@tierre: Thanks for the links. I already read the article about writing online help. Unfortunately it does not cover Apple help, which is what I am searching for. I also know about the integrated HelpController classes (although I never used them, but I know how they look like from the samples), and...
by walderich
Thu Oct 16, 2014 6:48 pm
Forum: Platform Related Issues
Topic: Open OS X help book from wxWidgets
Replies: 3
Views: 1656

Open OS X help book from wxWidgets

I'm currently trying to get a help book working on OS X 10.9.
Is it possible to open the help book from my application's help menu?
I could not find any information about this. The wxWidgets
samples also seem to use their own help format.
by walderich
Fri Feb 21, 2014 1:50 pm
Forum: C++ Development
Topic: Reorder wxDataViewListCtrl columns
Replies: 2
Views: 1191

Re: Reorder wxDataViewListCtrl columns

That is working for me. Thanks a lot!
by walderich
Fri Feb 21, 2014 11:46 am
Forum: C++ Development
Topic: Reorder wxDataViewListCtrl columns
Replies: 2
Views: 1191

Reorder wxDataViewListCtrl columns

I use a wxDataViewListCtrl for editing data in a database. Now I want to enable the user to reorder the columns on demand. Unfortunately, I don't know how get the association between the reordered columns and their original index. How can this be achieved? In wxListCtrl for example exists a method f...
by walderich
Fri Feb 21, 2014 7:06 am
Forum: C++ Development
Topic: Is it allowed to use Bitmap column in wxDataViewListCtrl
Replies: 9
Views: 2642

Re: Is it allowed to use Bitmap column in wxDataViewListCtrl

I've done that, and the ticket (http://trac.wxwidgets.org/ticket/16008) is already resolved. Thanks for your help.
by walderich
Wed Feb 19, 2014 4:00 pm
Forum: C++ Development
Topic: Is it allowed to use Bitmap column in wxDataViewListCtrl
Replies: 9
Views: 2642

Re: Is it allowed to use Bitmap column in wxDataViewListCtrl

Resizing one of the bitmap columns. All other columns are working correctly.
by walderich
Wed Feb 19, 2014 10:26 am
Forum: C++ Development
Topic: wxDateTime 2 Unix timestamp
Replies: 2
Views: 1796

Re: wxDateTime 2 Unix timestamp

As I found this thread, but no valid solution: I think phlox81 asked for the seconds from 1970. This can be achieved with the wxDateTime::GetTicks() method.
by walderich
Wed Feb 19, 2014 7:57 am
Forum: C++ Development
Topic: Is it allowed to use Bitmap column in wxDataViewListCtrl
Replies: 9
Views: 2642

Re: Is it allowed to use Bitmap column in wxDataViewListCtrl

All right. I feared you would say that. But the cast was why I asked the question in the first place. As I only need a simple image column, I found that there is another method "AppendBitmapColumn". Using this, I have the same problem, but now without the explicit cast: diff --git a/sample...