Search found 139 matches

by frank_frl
Wed Jan 26, 2011 7:31 pm
Forum: C++ Development
Topic: wxStaticText transparent background
Replies: 3
Views: 2892

Maybe that helps. class TransparentStaticText : public wxStaticText { DECLARE_DYNAMIC_CLASS (TransparentStaticText) public: TransparentStaticText(); TransparentStaticText( wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSi...
by frank_frl
Mon Sep 27, 2010 8:09 am
Forum: Compiler / Linking / IDE Related
Topic: setup.h infamous error -CodeLite
Replies: 9
Views: 4823

Hi evstevemd,

take a look at the build.cfg in Lib/gcc_lib/mswu.
There is a line:

Code: Select all

DEBUG_FLAG=1
Change that to:

Code: Select all

DEBUG_FLAG=default
Frank
by frank_frl
Sun May 23, 2010 10:43 am
Forum: C++ Development
Topic: Animation
Replies: 6
Views: 989

Re: Animation

and in function in which I want to move my bitmap: for(int i=0; i<Dist; ++i) { ++x; Refresh(); //Sleep(10); wxGetApp().Yield(); // give your app a chance to draw !!! } A Refresh() will just add an event to the event queue. Since your are in a loop here, you must give your app a chance to handle tho...
by frank_frl
Thu Apr 22, 2010 9:32 pm
Forum: C++ Development
Topic: Get path to current module/EXE?
Replies: 6
Views: 4016

Hi JohnD,


http://docs.wxwidgets.org/2.8/wx_wxstandardpaths.html

try this:

Code: Select all

wxStandardPaths std;
wxString exePath = std.GetExecutablePath();
Frank
by frank_frl
Fri Apr 16, 2010 7:48 am
Forum: C++ Development
Topic: wxTreeCtrl - InsertItem with wxTR_HIDE_ROOT style problem
Replies: 5
Views: 834

Hi greg,

what is the return value of wxTreeCtrl::AddRoot on the 3. page.
It should return the root item.

Code: Select all

wxTreeItemId AddRoot(const wxString& text, int image = -1, int selImage = -1, wxTreeItemData* data = NULL)
Frank
by frank_frl
Thu Apr 15, 2010 5:48 pm
Forum: C++ Development
Topic: wxTreeCtrl - InsertItem with wxTR_HIDE_ROOT style problem
Replies: 5
Views: 834

Hi Greg,

if I understand you right, you would like to add items from page 1 and 2 to a empty wxTreeCtrl on page 3. But if you try to get the root item from page 3, there is no root item. So I guess, that you just forgot to first add a root item to that wxTreeCtrl.

Frank
by frank_frl
Thu Apr 15, 2010 1:01 pm
Forum: C++ Development
Topic: VC++ 2008 EE output files don't work on another PC
Replies: 7
Views: 1340

Mojo wrote: Nothing remains for me but to try rebuild my project with GCC compiler and GDB debugger from MinGW.
Hi Mojo,

I guess this is the best you can do. We had a lot of trouble with this MS DLL hell, but since we dropped all MS stuff (IDE and compiler) and moved to MinGW life is easy again.

Frank
by frank_frl
Wed Apr 14, 2010 10:19 am
Forum: C++ Development
Topic: Creating a table to display data
Replies: 2
Views: 1297

Hi Fire Lancer,

take a look here, maybe that's what you looking for:
http://wxcode.sourceforge.net/components/advtable/

Frank
by frank_frl
Tue Apr 13, 2010 2:02 pm
Forum: C++ Development
Topic: Simple animation in wxWidgets C++
Replies: 4
Views: 983

Yes, I know. So it's impossible, no way to do it... Hi Vivendus, there is a way. Derive your window also from wxThreadHelper to make it more easy: class MainFrame : public wxFrame, wxThreadHelper { protected: void OnPaint( wxPaintEvent& event ); virtual void* Entry(); wxCriticalSection m_lock; wxPo...
by frank_frl
Mon Apr 12, 2010 4:30 pm
Forum: Platform Related Issues
Topic: wxListCtrl InsertItem problem on MAC
Replies: 3
Views: 932

Auria wrote:Hi,

unfortunately, this is a known bug : http://trac.wxwidgets.org/ticket/4492
This ticket is opened 2 years ago and not fixed yet :cry:
Guess I have to find an other solution.

Frank
by frank_frl
Mon Apr 12, 2010 10:38 am
Forum: Platform Related Issues
Topic: wxListCtrl InsertItem problem on MAC
Replies: 3
Views: 932

wxListCtrl InsertItem problem on MAC

Hi to all, I have a log window with a wxListCtrl inside. The newest entry should always be the first in the list, so I call pList->InsertItem(0,"Some text") This works as expected on MSW, but on MAC it always replaces the first entry, so that the list is never filled. Do I miss something? Calling In...
by frank_frl
Sun Apr 11, 2010 9:57 am
Forum: C++ Development
Topic: Using wxTCPServer for multiple clients
Replies: 3
Views: 779

Hi assafr,

I'm using wxSocketServer and wxSocketClient for TCP/IP and that works fine with multiple clients connected to one server.

Frank
by frank_frl
Sun Mar 28, 2010 3:33 pm
Forum: C++ Development
Topic: Print a wString sequentially
Replies: 1
Views: 510

Re: Print a wString sequentially

Hi chouahm2, you should call wxGetApp().Yield() after changing the text, to give your wxTextCtrl a chance to update. Frank for (int i = 0 ; i < str.Length() ; i++) { m_dialog->WriteText(str.SubString(i,i)); /* m_dialog is a wxTextCtrl() box*/ // call wxApp Yield() here to update wxTextctrl !!! wxGet...
by frank_frl
Thu Mar 25, 2010 1:12 pm
Forum: C++ Development
Topic: Trouble with wxPaintDC in wxThread
Replies: 4
Views: 835

Hi m_ishihara, if you give your render thread a pointer to your wxGlCanvas, you can call pGlCanvas->Refresh() from within your render thread without problems. I used this way to render up to 12 wxGlCanvas with different content in a 10 ms time slice without having any trouble with it.(At least on Wi...
by frank_frl
Wed Mar 17, 2010 9:54 am
Forum: C++ Development
Topic: glCanvas
Replies: 2
Views: 451

Hi,

did you added libwxmsw28u_gl.a(UNICODE) or libwxmsw28_gl.a(ANSI) to your project?

Frank