Search found 12670 matches

by doublemax
Thu Oct 18, 2018 8:29 am
Forum: General Development
Topic: Get function in "Saga Gis"
Replies: 1
Views: 28

Re: Get function in "Saga Gis"

The users in the Saga forum probably know more about it:
https://sourceforge.net/p/saga-gis/discussion/

In general: Find the menu text for that function in the source, find the ID for it, find the event handler that is connected to that ID, and so on...
by doublemax
Wed Oct 17, 2018 7:55 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 15
Views: 165

Re: purple background when transparency = true

Sorry, i have no idea how this ever worked and without a working sample to reproduce the issue, i don't know how to help you.
by doublemax
Wed Oct 17, 2018 4:28 pm
Forum: C++ Development
Topic: wxSimpleBook problems
Replies: 4
Views: 52

Re: wxSimpleBook problems

While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong? I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux. Also, i never see the PageChanged and PageChanging events fired... why? Do you catch wxEVT_BO...
by doublemax
Wed Oct 17, 2018 12:56 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 15
Views: 165

Re: purple background when transparency = true

What the code wants to do is have the text foreground to show but the background of the text window to be transparent so the bitmap image in the window under the text window shows through. If you just need to draw text over a bitmap should should combine these two. Have a paint event handler that d...
by doublemax
Tue Oct 16, 2018 6:20 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 15
Views: 165

Re: purple background when transparency = true

I guess my question is there a better way to do what this code is trying to do? First i'd be quite curious to know how it ever worked :) With a screenshot it would be easier to understand what this code actually does. I assume you want to draw something custom on top of a native control? That would...
by doublemax
Tue Oct 16, 2018 4:10 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 15
Views: 165

Re: purple background when transparency = true

setTransparent(wxByte transparency) is only supported for toplevel windows, not for child windows. There was a wxWindowMSW::SetTransparent(bool) in older wxWidgets versions, but it never did anything. A method isTransparent() does not exist in wxWidgets. Also, there is nothing in wxWidgets that lets...
by doublemax
Tue Oct 16, 2018 3:49 pm
Forum: C++ Development
Topic: Help in "routing" events between classes [SOLVED]
Replies: 3
Views: 60

Re: Help in "routing" events between classes [SOLVED]

You could use wxTheApp as global event handler, you send events to it and your receiver class Bind()s to wxTheApp and grabs the events from there.

Or try to find a simple signal/slot library. It doesn't have to be a wxWidgets solution.
by doublemax
Tue Oct 16, 2018 12:41 pm
Forum: C++ Development
Topic: Help in "routing" events between classes [SOLVED]
Replies: 3
Views: 60

Re: Help in "routing" events between classes [SOLVED]

I'm not quite sure what your problem is, based on the code and your description, it seems you already know everything you need to know :) Derive "cDataHandler" from wxEvtHandler and pass its pointer into "CommManager", so that it knows where to send the event. wxWidgets does not ...
by doublemax
Mon Oct 15, 2018 7:40 pm
Forum: C++ Development
Topic: Forced to click twice on button
Replies: 3
Views: 157

Re: Forced to click twice on button

I don't see anything that looks suspicious to me. Now i would override wxEventFilter::FilterEvent (baseclass of wxApp), log all events and check if there is any event arriving on the first click. Maybe it gives a hint about the issue.
by doublemax
Mon Oct 15, 2018 3:44 pm
Forum: C++ Development
Topic: Is there AddStretchableSpace like wxToolbar in wxRibbonBar?
Replies: 1
Views: 51

Re: Is there AddStretchableSpace like wxToolbar in wxRibbonBar?

After looking through the API and the source code, i'd say there is nothing like that in wxRibbonBar.
by doublemax
Sun Oct 14, 2018 8:03 pm
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 400

Re: wxThread & GUI

wxJack wrote:Can I set more than one string (or more than one int) at once and send them without any trouble in this way ?
Yes. You derive from wxEvent or wxCommandEvent and then you can add as many member variables as you like.
by doublemax
Sun Oct 14, 2018 2:50 pm
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 400

Re: wxThread & GUI

So in conclusion we can say that the same event can have 2 (or more, but in this case 2) components, a string and an int, correct? Yes, definitely. It would be more elegant to transport all three components at once, for that you'd have to define your own event class. If you ever need to extend your...
by doublemax
Sun Oct 14, 2018 10:07 am
Forum: C++ Development
Topic: Forced to click twice on button
Replies: 3
Views: 157

Re: Forced to click twice on button

If all controls are descendants of the same toplevel window, i can't think of any reason why this could happen.

This happens only when that particular tab is open? Is there anything special about it? Is it possible there is another control that consumes the button event?
by doublemax
Sun Oct 14, 2018 10:03 am
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 400

Re: wxThread & GUI

This sample worked for me. Core code parts: virtual void *Entry() { Sleep(1000); for(int i=0; i<100; i++) { wxLogDebug("adding item %d", i ); wxCommandEvent event(wxEVT_BUTTON, LISTCTRL_UPDATE_INT); event.SetInt(i); event.SetString( wxString::Format("item %d, column 1", i ) ); m_...
by doublemax
Sat Oct 13, 2018 3:39 pm
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 400

Re: wxThread & GUI

This is very strange. I would not expect that code to work. Unfortunately i don't have time to test this myself at the moment. Maybe tomorrow.

Go to advanced search