Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - MDI Form min and close button action interchanged
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI Form min and close button action interchanged

 Post Reply Post Reply
Author
Message
satyakvv View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Location: India
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote satyakvv Quote  Post ReplyReply Direct Link To This Post Topic: MDI Form min and close button action interchanged
    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 ?
Back to Top
snayaks View Drop Down
Newbie
Newbie


Joined: 01 October 2008
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote snayaks Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
satyakvv View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Location: India
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote satyakvv Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
satyakvv View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Location: India
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote satyakvv Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.