Search found 39 matches

by rajan_m
Tue Feb 09, 2016 2:41 pm
Forum: C++ Development
Topic: wxSizer align controls left-end and right-end.
Replies: 7
Views: 1383

Re: wxSizer align controls left-end and right-end.

What is supposed to happen when a window is resized smaller than a minimum value is a design decision I believe the default behaviour(not my opinion) is, when we shrink the frame with controls beyond the min size it'll cut the view. In my case when frame expands it should align the controls to left...
by rajan_m
Mon Feb 08, 2016 3:42 pm
Forum: C++ Development
Topic: wxSizer align controls left-end and right-end.
Replies: 7
Views: 1383

Re: wxSizer align controls left-end and right-end.

There is no way to control what a sizer does when there is not enough room to show all controls. Shrinking frame doesn't have to shrink the controls as shown in the above image <shrink without overlap>. it can cut the view which is the behaviour if we don't set min size. Update: Sorry for being not...
by rajan_m
Mon Feb 08, 2016 11:52 am
Forum: C++ Development
Topic: wxSizer align controls left-end and right-end.
Replies: 7
Views: 1383

Re: wxSizer align controls left-end and right-end.

doublemax wrote: Alternatively you can call wxWindow::SetSizerAndFit instead of wxWindow::SetSizer to set the sizer.
I've tried SetSizerAndFit but unable to shrink the dialog beyond the content size.

User should be able to shrink the dialog completely without overlapping of controls as shown below.
by rajan_m
Mon Feb 08, 2016 4:39 am
Forum: C++ Development
Topic: wxSizer align controls left-end and right-end.
Replies: 7
Views: 1383

wxSizer align controls left-end and right-end.

Hi, I want to align two buttons one at the left and the other to the right. I'm using horizontal sizer to align buttons left and right with StretchSpacer which works properly on expansion but overlaps on shrinking. wxPanel* pnl = new wxPanel(this); wxButton* left_button = new wxButton(pnl,wxID_ANY,"...
by rajan_m
Fri Jan 29, 2016 6:37 am
Forum: C++ Development
Topic: Touch Screen KeyBoard
Replies: 1
Views: 935

Re: Touch Screen KeyBoard

Hi, did you find any solution?. if yes could you kindly share it.
by rajan_m
Tue Oct 27, 2015 4:14 pm
Forum: Platform Related Issues
Topic: Stop [ALT key + Left Mouse drag] event propagation to OS (Linux)
Replies: 0
Views: 918

Stop [ALT key + Left Mouse drag] event propagation to OS (Linux)

Hi, I've a frame with wxGLCanvas which uses wxKeyEvent and wxMouseEvent for various operation. User can do [ALT key + Left Mouse drag] to draw a rectangle in the canvas. It works fine in windows but in linux it moves the frame. How to disable that behavior so that only my application should handle t...
by rajan_m
Fri Jul 31, 2015 2:13 pm
Forum: C++ Development
Topic: Windows 7 Display on/off event issue?
Replies: 2
Views: 387

Windows 7 Display on/off event issue?

Hi, I'm trying to capture display on/off event using following code, able to capture off event but not on. WXLRESULT MyFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { wxTextCtrl* textctrl = (wxTextCtrl*)FindWindowById(MOUSE_TEXT,this); if(nMsg == WM_SYSCOMMAND ) { if(wParam == ...
by rajan_m
Fri Jul 10, 2015 3:22 pm
Forum: C++ Development
Topic: Can't create dialog using memory template - means what?
Replies: 3
Views: 883

Re: Can't create dialog using memory template - means what?

Grep the source (wxWidgets) and found if ''CreateDialogIndirect()'' call fails, then error message is logged.
The error message popup on closing the application and not shown at the time of issue.

Any Reason why it might happen?.
by rajan_m
Fri Jul 03, 2015 3:32 pm
Forum: C++ Development
Topic: Can't create dialog using memory template - means what?
Replies: 3
Views: 883

Can't create dialog using memory template - means what?

Hi,

Getting error message on closing my application.(see attachment)

Message dialogs are not appearing some times in my application, Is it related to this issue?.

Stuck without any ideas to proceed. kindly help.
by rajan_m
Thu Nov 06, 2014 11:10 am
Forum: General Development
Topic: wxGLCanvas Pause Paint Event?
Replies: 7
Views: 1709

Re: wxGLCanvas Pause Paint Event?

Manolo wrote: I would break the data into chunks. While the working thread modify one chunk, the GUI reads and draws other chunk..
Thanks for your reply, we cannot draw partial data and canvas draw is way faster than our thread function execution.
by rajan_m
Thu Nov 06, 2014 10:58 am
Forum: General Development
Topic: wxGLCanvas Pause Paint Event?
Replies: 7
Views: 1709

Re: wxGLCanvas Pause Paint Event?

I forgot to mention our data is huge and copying is costly work. And we are also not allowed to clear or change the canvas content. The only other option i could think of would be to display a static bitmap of the old content. Simple solution , but I'm curious to solve my mutex problem. please see ...
by rajan_m
Wed Nov 05, 2014 11:00 am
Forum: General Development
Topic: wxGLCanvas Pause Paint Event?
Replies: 7
Views: 1709

Re: wxGLCanvas Pause Paint Event?

Hi doublemax,

I forgot to mention our data is huge and copying is costly work. And we are also not allowed to clear or change the canvas content.

Thanks for your reply.
by rajan_m
Wed Nov 05, 2014 8:15 am
Forum: General Development
Topic: wxGLCanvas Pause Paint Event?
Replies: 7
Views: 1709

wxGLCanvas Pause Paint Event?

Hi, In a application with data shared between wxGLCanvas and wxThreads. Scenario : thread modifies the data which is used by canvas which results in a crash in paint event. Current Solution : used mutex to share the data between canvas and thread. Issue: we are displaying progress info of thread in ...
by rajan_m
Wed Jul 23, 2014 5:31 am
Forum: C++ Development
Topic: progress dialog goes back and forth
Replies: 2
Views: 877

Re: progress dialog goes back and forth

@doublemax tried sample app with threads and it solves the not-responding as well as hiding issue but unfortunately I cannot use it since there are too may UI related code in my loading function :(
by rajan_m
Mon Jul 21, 2014 3:44 pm
Forum: C++ Development
Topic: progress dialog goes back and forth
Replies: 2
Views: 877

progress dialog goes back and forth

Hi,

I've frame with wxglcanvas which displays 3d models. When loading a large 3d model file, my progress dialog goes back and forth with respect to the application frame.

wxWidgets 2.8.10
windows 7.

please go through this link http://murugan.net46.net/progress.wmv