none
Please help me... RRS feed

  • Question

  • (translated by Google translator)

    I can not Close an additional GraphicsWindow without closing the Main Window by clicking on the system Window button "Close" in the example "LDWindows.sb" which is in the folder of a LitDev extension.

    I put in two lines:

    2 LDGraphicsWindow.ExitOnClose = "False"
    3 LDGraphicsWindow.CancelClose = "True"

    ... in this example code, and now I do not know what to do.

    Please tell me what to do, or give me a link to an example that works well.

    Many thanks.


    Thursday, June 23, 2016 10:33 AM

Answers

  • (translated by Google translator)

    Hey guys, I found how to get around this obstacle! :)

    If after the command GraphicsWindow.Show() you write:

    GraphicsWindow.CanResize = "False"
    GraphicsWindow.CanResize = "True"

    ... the button "Expand" is available again! :)


    Sunday, June 26, 2016 6:11 AM

All replies

  • (translated by Google translator)

    I think I knew what to do.

    The line "LDGraphicsWindow.ExitOnClose = "False"" should be placed after the command to create an additional GraphicsWindow.

    It is right?..

    Thursday, June 23, 2016 3:51 PM
  • 1] When you have multiple graphics windows using LDWindow then you need to make sure you have set the current window before issuing commands.

    2] ExitOnClose just prevents the X closing GW and ending session.

    3] The event Closing captures the X was pressed (assuming ExitOnClose is false)

    4] CancelClose can be used inside the event Closing to decide whether to close window or not - closing it will NOT end SB session, just close window.

    Modified sample code with this feature used, GSM120.

    Alternatively to prevent the X you can use:

    LDGraphicsWindow.ExitButtonMode(GraphicsWindow.Title,"Disabled")

    Thursday, June 23, 2016 6:47 PM
    Moderator
  • (translated by Google translator)

    I'm sorry, but my problems did not end.

    If I hide the Graphics Window, and then I show it again, the system window button "Expand" is no longer available.

    I added the "Hide" and "Show" command in your example GSM120 and I save it under GSM120-0 name.

    What can I do?

    Friday, June 24, 2016 7:37 PM
  • My example showed how to control the X close option.  Once the window is closed it is gone, therefore using the Hide in the original sample.

    I'm not sure what you actually want to happen?  therefore hard to show how to do it.

    Please explain what you want to happen when what the user does.  What you want may or may not be possible but I don't know what it is.


    Friday, June 24, 2016 7:55 PM
    Moderator
  • (translated by Google translator)

    Thank you for your answer.

    I think that when I hide the Graphics Window, and then I show it again, the system button "Expand" (not "Close" X) must be still available. Now I cannot expand the Graphics Window after being command GraphicsWindow.Hide() and GraphicsWindow.Show() were executed because the "Expand" button is not available.

    Here is my problem :)

    Saturday, June 25, 2016 6:16 AM
  • This seems to be some strange quirk, the way I found to solve it was to hide all the created windows in a loop after they are all created - I don't know why this works.

    Import CSV329

    Saturday, June 25, 2016 7:38 AM
    Moderator
  • (translated by Google translator)

    Thanks for your reply.

    I have this problem in my other program. I used your example just to illustrate this problem.
    I think this is a mistake of Small Basic, not your extension.

    Thank you so much...

    Saturday, June 25, 2016 8:20 AM
  • (translated by Google translator)

    Hey guys, I found how to get around this obstacle! :)

    If after the command GraphicsWindow.Show() you write:

    GraphicsWindow.CanResize = "False"
    GraphicsWindow.CanResize = "True"

    ... the button "Expand" is available again! :)


    Sunday, June 26, 2016 6:11 AM