taskbar of windows disappears

I made two windows: window2 and window3
The mousedown-event of a bevelbutton in window2 should open window3
afterwards I wanted to fill some textfields in window3 by code (not in the example), but always got an NilObjectExcample-error

Therefore I tried out

dim window3 as new window window3.show // fill some textfields self.close

Then the taskbar of windows8 disappears and a small blue rectangle appears instead on my monitor.

Only killing the process is possible. As long as it runs, the taskbar is gone.

You really should work through the tutorial and learn the difference between class and instance. Your question clearly tells me that you didn’t.

window2 and window3 are classes you created. A class is a blue-print that tells the app how to make these windows.

The app creates instances from the blueprints with

Dim w as new window2
w.show

Have you set menubarvisible = false? Us windows users associate the menubar with the menu (a bit obvious really), but on OSX it’s actually a shared menu equivalent to the Windows Task bar.

Wayne, his code can’t work. Never mind the Taskbar, look at

dim window3 as new window

[quote=182745:@Markus Winter]Wayne, his code can’t work. Never mind the Taskbar, look at

dim window3 as new window

Actually he stumbled into an interesting trick. His code indeed makes the taskbar disappear, a trick that would otherwise require a declare :wink:

For as long as the dim-instanciated window is displayed, the taskbar is hidden. Neat :smiley:

This is sort of a special window, without any control in the window bar but movable. Could have its use.

Robert : If all you want to do is display Window3 and close Window2, just remove the first line.

That’s only correct if Implicit Instantiation of windows is set to true (which most people would argue should not be).

Come on guys, lets teach him the right way to do it, not fumble around like a drunk for a lamp post …

[quote=182759:@Markus Winter]That’s only correct if Implicit Instantiation of windows is set to true (which most people would argue should not be).

Come on guys, lets teach him the right way to do it, not fumble around like a drunk for a lamp post …[/quote]

I told him the way to go. He should not fumble anymore.

That said, I maintain this is a neat trick that is worth knowing about.

After one year of working with XOJO I am unfortunatly fumbling around like a drunk for a lamp post.

The matter is, English is not my natural language and working through a tutorial is not as simple, as it sounds.

In the meantime I found a way, how it works:

Dim w as Window w = New ERBuchung

Sorry I didn’t react earlier.

For me was only surprising, how I could switch away the taskbar.

That’s NOT how it works. See my reply in the other thread: dim w as window makes no sense.

Are you sure there are no unintended consequences? I would think that the window fails to show its taskbar (?) because something went wrong, so already you are prone to corrupt something in your running app.

It does warrant verification, but I believe he simply stumbled into the particular FixedDialog window style that is not usually available in Xojo. As I said it normally would require a declare but having the taskbar hidden is not in itself a problem.

As a matter of fact, a quick experiment I conducted earlier shows the app behaving quite normally after that window has been displayed. Simply, when that window is displayed, there is no taskbar, and it comes back when another window is in front. Then I close the taskbarless window and there was no exception or anything.

I am doing something else at the moment, but I will look into it later. If there is no memory leak and if the Windows registry checks out, I’ll be inclined to consider this an interesting tip.

Markus Winter: Not in my Window the taskbar disappears, it disappears in Windows8 !

Having the same problem myself on Windows 8.1 but nothing to do with classes.
Simple document form with button which opens another pre-designed Movable Modal form in front.
Lots of functions take place in the Open event as the new form displays some graphics but debugging through them keeps the taskbar visible right to the end.
Then the Activate event and POP! the taskbar is gone before the first line of code.
Re-appears when you close the new form.