model_server/gala/src/dialog.cxx
/*
If the new configuration results in a resize of the dialog box, it will call resizeWindow
on its owner, passing in the ratio`s for the x and y lengths to change, as well as the new
hieght and width.
*/
If the new configuration results in a resize of the dialog box, it will call resizeWindow
on its owner, passing in the ratio`s for the x and y lengths to change, as well as the new
hieght and width.
If the new configuration results in a resize of the dialog box it will call resizeWindow on its owner passing in the ratio ` s for the x and y lengths to change as well as the new hieght and width .
int MyDialog::HandleConfigure(vevent *event)
{
    const vrect* myRect = GetRect();
    int oldw = myRect->GetWidth();
    int oldh = myRect->GetHeight();
    int r = vdialog::HandleConfigure(event);
    int neww = event->GetWidth();
    int newh = event->GetHeight();
    if ((neww - oldw != 0) || (newh - oldh != 0))
	if (owner_) owner_->ResizeWindow((float)neww/(float)oldw,(float)newh/(float)oldh, newh, neww);
    return r;
}
int MyDialog :: HandleConfigure ( vevent * event ) { const vrect * myRect = GetRect ( ) ; int oldw = myRect -> GetWidth ( ) ; int oldh = myRect -> GetHeight ( ) ; int r = vdialog :: HandleConfigure ( event ) ; int neww = event -> GetWidth ( ) ; int newh = event -> GetHeight ( ) ; if ( ( neww - oldw != 0 ) || ( newh - oldh != 0 ) ) if ( owner_ ) owner_ -> ResizeWindow ( ( float ) neww / ( float ) oldw , ( float ) newh / ( float ) oldh , newh , neww ) ; return r ; }
If the new configuration results in a resize of the dialog box, it will call resizeWindow
on its owner, passing in the ratio`s for the x and y lengths to change, as well as the new
hieght and width.
If the new configuration results in a resize of the dialog box it will call resizeWindow on its owner passing in the ratio ` s for the x and y lengths to change as well as the new hieght and width .