Differences in preview and program images...

Post here wxCrafter related issues / features / bugs
XChanger
CodeLite Curious
Posts: 3
Joined: Mon Jun 16, 2014 10:51 am
Genuine User: Yes
IDE Question: C++
Contact:

Differences in preview and program images...

Post by XChanger »

Hi,
something goes wrong for me with CodeLite 6.0 and wxCrafter 1.5 (binaries downloaded from CodeLite site). I tried to build little program with wxCrafter composed interface. After composing preview shows normal design:
http://imgur.com/guc8EkR
But after compiling project with CodeLite Mingw compiler (wxWidgets binaries - from CodeLite site) view of design is scrambled:
http://imgur.com/UnDQOvx
What may be reason? The only warning from windres :
  • C:\Windows\system32\cmd.exe /c "C:/MinGW-4.8.1/bin/mingw32-make.exe -j2 -e -f Makefile"
    "----------Building project:[ trets - Debug ]----------"
    mingw32-make.exe[1]: Entering directory 'C:/trets'
    C:\MinGW-4.8.1\bin\windres.exe -i "C:/trets/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets-3.0.0/lib/gcc_dll/mswu --include-dir C:/wxWidgets-3.0.0/include --define WXUSINGDLL -o ./Debug/win_resources.rc.o
    C:\MinGW-4.8.1\bin\g++.exe -c "C:/trets/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.cpp.o -I. -I.
    C:\MinGW-4.8.1\bin\windres.exe: warning: 24: 1: 1033: duplicate value
    C:\MinGW-4.8.1\bin\g++.exe -c "C:/trets/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/MainFrame.cpp.o -I. -I.
    C:\MinGW-4.8.1\bin\g++.exe -c "C:/trets/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/wxcrafter.cpp.o -I. -I.
    C:\MinGW-4.8.1\bin\g++.exe -c "C:/trets/wxcrafter_bitmaps.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/wxcrafter_bitmaps.cpp.o -I. -I.
    C:\MinGW-4.8.1\bin\g++.exe -o ./Debug/trets @"trets.txt" -L. -lwxmsw30ud_gl -mthreads -LC:/wxWidgets-3.0.0/lib/gcc_dll -lwxmsw30ud_xrc -lwxmsw30ud_aui -lwxmsw30ud_html -lwxmsw30ud_adv -lwxmsw30ud_core -lwxbase30ud_xml -lwxbase30ud_net -lwxmsw30ud_richtext -lwxbase30ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
    mingw32-make.exe[1]: Leaving directory 'C:/trets'
    0 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Differences in preview and program images...

Post by eranif »

IIRC, its a problem with wxStaticBoxSizer.
Try replacing that sizer with wxBoxSizer

I think we workaround it in the preview in the hope it will get fixed someday.
Also, it is not recommended to place controls directly into wxFrame.
You should place them inside a wxPanel, i.e. your wxFrame should have a mainsizer with a single child of type wxPanel, then place all the other controls inside it

Eran
Make sure you have read the HOW TO POST thread
XChanger
CodeLite Curious
Posts: 3
Joined: Mon Jun 16, 2014 10:51 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Differences in preview and program images...

Post by XChanger »

No way :( Added panel to main wxBoxSizer, replaced same controls except wxStaticBoxSizer, which changed with wxBoxSizer too - image still remain scrambled after recompilation, it seems wxSplitterWindow page (as wxPanel ) element remains min sized though sizer's proportion and expanding flags are enabled. Another bad thing (was present all time) - resizing frame makes internal control containers to resize properly in preview, but in compiled version they remain not resized.
As I see, wxWidgets binaries for Mingw gcc were built with older CodeLite - maybe I need to build binaries with new CodeLite version?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Differences in preview and program images...

Post by eranif »

Can you upload your .wxcp file?

Thanks
Eran
Make sure you have read the HOW TO POST thread
XChanger
CodeLite Curious
Posts: 3
Joined: Mon Jun 16, 2014 10:51 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Differences in preview and program images...

Post by XChanger »

Here it is :)
You do not have the required permissions to view the files attached to this post.
Post Reply