* button.cpp: Button control
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: button.cpp,v 1.7 2003/04/16 19:22:53 karibu Exp $
+ * $Id: button.cpp,v 1.8 2003/04/16 21:39:00 karibu Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
// If hit in the button
if( Img[1]->Hit( x - Left, y - Top ) )
{
- fprintf( stderr, " Button up ! (%i;%i)\n", button, (int)Selected );
if( !Enabled )
return true;
{
if( Img[0]->Hit( x - Left, y - Top ) )
{
- fprintf( stderr, " Button down ! (%i)\n", button );
if( !Enabled )
return true;
- fprintf( stderr, " Button down ! (%i)\n", button );
if( button == 1 )
{
State = 0;
Selected = true;
- fprintf( stderr, " Button down ! (%i)\n", (int)Selected );
ParentWindow->Refresh( Left, Top, Width, Height );
- fprintf( stderr, " Button down ! (%i)\n", (int)Selected );
return true;
}
}
* window.cpp: Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: window.cpp,v 1.14 2003/04/16 19:22:53 karibu Exp $
+ * $Id: window.cpp,v 1.15 2003/04/16 21:39:00 karibu Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
{
unsigned int i;
-fprintf(stderr, "refr %d %d %d %d\n", x,y,w,h);
// Create Bitmap Buffer
Graphics *Buffer = (Graphics *)new OSGraphics( w, h, this );
if( Hidden )
return;
- fprintf( stderr, "Refresh: %i %i %i %i\n", x, y, w, h );
-
// And copy buffer to window
RefreshFromImage( x, y, w, h );
// Checking event in controls
for( i = ControlList.size() - 1; i >= 0 ; i-- )
{
- fprintf( stderr, " -> Control\n" );
if( ControlList[i]->MouseUp( x, y, button ) )
{
- int x, y;
- //ControlList[i]->GetSize( x, y );
- fprintf( stderr, " x: %i\n y: %i\n",
- ControlList[i]->Left, ControlList[i]->Top );
-
return;
}
}