Search found 72 matches

by bcteh
Mon Jan 21, 2008 1:25 am
Forum: Compiler / Linking / IDE Related
Topic: Runtime error :GLib-GObject-CRITICAL **: gtype.c:2240: initi
Replies: 1
Views: 447

Runtime error :GLib-GObject-CRITICAL **: gtype.c:2240: initi

Hi, g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) WxWidget 2.8.6 When i run on my program, it hit the below error: GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function (process:19569): GLib-GObject-CRITICAL **: gtype.c...
by bcteh
Fri Oct 19, 2007 4:05 am
Forum: C++ Development
Topic: wxTreectrl itemdoubleclick to set focus to wxStyleTextCtrl
Replies: 3
Views: 615

Hi, After try for few week. Still can't find a solution. May be my explaination is not so clear. Attached is sample program, using vc studion 2005. Can anyone help me to look for solution or suggection. Note: To similar the error. After double click on TreeItems. Go to File->About. You can see the "...
by bcteh
Thu Oct 18, 2007 10:13 am
Forum: C++ Development
Topic: wxTreectrl itemdoubleclick to set focus to wxStyleTextCtrl
Replies: 3
Views: 615

Hi, Using editor->SetFocus() the "cursor" not show in editor. I check on codeblock source, file -> classbrowser.cpp it use wxFocusEvent to set the cursor to texteditor. I try the same concept, everything work i expected. It only cause problem, when i double click the treeItem, and open other window ...
by bcteh
Thu Oct 18, 2007 6:37 am
Forum: C++ Development
Topic: wxTreectrl itemdoubleclick to set focus to wxStyleTextCtrl
Replies: 3
Views: 615

wxTreectrl itemdoubleclick to set focus to wxStyleTextCtrl

Hi, I create a window with treectl at left side and a notebook at right side with that contain two tabpages with wxStyleTextCtrl. When i double click on treectrl, I need to set the focus to the textctrl. I use the below code to do it. With wxFocusEvent, Everything work fine but when after double cli...
by bcteh
Thu Aug 30, 2007 10:18 am
Forum: C++ Development
Topic: wxImage and wxMemoryBuffer
Replies: 7
Views: 1985

Hi, After convert to wxMemoryBuffer , How can i convert/restore (RGB data) back to wxImage ? Now, I am able to write wxMemoryBuffer back to wxImage, If i read from file by below code. wxFile FileIn(filename); int nDataLength = FileIn.Length(); wxMemoryBuffer BufferIn; int nBytesRead = FileIn.Read(Bu...
by bcteh
Thu Aug 30, 2007 9:16 am
Forum: C++ Development
Topic: wxImage and wxMemoryBuffer
Replies: 7
Views: 1985

wxImage and wxMemoryBuffer

Hi,

Is that posible to save/convert wxImage to wxMemoryBuffer ?

Regards
Teh
by bcteh
Tue Aug 21, 2007 3:05 am
Forum: C++ Development
Topic: wxTreeBook : resize tree control
Replies: 0
Views: 608

wxTreeBook : resize tree control

Hi, For wxTreeBook control, How to resize the treectrl part to make it bigger size ? I try for this, but the size remain same. m_treebook = new wxTreebook(this,wxID_ANY); wxSize size = m_treebook->GetTreeCtrl()->GetBestSize(); size.SetWidth(size.x + 250); m_treebook->GetTreeCtrl()->SetMinSize(size);...
by bcteh
Tue Jul 10, 2007 3:16 am
Forum: Open Discussion
Topic: Basic: Datatype double
Replies: 3
Views: 1137

Basic: Datatype double

Hi,

As below , I assign 28 digits to double variable d.
When i check it value , the d become 1.0000000000000000e+027


double d;
d = 999999999999999999999999999.0;

char buf[100];
sprintf(buf, "%0.*f", 0,d);

and buf = 1000000000000000000000000000

When it become inaccurate ?

Regards
Teh
by bcteh
Wed Jun 27, 2007 9:07 am
Forum: The Code Dump
Topic: wxBitmapCheckBox and wxBitmapRadioButton
Replies: 11
Views: 5810

Hi , I try to compile the BitmapCheckBox, but it hit the below error. Can you help ? I am using wxWidget 2.8.3 on MS Studio 8 on window XP. Regards Teh 1>Compiling... 1>bitmapcheckbox.cpp 1>c:\dev\cafesql\gui\bitmapcheckbox.h(109) : error C2143: syntax error : missing ')' before ',' 1>c:\dev\cafesql...
by bcteh
Mon Jun 04, 2007 6:13 am
Forum: C++ Development
Topic: Unicode build convert wxString to const char *
Replies: 1
Views: 622

Unicode build convert wxString to const char *

Hi, I am using wxWidget in unicode build and use TinyXML to store XML file. How can i convert wxString to const char*. TiXmlDocument doc; TiXmlDeclaration * decl = new TiXmlDeclaration( "1.0", "", "" ); doc.LinkEndChild( decl ); TiXmlElement * element = new TiXmlElement("Hello" ); doc.LinkEndChild( ...
by bcteh
Tue May 15, 2007 8:52 am
Forum: C++ Development
Topic: wxAui : Identifiy the panel is activated
Replies: 2
Views: 485

Hi, Since someone also face the same problem. This is my temporary solution, i testing it in my project it work. Still waiting for better solution.. I change in auibook.h size_t SetSelection(size_t new_page, bool bFocus = true); by add in one parameter. auibook.cpp ==== size_t wxAuiNotebook::SetSele...
by bcteh
Mon May 14, 2007 9:30 am
Forum: C++ Development
Topic: wxAui : Identifiy the panel is activated
Replies: 2
Views: 485

wxAui : Identifiy the panel is activated

Hi, How to identified which panel is activated in wxAui? What i need to do is when the panel is activated. i want to set wxAuiNotebook to particular tagpage. Currently, I am using EVT_CHILD_FOCUS(MyFrame::OnChildFocus) void MyFrame::OnChildFocus(wxChildFocusEvent& evt) { wxAuiPaneInfo& Panel = m_mgr...
by bcteh
Fri Apr 06, 2007 3:48 am
Forum: C++ Development
Topic: wxChar checking alphanumeric
Replies: 1
Views: 298

Have find the similar function
in wxchar.h

#define wxIsalnum iswalnum
by bcteh
Fri Apr 06, 2007 3:23 am
Forum: C++ Development
Topic: wxChar checking alphanumeric
Replies: 1
Views: 298

wxChar checking alphanumeric

Hi,

At Qt that have isLetterOrNumber() function for QChar.

For wxWidget, Is that any method to perform similar function ?
Or other easy way to do that.

Regards
Teh
by bcteh
Tue Apr 03, 2007 10:06 am
Forum: C++ Development
Topic: wxThread: wait timeout crash
Replies: 6
Views: 1367

Hi, You have to delete them after the thread is finished Sorry. Still not sure where to put the delete statement. :oops: Now, still try on error only. How can i know when the detached thread is finished ? See lot memory leak in vc++ debug. If i declare wxMutex and wxCondtion as below in TextCtrl.cpp...