Search found 712 matches

by Manolo
Wed May 09, 2012 11:45 am
Forum: C++ Development
Topic: repaint of parent dialog when modal dialog is open
Replies: 8
Views: 2520

Re: repaint of parent dialog when modal dialog is open

A modal window disables its owner. So the owner will not receive mouse/keyboard messages. But the rest of messages should be proccesed.
I was wrong, sorry.
by Manolo
Tue May 08, 2012 2:57 pm
Forum: C++ Development
Topic: repaint of parent dialog when modal dialog is open
Replies: 8
Views: 2520

Re: repaint of parent dialog when modal dialog is open

Hi Modal window means that messages are dispachted only to this modal window, not to others. When this modal window shows, it covers other windows, which invalidate its covered rectangle. I don't konw if it will work, but try this: Have two functions in your graphics window handler: MyGWH::MyOnPaint...
by Manolo
Mon May 07, 2012 11:21 pm
Forum: C++ Development
Topic: wxGrid scroll position
Replies: 3
Views: 2327

Re: wxGrid scroll position

Hi
wxGrid zone for cells is a scrolled window. You can get it with wxGrid::GetGridWindow()
But I suppose you just need wxGrid functions, like GetGridCursorCol(), GoToCell(), IsVisible(), etc.
See http://docs.wxwidgets.org/trunk/classwx_grid.html
by Manolo
Mon May 07, 2012 11:09 pm
Forum: Platform Related Issues
Topic: wxMSW 2.8.12, wxCondition signaled, but not woken up
Replies: 7
Views: 2821

Re: wxMSW 2.8.12, wxCondition signaled, but not woken up

MSWindows use shared memory for threads, while Unices doesn't. Your deadlock is, perpahps, due to you use member vars to see if the thread should wait or not. And IMO this member vars are shared among different instances of the same thread type. Locking them with wxMutexLocker and then calling m_con...
by Manolo
Mon May 07, 2012 8:16 pm
Forum: Platform Related Issues
Topic: wxMSW 2.8.12, wxCondition signaled, but not woken up
Replies: 7
Views: 2821

Re: wxMSW 2.8.12, wxCondition signaled, but not woken up

IMO, wxCondition is designed to be used not inside a thread, but between threads. You want some part of the thread to wait to other part of the same thread.
I prefer "different purposes, different objects". Let each object instance wait as a whole, not in parts.
by Manolo
Mon May 07, 2012 7:46 pm
Forum: Compiler / Linking / IDE Related
Topic: build wxWidgets WINDOWS Mingw32 Code::Blocks
Replies: 11
Views: 5194

Re: build wxWidgets WINDOWS Mingw32 Code::Blocks

Building monolithic debug with g++ 4.x (x>4?) needs tons of ram memory, say > 6 GB.
by Manolo
Mon May 07, 2012 4:59 pm
Forum: Compiler / Linking / IDE Related
Topic: build wxWidgets WINDOWS Mingw32 Code::Blocks
Replies: 11
Views: 5194

Re: build wxWidgets WINDOWS Mingw32 Code::Blocks

Read \docs\msw\install.txt
You can find there that if you add MONOLITHIC=1 in the "pasted line" I told before, you get monolithic builds.

I can't find WX_FLAVOUR & WX_LIB_FLAVOUR in the official wxWidgets files. They may be part of other third party files.
by Manolo
Mon May 07, 2012 3:31 pm
Forum: Compiler / Linking / IDE Related
Topic: build wxWidgets WINDOWS Mingw32 Code::Blocks
Replies: 11
Views: 5194

Re: build wxWidgets WINDOWS Mingw32 Code::Blocks

Hi Perhaps you don't want to type again so much you've here ;) I have a .txt file with two lines: mingw32-make -f makefile.gcc BUILD=debug UNICODE=1 mingw32-make -f makefile.gcc BUILD=release UNICODE=1 When I need to compile wxWidgets, just open a new commad window, change to wxXXX\build\msw dir and...
by Manolo
Mon May 07, 2012 3:22 pm
Forum: C++ Development
Topic: making a program scriptable
Replies: 1
Views: 638

Re: making a program scriptable

Hi Even wxScript was released some years ago, why do you think it is outdated? Have you tested it? I've never thougt about a script that sends messages to the main app. But it doesn't seem so difficult. I mean: The script create a control, which receives messages. The script defines how this control...
by Manolo
Mon May 07, 2012 3:11 pm
Forum: C++ Development
Topic: some explanation over code snippet
Replies: 1
Views: 430

Re: some explanation over code snippet

Hi Google search for "WxFrameInternals" lead to "H3D API" at h3d.org They use several "internal definitions": /******************Internal definitions**************/ namespace WxFrameInternals { wxString wx_as_graphics = wxT("As graphics"); wxString wx_front_and_back = wxT("Front and back"); wxString...
by Manolo
Sat May 05, 2012 5:43 pm
Forum: C++ Development
Topic: operator[]
Replies: 12
Views: 3262

Re: operator[]

Hi
p_data stores 'ints', but BIN::operator[] returns a RAM address, not an int address.
bin[ keyNo ] is then a pointer to RAM type, not a int. The compiler doesn't know how to access an ints array, but a RAMs one.
by Manolo
Sat May 05, 2012 5:13 pm
Forum: Platform Related Issues
Topic: mingwm10.dll crash
Replies: 13
Views: 4486

Re: mingwm10.dll crash

MinGW download: this "mingw-get" will do it all: http://sourceforge.net/projects/mingw/files/latest/download CodeBlocks last version: http://forums.codeblocks.org/index.php/board,20.0.html To compile wxWidgets, I just open the MSW command window, change dir to something like "c:\wx293\build\msw" and...
by Manolo
Sat May 05, 2012 4:59 pm
Forum: Platform Related Issues
Topic: wxMSW 2.8.12, wxCondition signaled, but not woken up
Replies: 7
Views: 2821

Re: wxMSW 2.8.12, wxCondition signaled, but not woken up

Hi First: Please, enclose the code you post between " " tags. It makes the code much more readable. Second: I see just one , not two, thread "CIOThread" with two functions: the needed "Entry()" and the other "GetNextReadBuffer(..)" Third: Be sure, really sure, each wxCondition::Wait() has its paired...
by Manolo
Fri May 04, 2012 11:22 am
Forum: C++ Development
Topic: wxTextCtrl constructor crashes
Replies: 11
Views: 2103

Re: wxTextCtrl constructor crashes

Mmmm... I see is using '-O3'. I remember once I reduced this optimization level to '-O2' and some issues went away. I'm curious: I haven't seen before those "-2.8" tags in the filenames. If it is your IDE adding them, check the rest of things it does automatically, perhaps some are quite old. I also...
by Manolo
Fri May 04, 2012 10:57 am
Forum: Platform Related Issues
Topic: mingwm10.dll crash
Replies: 13
Views: 4486

Re: mingwm10.dll crash

Hi More than a year ago, MinGW team managed to make mingwm10.dll not needed. Perhaps you should update your compiler and try again. It is also a good idea to make sure wxWidgets and your app are both compilated the same way. It seems to me that is wx libraries that are asking for mingwm10.dll, not y...