Using wt from git, as os 2009/8/13 on Mac OS X 10.5.8

My application creates a Dialog:
     WDialog    dialog("Edit the PPI Parameters");

     WContainerWidget *container = new  
WContainerWidget(dialog.contents());
     container->setStyleClass("yellow-box");
     WGridLayout *grid = new WGridLayout();
     container->setLayout(grid);

     char buffer[20];
     int row = 0;
     int col = 0;

     WText *ppiHeader = new WText("PPI Parameters");
     grid->addWidget(ppiHeader, 0,0, 1, 2, AlignCenter);
     WText *angleHeader = new WText("Select an angle list");
     grid->addWidget(angleHeader, 0, 2, 1, 4,AlignCenter);
     WText *procHeader = new WText("Select processor parameters");
     grid->addWidget(procHeader, 0, 6, 1, 4, AlignCenter);


     <snip>
     new WBreak(dialog.contents());
     WPushButton ok("OK", dialog.contents());
     ok.clicked().connect(SLOT(&dialog, WDialog::accept));
     WPushButton cancel("Cancel", dialog.contents());
     cancel.clicked().connect(SLOT(&dialog, WDialog::reject));

     if ( dialog.exec() == WDialog::Accepted) {
         WString az_left_str = az_left_le->text();
         std::string utf8 = az_left_str.toUTF8();
         ppis_[buttonId].az_left_ = atof(utf8.c_str());
         std::cerr << "user accepted PPI changes, AZ_LEFT = " <<  
ppis_[buttonId].az_left_ << "\n";
     }
When I run Firefox 3.5.2 on my laptop (1440x900), I can't see the  
bottom of the dialog, so I can't click either the <OK> or <Cancel>  
buttons.  However, I can't move the dialog, so I can't position it so  
I can access the <OK> or <Cancel> buttons.

When I run Safari 4.0.3 on my laptop, the dialog box appears with  
scrollbars (kind of odd for a dialog box), but I can scroll so I can  
access the <OK> or <Cancel> buttons.  Also, I can move the dialog box  
by grabbing the title bar.  I can suppress the scrollbars on Safari by  
using the Dialog::setMinimumSize() call.

**Questions**:
1) Why can't I move the dialog box under Firefox 3.5.2 using the mouse?
2) Is there any way to center the dialog box, so I can see all of it?
3) How do I avoid hard-coding the dialog minimum size, so it doesn't  
have scrollbars on Safari?





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to