string msg = txt;
msg += '\n';
msg += throwable.getFormattedMessage();
- if (throwable.getOrigin() != "") {
+ if (throwable.getOrigin() != (string)"") {
msg += "\n (reported by ";
msg += throwable.getOrigin();
msg += ')';
SaveDialog = new puDialogBox (150, 50);
{
SaveDialogFrame = new puFrame (0,0,350, 150);
- SaveDialogMessage = new puText (
- (150 - puGetStringWidth( puGetDefaultLabelFont(), "File Name:" ) / 2), 110);
+ SaveDialogMessage
+ = new puText( (150 - puGetDefaultLabelFont().getStringWidth( "File Name:" ) / 2), 110 );
SaveDialogMessage -> setLabel ("File Name:");
SaveDialogInput = new puInput (50, 70, 300, 100);
LoadDialog = new puDialogBox (150, 50);
{
LoadDialogFrame = new puFrame (0,0,350, 150);
- LoadDialogMessage = new puText (
- (150 - puGetStringWidth( puGetDefaultLabelFont(), "File Name:" ) / 2), 110);
+ LoadDialogMessage
+ = new puText( (150 - puGetDefaultLabelFont().getStringWidth( "File Name:" ) / 2), 110 );
LoadDialogMessage -> setLabel ("File Name:");
LoadDialogInput = new puInput (50, 70, 300, 100);
char *s;
// printf("ConfirmExitDialogInit\n");
- int len = 200 - puGetStringWidth( puGetDefaultLabelFont(), msg )/2;
+ int len = 200 - puGetDefaultLabelFont().getStringWidth ( msg ) / 2;
int x = (fgGetInt("/sim/startup/xsize")/2 - 400/2);
int y = (fgGetInt("/sim/startup/ysize")/2 - 100/2);