Dear Ian and Albrecht,
Could it be that the is, that my picUpdate() function is in another class
then my callback which calls picUpdate()?
I have created the forms with fluid. A Mainwindow that inherits a group with
6 buttons and the picbox.
Then I created a Dialog class where all my callbacks are. The callbacks call
functions form a PicHandle_Class where I do the picUpdate for Example. The
Dialog Class is derived from the class generated from fluid and also the
PicHandleClass. I will post my .h files to show you what I mean.
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <list>
#include <string>
#include "tuerAlbum.h"
#include "TuerAlbum_PicHandle.h"
#include "Defines.h"
#include "Wrapper/MsgQeueuFuncs.h"
//#include "Wrapper/MsgQeueuFuncs.c"
using namespace std;
class TuerAlbum_Dlg: public tuerAlbum {
public:
TuerAlbum_Dlg();
virtual ~TuerAlbum_Dlg();
static void msgQHandler_cb(void*);
static void BA_aktuell_cb(Fl_Button*, void*);
private:
void BA_aktuell_cbi(Fl_Widget*);
void msgQHandler();
/*
* Variablen
*/
TuerAlbum_PicHandle *picHandle;
};
#endif /* TUERALBUM_DLG_H_ */
#ifndef TUERALBUM_PICHANDLE_H_
#define TUERALBUM_PICHANDLE_H_
/*
*
*/
#include "tuerAlbum.h"
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_JPEG_Image.H>
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <list>
#include <string>
#include "Wrapper/SocketFuncs.h"
#include "Wrapper/MsgQeueuFuncs.h"
#include "Wrapper/ThreadingFuncs.h"
#include "Defines.h"
using namespace std;
class TuerAlbum_PicHandle: public tuerAlbum {
public:
TuerAlbum_PicHandle();
virtual ~TuerAlbum_PicHandle();
static int picHandle(int handle);
private:
int picUpdate();
int picSave();
int picRight();
int picLeft();
int picFastRight();
int picFastLeft();
/*
* Variablen
*/
//Fl_Shared_Image *img;
Fl_JPEG_Image *jpg;
list<string> namelist;
};
#endif /* TUERALBUM_PICHANDLE_H_ */
In void BA_aktuell_cb() I call BA_aktuell_cbi(). This function calls
picHandle->picHandle(int handle). In picHandle() I have a switch case
construct that decides on handle what to do. When handle=picupdate then I
call int picUpdate().
In another program I have the picUpdate directly in my DlgClass and there it
works.
With the PicHandle Class it doesn't work. The box does not show any image! I
have no idea, cause the Presentation class is in both classes derived.
Any hints?
Michael
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk