realbasic-nug
[Top] [All Lists]

[Win32] When does a window have a (the?) menubar in a SDI compile?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: [Win32] When does a window have a (the?) menubar in a SDI compile?
From: Karl Holmes <karlh at nh dot com dot au>
Date: Sat, 29 Jun 2002 12:13:55 +1000
In my program I have a splash screen, which creates a Login in screen
and closes itself. The Splash screen has the menubar, the login screen
doesn't.

The Login screen creates a Menu screen and closes itself. the Menuscreen
has the menubar.

The menu screen has a control array of 4 buttons.

the code for these buttons is as follows

  dim w as window
  dim w1 as GamesSpashW

  select case index
  case 0
    app.player.currentgame = "Major Meltdown"
  case 1
    app.player.currentgame = "Xray Emergency"
  case 2
    app.player.currentgame = "MagnoBeamer"
  case 3
    app.player.currentgame = "LaunchPad Panic"
  case 4
    app.player.currentgame = "Rescue Words"
  case 5
    app.player.currentgame = "Shuffle"
  end

  app.player.currentgameindex = index+1

  w1 = new GamesSpashW
   self.close

In two of the cases the splash screen has a menubar and in 2 no menubar.
(It is the same window in all 4 cases, I just load the correct backdrop
for the particular game.

When the Splash screen creates the game window and then closes itself
then the window created when the splash screen has the menubar doesn't
have a menubar and vice versa.

I am sure the explanation for this behaviour is quite simple but I just
can't make it out at present.

Any suggestions?

I should point out that there is a timer in the splash windows whose
action event calls the create window routine, which immediately sets
timer.mode =0. This create window routine can also be invoked through a
button. I'm not sure if the timer is playing any part in the menubar
situation.


Thanks


Karl Holmes



<Prev in Thread] Current Thread [Next in Thread>
  • [Win32] When does a window have a (the?) menubar in a SDI compile?, Karl Holmes <=