Print Page | Close Window

MDI Form min and close button action interchanged

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=19213
Printed Date: 18 May 2024 at 2:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Form min and close button action interchanged
Posted By: satyakvv
Subject: MDI Form min and close button action interchanged
Date Posted: 22 November 2011 at 11:14am
I have an MDI form and a modeless form is open. The modeless form has a web browser control and some text boxes. When the focus is in the web browser control , if I click the MDI minimize button, it is firing the 'close' action. And, if I click the close button, it is firing the minimize event. The problem does not occur when the modeless form is not active. 

Using SkinFramework 15.1.3 in VB6.0 on Windows 7 (32/64 bit).

Has anyone faced a similar issue ?



Replies:
Posted By: snayaks
Date Posted: 14 December 2011 at 7:32am
Yes

I am also facing same problem

Please find attached VB6 stub from following link

https://support.codejock.com/Attachments/20111214-062626_VB6SkinIssue.zip


1. Run Project1.exe
2. Click "create MDI child" button
3. click "Create Modeless Window" button
4. Now Minimize the MDI window.

Issue : Instead of minimizing, the MDI is getting closed.

Note : Repeat the steps in the same order.
%20 - %20 - %20 - %20 - %20 - %20 - %20 -


Posted By: Willowmaster
Date Posted: 14 December 2011 at 9:21am
If you first activate the MDI form and then minimize it, it won't close.
If you replace the MDIForm1.Launchme line in Form1 to Form2.Show it minimizes the modeles form instead of the MDI form. It sends the minimize event to the active form. Even if the button has been clicked on a different form.

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: satyakvv
Date Posted: 15 December 2011 at 4:15am
The behavior is not as expected for a normal windows application. You can check the same without calling LoadSkin. Now, the form gets minimized properly instead of getting closed. This looks like a bug with the SkinFramework control.


Posted By: Willowmaster
Date Posted: 15 December 2011 at 9:44am
Have you tried using different skins? Does that solve the problem? I'm not sure if it's possible to be a skin problem instead of a control problem.

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: satyakvv
Date Posted: 15 December 2011 at 12:14pm
Tried with the default XP skin as well as some new Vista/Win 7 skins.. all have the same behavior.
It is very odd that the Minimize button behaves like Close vice versa.. that too only in this scenario where a non-mdi child form in an MDI app causes this issue.. 

Hope to get some reply from Oleg...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net