Search found 62 matches

by tigerbeard
Fri Apr 08, 2016 1:22 am
Forum: C++ Development
Topic: Access wxFrame's frame color
Replies: 4
Views: 682

Re: Access wxFrame's frame color

You can't change the border colour. Create the frame without a border if you absolutely need to hide native UI characteristics. Thanks, good to know that there is no point in further searching. In fact I am running without a frame border right now. Unfortunately it implies the loss of interactive r...
by tigerbeard
Thu Apr 07, 2016 5:16 pm
Forum: C++ Development
Topic: Access wxFrame's frame color
Replies: 4
Views: 682

Re: Access wxFrame's frame color

catalin wrote:Use wxWindow::Set[Own]BackgroundColour()
Hm. I inserted in the load resources

Code: Select all

	wxWindow::SetBackgroundColour(*wxRED);
It gave me a red background, but still a grey outer frame.
Or did you mean something different?
by tigerbeard
Wed Apr 06, 2016 11:38 pm
Forum: C++ Development
Topic: Access wxFrame's frame color
Replies: 4
Views: 682

Access wxFrame's frame color

Hi I am looking for a way to change the color of a wxFrame, i.e. being rendered with wxBORDER_SIMPLE. I found a way to retrieve that with wxSystemColor::GetColour() with parameter wxSYS_COLOUR_WINDOWFRAME. Obviously thats read only, but that is the item I want to change for that single wxFrame. I do...
by tigerbeard
Tue Apr 05, 2016 9:42 pm
Forum: C++ Development
Topic: Need a workaroud - Sizer Init Problem
Replies: 6
Views: 685

Re: Need a workaroud - Sizer Init Problem

Hi. I don"t know if it will help, but I remeber that some times, you need to call " SendSizeEvent " on the wxFrame to have a "fake but usefull" resize event emitted. ' Indeed. That solved the issue with the initial code. And is exactly the workaround I was looking for. That means that somewhere is ...
by tigerbeard
Tue Apr 05, 2016 2:00 pm
Forum: C++ Development
Topic: Need a workaroud - Sizer Init Problem
Replies: 6
Views: 685

Re: Need a workaroud - Sizer Init Problem

xaviou wrote:Hi.

I don"t know if it will help, but I remeber that some times, you need to call "SendSizeEvent" on the wxFrame to have a "fake but usefull" resize event emitted.
'
Great idea, checking that...
by tigerbeard
Tue Apr 05, 2016 1:59 pm
Forum: C++ Development
Topic: Need a workaroud - Sizer Init Problem
Replies: 6
Views: 685

Re: Need a workaroud - Sizer Init Problem

Hi doublemax, A sizer that contains only 1 element hardly ever makes sense. In general it's always better to but controls on a panel rather than on the frame directly, although this is not relevant to the problem. You are right, your code is more stripped down and better wxPanel *panel = new wxPanel...
by tigerbeard
Tue Apr 05, 2016 4:33 am
Forum: C++ Development
Topic: Need a workaroud - Sizer Init Problem
Replies: 6
Views: 685

Need a workaroud - Sizer Init Problem

Hello, I have an artefact with a window without caption and status bar. When the display is shown, the sizer layout is not correct. It is correct only after the window is resized with the mouse. I have found in the forum some cases sounding simular, where Layout() has helped. That did not help here,...
by tigerbeard
Tue Apr 05, 2016 1:10 am
Forum: C++ Development
Topic: Why does this crash
Replies: 2
Views: 715

Why does this crash

I can not see why this should crash. I am using wxWidgets 2.9.3, Win7 with CodeBlocks. Just take the minimal sample and add a the following destructor in MyFrame. // add in MyFrame declaration ~MyFrame(); // add in implementaiton MyFrame::~MyFrame() { wxLogMessage("This will crash on Abort"); } Comp...
by tigerbeard
Sun Apr 03, 2016 3:15 pm
Forum: C++ Development
Topic: Forced Kill - wxApp and MainFrame swap places?
Replies: 4
Views: 466

Re: Forced Kill - wxApp and MainFrame swap places?

Honestly, i never dealt with that scenario. Only the case when the system shuts down or the user logs off. But these cases can be handled gracefully by catching the wxEVT_QUERY_END_SESSION event. Very good, I forgot about that event. I checked it out quickly, but it does not react on the Kill used ...
by tigerbeard
Sun Apr 03, 2016 1:35 pm
Forum: C++ Development
Topic: Forced Kill - wxApp and MainFrame swap places?
Replies: 4
Views: 466

Re: Forced Kill - wxApp and MainFrame swap places?

Now that app is killed by another application with the following command If both applications are under your control, it might be more graceful to use IPC to kill it. (Send a user-defined message). I agree. I guess the point is that I leaned my App does not react correct on that kill event. Just su...
by tigerbeard
Sat Apr 02, 2016 11:38 pm
Forum: C++ Development
Topic: Forced Kill - wxApp and MainFrame swap places?
Replies: 4
Views: 466

Forced Kill - wxApp and MainFrame swap places?

Hi, I got a knot in my head, somehow. I have an app with a wxFrame main window and a singleton data storage held in the app class . The pseudo code is like this wxApp::OnInit() { SetLogTarget to wxLogStdErr() m_DataInstance = CData.GetInstance(); [prepare data] m_pMainFrame = new MyWindow(...); m_pM...
by tigerbeard
Sat Apr 02, 2016 9:43 pm
Forum: C++ Development
Topic: wxProcess::Exists(PID)
Replies: 6
Views: 1625

Re: wxProcess::Exists(PID)

found it out. wxExecute spaws the process normally when starting explorer.exe. The parent PID is the onw application process. At least this is the case if in Explorer options 'start in a separate process' is selected. After less than half a second later svchost creates a new explorer process using a...
by tigerbeard
Fri Apr 01, 2016 6:28 pm
Forum: C++ Development
Topic: wxProcess::Exists(PID)
Replies: 6
Views: 1625

Re: wxProcess::Exists(PID)

Hi All, I need help with wxprocess::exists(); why is that test is always true? I found this post in search for a quite interesting other issue I have with wxExecute. The same test unfortunately is *not* always true. Here is the code adapted from the example of asadilan bool test = false; int pid = ...
by tigerbeard
Sun Dec 23, 2012 1:35 pm
Forum: C++ Development
Topic: wxSocket do not execute the event
Replies: 7
Views: 1987

Re: wxSocket do not execute the event

Hi sulfur, I did not see socket:IInitialize() in the code. I did not add the connection source code, because this works fine. When I read data using TcpSocket.Read I got the correct response. I pasted this code below. Sorry, but you got me confused. If you can read from the socket, it must have conn...
by tigerbeard
Fri Dec 21, 2012 11:01 pm
Forum: C++ Development
Topic: wxSocket do not execute the event
Replies: 7
Views: 1987

Re: wxSocket do not execute the event

Hi sulfur, I am not sure I fully understood your problem. Although not being an expert the Event handler looks fine to me. I have similar ones in some of my apps. The socket parameters seem ok well, except that you shoud might want to add wxSOCKET_CONNECTION_FLAG, too. The SetEventHandler could also...