Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wx.DIALOG_EX_CONTEXTHELP #163

Closed
JoenyBui opened this issue Sep 2, 2016 · 3 comments
Closed

wx.DIALOG_EX_CONTEXTHELP #163

JoenyBui opened this issue Sep 2, 2016 · 3 comments

Comments

@JoenyBui
Copy link

JoenyBui commented Sep 2, 2016

I've been trying to create a help button for my application, but I wasn't able to implement the help button without removing the minimize and maximize button. Is this something that just can't happen with wx?

@RobinD42
Copy link
Member

RobinD42 commented Sep 2, 2016

Please add info about your platform and wx version, and also some sample code (minimal, but runnable) that shows how you are creating the dialog which isn't working as expected.

@JoenyBui
Copy link
Author

I'm on Window 10, 64-bit version and wxpython 3.0. The basic code is the following:

`

import wx

class TestFrame(wx.Frame):

    def __init__(self, parent, *args, **kwargs):
        wx.Frame.__init__(self, parent, *args, **kwargs)

        self.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP)

if __name__ == '__main__':
    app = wx.App(False)

    frame = TestFrame(None)
    frame.Show(True)

    app.SetTopWindow(frame=frame)

    app.MainLoop()

`

Once I add self.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP), it removes the minimize and maximize button. Is there a way to have all three?

@RobinD42
Copy link
Member

I suspect that this is a limitation imposed by Windows. In addition to some comments alluding to this limitation in general Win32 programming topics, I've also seen reports of the same issue from Qt users, so it is not limited to wxWidgets.

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants