Collapsing Window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Collapsing Window

Roberto Fonseca

Hello list,

 

I tried to search for a similar issue in this list’s archive but I couldn’t find anything...

 

I have an application that we moved from VW v.3 into VW v. 7.4.1 that we are experiencing an issue that I haven’t been able to figure out a fix yet. Here it is how the application is built:

            MainWin: the application has a main window where you can load information related to a single customer;

            AppMenu: the application has a floating menu bar that I can use to call functions (mostly related to the main window above.)

 

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

 

What is even more intriguing to me is that I added the following code changes and inserted a breakpoint. When I execute the code with Debug >> Probes enabled the window behaves as expected (does NOT collapses). But when I disable probes, the window starts to collapse again.

 

(self window sensor) collapseEvents: false.

 

Did any of you experience anything like this before? Any ideas of where I should look at?

 

TIA,

Roberto

 

Reply | Threaded
Open this post in threaded view
|

RE: Collapsing Window

Steven Kelly
Message
Hello,
 
A few questions that might help narrow things down:
1) Make sure you have event faithful debugging turned on in the VW settings
2) Is your AppMenu set up in a master-slave relationship with MainWin?
3) Which window events are you forwarding / handling in the windows?
4) How do you minimize the window - clicking the window decoration, using the VW blue button menu, using the window icon menu, or programmatically?
 
IIRC Window>>collapseEvents: does not refer to a "collapse event" for minimizing a window, but to collecting several sequential events and merging them into one: the events are being collapsed, not the window.
 
Cheers,
Steve
-----Original Message-----
From: Roberto Fonseca [mailto:[hidden email]]
Sent: 15. tammikuuta 2008 22:06
To: ([hidden email])
Subject: Collapsing Window

Hello list,

 

I tried to search for a similar issue in this list’s archive but I couldn’t find anything...

 

I have an application that we moved from VW v.3 into VW v. 7.4.1 that we are experiencing an issue that I haven’t been able to figure out a fix yet. Here it is how the application is built:

            MainWin: the application has a main window where you can load information related to a single customer;

            AppMenu: the application has a floating menu bar that I can use to call functions (mostly related to the main window above.)

 

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

 

What is even more intriguing to me is that I added the following code changes and inserted a breakpoint. When I execute the code with Debug >> Probes enabled the window behaves as expected (does NOT collapses). But when I disable probes, the window starts to collapse again.

 

(self window sensor) collapseEvents: false.

 

Did any of you experience anything like this before? Any ideas of where I should look at?

 

TIA,

Roberto

 

Reply | Threaded
Open this post in threaded view
|

Re: Collapsing Window

Reinout Heeck-2
In reply to this post by Roberto Fonseca

> *(self window sensor) collapseEvents: false.*
>

this code has nothing to do with the collapsing of windows, instead it
controls the collapsing of events.
See the method SharedQueue>>nextPut:collapse:where this event collapsing
work happens.


For chasing down your collapsing window problems you may want to put the
debugger in 'event faithful' mode (in the VW settings panel).



Good luck!

R
-

Reply | Threaded
Open this post in threaded view
|

RE: Collapsing Window

Terry Raymond
In reply to this post by Roberto Fonseca

I’m not an expert on this but possibly the reason for the collapse is

that your main window is collapsed and your floating window is considered

to be a dialog type so it conforms to its parent.

 

Terry

===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================


From: Roberto Fonseca [mailto:[hidden email]]
Sent: Tuesday, January 15, 2008 3:06 PM
To: ([hidden email])
Subject: Collapsing Window

 

Hello list,

 

I tried to search for a similar issue in this list’s archive but I couldn’t find anything...

 

I have an application that we moved from VW v.3 into VW v. 7.4.1 that we are experiencing an issue that I haven’t been able to figure out a fix yet. Here it is how the application is built:

            MainWin: the application has a main window where you can load information related to a single customer;

            AppMenu: the application has a floating menu bar that I can use to call functions (mostly related to the main window above.)

 

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

 

What is even more intriguing to me is that I added the following code changes and inserted a breakpoint. When I execute the code with Debug >> Probes enabled the window behaves as expected (does NOT collapses). But when I disable probes, the window starts to collapse again.

 

(self window sensor) collapseEvents: false.

 

Did any of you experience anything like this before? Any ideas of where I should look at?

 

TIA,

Roberto

 

Reply | Threaded
Open this post in threaded view
|

RE: Collapsing Window

Roberto Fonseca
In reply to this post by Steven Kelly
Message

Hello,

 

Please see the answers below…

 

Thanks,

 

Roberto

 

From: Steven Kelly [mailto:[hidden email]]
Sent: Tuesday, January 15, 2008 5:15 PM
To: [hidden email]
Subject: RE: Collapsing Window

 

Hello,

 

A few questions that might help narrow things down:

1) Make sure you have event faithful debugging turned on in the VW settings  I did that now. And the “fix” I had put in there does not work anymore.

2) Is your AppMenu set up in a master-slave relationship with MainWin? No. But the MainWin has a master-slave relationship with the several functions that can be accessed from the AppMenu.

3) Which window events are you forwarding / handling in the windows? This is the trick part. I was able to track it down to the point where the collapsing occurs. In v.3. it (ApplicationWindow) arrives in there with an Expand event. In v.7. it shows up in there with a Collapse event. The code that sets up the window was migrated from v.3. into v.7. So I really don’t understand how that is happening!!??

4) How do you minimize the window - clicking the window decoration, using the VW blue button menu, using the window icon menu, or programmatically? I minimize it by clicking on the MainWin minimize icon.

 

IIRC Window>>collapseEvents: does not refer to a "collapse event" for minimizing a window, but to collecting several sequential events and merging them into one: the events are being collapsed, not the window.

 

Cheers,

Steve

-----Original Message-----
From: Roberto Fonseca [mailto:[hidden email]]
Sent: 15. tammikuuta 2008 22:06
To: ([hidden email])
Subject: Collapsing Window

Hello list,

 

I tried to search for a similar issue in this list’s archive but I couldn’t find anything...

 

I have an application that we moved from VW v.3 into VW v. 7.4.1 that we are experiencing an issue that I haven’t been able to figure out a fix yet. Here it is how the application is built:

            MainWin: the application has a main window where you can load information related to a single customer;

            AppMenu: the application has a floating menu bar that I can use to call functions (mostly related to the main window above.)

 

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

 

What is even more intriguing to me is that I added the following code changes and inserted a breakpoint. When I execute the code with Debug >> Probes enabled the window behaves as expected (does NOT collapses). But when I disable probes, the window starts to collapse again.

 

(self window sensor) collapseEvents: false.

 

Did any of you experience anything like this before? Any ideas of where I should look at?

 

TIA,

Roberto

 

Reply | Threaded
Open this post in threaded view
|

RE: Collapsing Window

Terry Raymond
Message

Roberto

 

You stated:

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

2) Is your AppMenu set up in a master-slave relationship with MainWin? No. But the MainWin has a master-slave relationship with the several functions that can be accessed from the AppMenu.

 

Is the function you are initiating one of those with a master/slave relationship with the main window?

Terry

===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================


From: Roberto Fonseca [mailto:[hidden email]]
Sent: Wednesday, January 16, 2008 9:28 AM
To: [hidden email]
Subject: RE: Collapsing Window

 

Hello,

 

Please see the answers below…

 

Thanks,

 

Roberto

 

From: Steven Kelly [mailto:[hidden email]]
Sent: Tuesday, January 15, 2008 5:15 PM
To: [hidden email]
Subject: RE: Collapsing Window

 

Hello,

 

A few questions that might help narrow things down:

1) Make sure you have event faithful debugging turned on in the VW settings  I did that now. And the “fix” I had put in there does not work anymore.

2) Is your AppMenu set up in a master-slave relationship with MainWin? No. But the MainWin has a master-slave relationship with the several functions that can be accessed from the AppMenu.

3) Which window events are you forwarding / handling in the windows? This is the trick part. I was able to track it down to the point where the collapsing occurs. In v.3. it (ApplicationWindow) arrives in there with an Expand event. In v.7. it shows up in there with a Collapse event. The code that sets up the window was migrated from v.3. into v.7. So I really don’t understand how that is happening!!??

4) How do you minimize the window - clicking the window decoration, using the VW blue button menu, using the window icon menu, or programmatically? I minimize it by clicking on the MainWin minimize icon.

 

IIRC Window>>collapseEvents: does not refer to a "collapse event" for minimizing a window, but to collecting several sequential events and merging them into one: the events are being collapsed, not the window.

 

Cheers,

Steve

-----Original Message-----
From: Roberto Fonseca [mailto:[hidden email]]
Sent: 15. tammikuuta 2008 22:06
To: ([hidden email])
Subject: Collapsing Window

Hello list,

 

I tried to search for a similar issue in this list’s archive but I couldn’t find anything...

 

I have an application that we moved from VW v.3 into VW v. 7.4.1 that we are experiencing an issue that I haven’t been able to figure out a fix yet. Here it is how the application is built:

            MainWin: the application has a main window where you can load information related to a single customer;

            AppMenu: the application has a floating menu bar that I can use to call functions (mostly related to the main window above.)

 

The issue:

            First, I load a customer’s info to the main window AND minimize it;

Next I go to the application menu and choose a new function (related to the customer);

The function’s window is being displayed but it is being collapsed almost instantly.

 

What is even more intriguing to me is that I added the following code changes and inserted a breakpoint. When I execute the code with Debug >> Probes enabled the window behaves as expected (does NOT collapses). But when I disable probes, the window starts to collapse again.

 

(self window sensor) collapseEvents: false.

 

Did any of you experience anything like this before? Any ideas of where I should look at?

 

TIA,

Roberto