Search found 72 matches

by manianis
Fri Jan 26, 2007 9:40 am
Forum: wxCode
Topic: Databaselayer version 1.6 doesn't compile under mingw.
Replies: 9
Views: 2153

Databaselayer version 1.6 doesn't compile under mingw.

When I compile a project using databaselayer I get the following messages : g++ -o ..\tests\runner_mysql.exe mingw\test_mysql_TestsRunner.o mingw\test_mysql_MiniCppUnit.o mingw\test_mysql_databaselayer_tests.o -mthreads -mthreads -LE:\wxWidgets-2.8.0\lib\gcc_dll -L..\lib -IF:\web\mysql\include -LF:\...
by manianis
Thu Jan 25, 2007 9:37 pm
Forum: Component Writing
Topic: How to show/hide a wxPanel ?
Replies: 2
Views: 1904

First of all thank you...

I've called

Code: Select all

myPanel->Update();
Update();
Refresh();
But it doesn't show's the Panel.

Code: Select all

GetSizer()->Layout();
Is what I needed...
by manianis
Thu Jan 25, 2007 7:54 pm
Forum: Component Writing
Topic: How to show/hide a wxPanel ?
Replies: 2
Views: 1904

How to show/hide a wxPanel ?

I'm using a wxPanel with some controls on it. In the Form constructor I've a test like this : if (test) { myPanel->Show(false); } I want to show/hide this panel when I press a button in another panel within the Frame. I tried this but it doesn't function until I resize the Frame window. void MyFrame...
by manianis
Thu Jan 25, 2007 7:40 pm
Forum: C++ Development
Topic: bool issues compiling wxWidgets with the MySQL C API
Replies: 4
Views: 733

I'm compiling MySQL C API with mingw and there's no problems of bool redefinition.
by manianis
Tue Jan 23, 2007 10:51 pm
Forum: C++ Development
Topic: Internationalization with one exe
Replies: 4
Views: 884

Yes, wxWidgets support resources. I'm newbie to wxWidgets I can't tell how but I'm interseted in such information.
by manianis
Tue Jan 23, 2007 10:45 pm
Forum: General Development
Topic: How to find the CPU Id ?
Replies: 6
Views: 1673

How to find the MAC address of the NIC ?
by manianis
Tue Jan 23, 2007 7:48 pm
Forum: General Development
Topic: How to find the CPU Id ?
Replies: 6
Views: 1673

How to find the CPU Id ?

Is there any function that return the CPU Identifier for the Pentium III et Pentium 4 processor ?

Edit: Not wxWidgets specific. -vdell
by manianis
Tue Jan 23, 2007 12:31 pm
Forum: General Development
Topic: How to Simulate a key press likes function keybd_event()
Replies: 3
Views: 1972

Try sending message wxKeyEvent after filling :

wxKeyEvent::m_altDown
wxKeyEvent::m_controlDown
wxKeyEvent::m_keyCode
wxKeyEvent::m_metaDown
wxKeyEvent::m_shiftDown
wxKeyEvent::m_x
wxKeyEvent::m_y

properties... It can help perhaps...
by manianis
Mon Jan 22, 2007 11:18 am
Forum: Component Writing
Topic: wxDatePickerCtrl into wxGrid ?
Replies: 2
Views: 1500

The code I submitted there can be used as a Cell Editor in wxGrid but is incomplete and I don't know how to correct the problem help please.
by manianis
Mon Jan 22, 2007 11:13 am
Forum: Component Writing
Topic: Problem with ComboBox in version 2.8.0
Replies: 26
Views: 4716

Try using the default constructor : wxString s[] = { _("d"), _("c"), _("b"), _("a") }; wxComboBox* itemComboBox32 = new wxComboBox; itemComboBox32->Create(this, wxID_ANY, _("a"), wxDefaultPosition, wxSize(130, -1), 4, s, wxCB_DROPDOWN); itemComboBox32->SetStringSelection(_("a")); cout << itemComboBo...
by manianis
Sat Jan 20, 2007 1:04 pm
Forum: Component Writing
Topic: wxDatePickerCtrl into wxGrid ?
Replies: 2
Views: 1500

wxDatePickerCtrl into wxGrid ?

I'm using wxDatePickerCtrl as an editor in wxGrid cell. But it behaves strangely. This is the code I wrote to implement it : in the header file #ifndef DTIMEEDITOR_H_INCLUDED #define DTIMEEDITOR_H_INCLUDED #include <iostream> using namespace std; #include <wx/grid.h> #include <wx/generic/gridsel.h> ...
by manianis
Fri Jan 19, 2007 7:42 pm
Forum: C++ Development
Topic: event needed when dropping down a combobox
Replies: 1
Views: 406

Isn't wxComboCtrl what you're requesting ? It's customisable combo box which offers more features than the wxComboBox.
by manianis
Fri Jan 19, 2007 7:37 pm
Forum: Component Writing
Topic: Problem with ComboBox in version 2.8.0
Replies: 26
Views: 4716

I don't think it's a bug in the configuration or Linux compile because then the combo-example also would be wrong. But there the entries are in correct order. I think it's a very stupid mistake but I'm unable to find it. And I wonder because of 4 lines I've added to the minimal example, there can't...
by manianis
Fri Jan 19, 2007 7:30 pm
Forum: Compiler / Linking / IDE Related
Topic: How to reduce the generated application size ?
Replies: 5
Views: 1216

I considered 2MB huge because I'm used to MFC and the size of the generated file in th release mode is 20KB for the same result as wxWidget. But the link you mentionned explains the reasons thank you. I don't think that page mentions at all why it's 2MB instead of your 20KB, but the reason is becau...
by manianis
Fri Jan 19, 2007 12:03 pm
Forum: C++ Development
Topic: convert wxstring to char
Replies: 7
Views: 2115

I've had this problem it can be solved this way : /// Conversion from wxString to string. #define ws2s(as) (string((as).mb_str(wxConvUTF8))) /// Conversion from string to wxString. #define s2ws(s) (wxString((s).c_str(),wxConvUTF8)) /// Conversion from C-string to wxString #define cs2ws(s) (wxString(...