Search found 40 matches

by luker
Mon Sep 10, 2007 2:23 pm
Forum: C++ Development
Topic: SIGSEGV bei Zuweisung
Replies: 3
Views: 948

I don't do it simply because I don't know its name. The only thing I've seen yet dealing with the application class is the IMPLEMENT_APP() macro. And I tried to let a message box pop up by the time the application closes. It didn't work. void MyNewApp::OnClose( wxCloseEvent& event){ // wxMessage...
by luker
Mon Sep 10, 2007 12:41 pm
Forum: C++ Development
Topic: SIGSEGV bei Zuweisung
Replies: 3
Views: 948

SIGSEGV bei Zuweisung

Hi experts, "Vci" is a class I want to use in my program. So I coded the following: IMPLEMENT_APP( MyNewApp) bool MiniApp::OnInit(){ m_Vci1= new Vci(); frame= new CanCommFrame( NULL, -1, "CanComm", m_Vci1); SetTopWindow( frame); frame->Show( true); wxIcon icon( icoFrame); frame->...
by luker
Tue Jun 19, 2007 12:06 am
Forum: C++ Development
Topic: drawing example
Replies: 1
Views: 795

drawing example

Hi experts, i tried to draw something on a panel. The system is Windows XP with MinGW developer studio including wxWidgets 2.6.0. This is the code: void MyPanel::DrawSomeStuff(){ wxClientDC dc1( this); dc1.SetLogicalOrigin( 0, 0); //* dc1.SetAxisOrientation( true, false); //* dc1.SetUserScale( 1.0, ...
by luker
Thu May 10, 2007 7:59 am
Forum: C++ Development
Topic: Scrolling two windows with one scrollbar
Replies: 4
Views: 1281

new approach: surrounding wxScrolledWindow

Hi experts, @peri_ololon: Thanks for the reply. I did not test ist myself yet, but it looks like it would be necessary to derive a class for the rightmost grid that processes its ScrollWinEvents and controls the other grids. Did I get your idea? @all: Meanwhile, I tried a different attempt: put all ...
by luker
Wed Apr 18, 2007 7:18 am
Forum: C++ Development
Topic: Scrolling two windows with one scrollbar, revisited
Replies: 2
Views: 682

Hi experts, many thanks to tierra. Now this example compiles and runs when linked against wxmsw26d_adv (due to wxGrid, I suppose): #include "wx/wx.h" #include "wx/grid.h" class MyApp: public wxApp{ virtual bool OnInit(); }; class MyPanel: public wxPanel{ private: wxBoxSizer* m_sz...
by luker
Tue Apr 17, 2007 2:11 pm
Forum: C++ Development
Topic: Scrolling two windows with one scrollbar, revisited
Replies: 2
Views: 682

Scrolling two windows with one scrollbar, revisited

Hi Experts, since I didn't get the real program to work, I tried to build a minimal compilable one out of the "Hello World" example. Here it is: #include "wx/wx.h" #include "wx/grid.h" class MyApp: public wxApp{ virtual bool OnInit(); }; class MyPanel: public wxPanel{ p...
by luker
Tue Apr 17, 2007 7:11 am
Forum: C++ Development
Topic: Scrolling two windows with one scrollbar
Replies: 4
Views: 1281

Hi Saurabh, I moved the MyFrame::OnGrdSumScrolled() to my wxFrame derived class. void PamaFrame::OnGrdSumScrolled( wxScrollEvent &event){ wxMessageBox( "Processing Scroll Event"); int iPixX= 0; int iPixY= 0; // m_grdData->GetScrollPixelsPerUnit( &iPixX, &iPixY); // m_grdData->S...
by luker
Mon Apr 16, 2007 9:38 am
Forum: C++ Development
Topic: Scrolling two windows with one scrollbar
Replies: 4
Views: 1281

Scrolling two windows with one scrollbar

Hi experts, after a search I found a thread called "scrollbar in window 1 control scrolling in window 2" which says catch EVT_SCROLL (see wxScrollEvent) of right window and perform the scroll on left window. you can use wxScrollEvent::GetPosition() to get the scroll bar position of right w...
by luker
Mon Feb 12, 2007 1:28 pm
Forum: C++ Development
Topic: alternating wrong months in wxDateTime
Replies: 6
Views: 1566

Hi experts, I tried this one and it didn't work: SetDay((wxDateTime::wxDateTime_t)l_value); I also used a temporary variable, just tu be sure. wxDateTime::wxDateTime_t dttTemp; dttTemp= (wxDateTime::wxDateTime_t)l_value; SetDay( dttTemp); The code compiles ok, but during runtime it creates dates in ...
by luker
Mon Feb 12, 2007 7:52 am
Forum: C++ Development
Topic: alternating wrong months in wxDateTime
Replies: 6
Views: 1566

Ok, then the problem is that I don't use the correct variable type? GetCellValue( 1, i).ToULong( &iDay); dtCurrentDay.SetDay( iDay); results in a wxDateTime::SetDay( unsigned long l_value) So how do I safely convert unsigned long to wxDateTime_t? can I simply SetDay((wxDateTime_t)l_value); as lo...
by luker
Fri Feb 02, 2007 12:18 pm
Forum: C++ Development
Topic: alternating wrong months in wxDateTime
Replies: 6
Views: 1566

alternating wrong months in wxDateTime

Hi experts, there is a wxDateTime object in my code, in fact, there are many: *( m_dtCurrentSelected)= calTop->GetDate(); refers to a member variable of the main panel. When displaying some kind of schedule, this one is transferred to it: m_grdMainGrid= new ExGrid( this, -1, m_dtCurrentSelected, ); ...
by luker
Fri Feb 02, 2007 11:19 am
Forum: C++ Development
Topic: small changes stop wxFileDialog
Replies: 2
Views: 1003

Thank you a lot,

that was exactly the problem.
by luker
Thu Feb 01, 2007 6:13 pm
Forum: C++ Development
Topic: small changes stop wxFileDialog
Replies: 2
Views: 1003

small changes stop wxFileDialog

Hi experts, here is some code snippet I wrote, found working and almost bytewise copied to another method, where it fails: void MyCdpProjectsNParts::OnExport(){ // Finde einen Speicherort wxString strDirectory; wxString strFilename; wxString strFullFilename; // setzen auf %homedir%/passendesUnterver...
by luker
Mon Jan 29, 2007 9:39 am
Forum: C++ Development
Topic: App crashes every now and then - pointer problem?
Replies: 4
Views: 1328

Hi there,

the crashes seem to have vanished when I enshured to have one SQLFreeStmt() for every SQLAllocStmt() in the code.

Thanks,

Lukas
by luker
Thu Jan 25, 2007 12:00 pm
Forum: General Development
Topic: printing tutorial
Replies: 1
Views: 922

printing tutorial

Hi Experts, the program I wrote developes well, thanks to many of you. It now offers the possibility to put in information about projects worked on and the time everyone spends working on them. Now I got to the next big task: printing. I found several instructions on how to use wxWidget's included p...