Opened 10 years ago

Closed 10 years ago

#9519 closed defect (fixed)

Child windows that created after gripper puts below it

Reported by: kosenko Owned by:
Priority: normal Milestone: 2.9.0
Component: wxMSW Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


wxMSW trunk rev. 53892 2008-06-01
msvc 7.1, xp sp2

Steps to reproduce

  1. Run dialogs sample
  2. Select Menu/Dialogs/Standard Buttons Sizer Dialog
  3. Select check boxes "Enable Affirmative Button" and "Enable Dismiss Button"

Expected result: Gripper below any other child window
Actual result: Gripper above just created Cancel button.
Spy++ tool says that it is above Cancel and OK buttons.

Created windows are placed by default at the bottom of the z-order of windows list.
Gripper does not change its position in this case.

Proposed solution:

  1. Add assertion that gripper is at the bottom in gripper destruction process.

(But I am not sure that place for this assert is good)

  1. Handle child window creation event and force to resize gripper to place it in valid position

Attachments (1)

gripper.patch download (1.4 KB) - added by kosenko 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by kosenko

comment:1 Changed 10 years ago by vadz

  • Resolution set to fixed
  • Status changed from new to closed

I agree that this is not the ideal place for the assert but I don't see any better one neither so let's keep it there for now.

I've applied the patch (with minor changes) as r54009, thanks for finding and fixing this bug and also for the explanations -- much appreciated!

Note: See TracTickets for help on using tickets.