ฟอรั่ม PSsix

Would you like to react to this message? Create an account in a few clicks or log in to continue.

ฟอรั่มของบล็อก http://pssix.blogspot.com


    เกี่ยวกับ icon tray

    avatar
    mepmep
    PSsix Member
    PSsix Member


    เกี่ยวกับ icon tray Empty เกี่ยวกับ icon tray Empty
    จำนวนข้อความ : 29
    ความนิยม : 0
    เข้าร่วมเมื่อ : 29/01/2012

    เกี่ยวกับ icon tray Empty เกี่ยวกับ icon tray

    ตั้งหัวข้อ by mepmep 31/07/13, 05:07 pm

    ตามลิงค์
    [You must be registered and logged in to see this link.]

    พอพับหน้าต่าง minimize แล้วไปคลิก icon

    icon มันหายครับ จะแก้ไขยังไง

    Code:

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

    Opt("TrayOnEventMode", 1)
    Opt("TrayMenuMode", 1)
    TraySetOnEvent(-8, "PSsixTary")

    #region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 351, 237, 192, 124)
    $Button1 = GUICtrlCreateButton("Button1", 208, 32, 75, 25)
    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

    While 1
      $nMsg = GUIGetMsg()
      Switch $nMsg
          Case $GUI_EVENT_CLOSE
            Exit
          Case $GUI_EVENT_MINIMIZE
            GUISetState(@SW_HIDE)
            TraySetState(1)
            TrayTip("ย่อโปรแกรม", "คลิกเพื่อเปิดอีกครั้ง", 6)
          Case $Button1
      EndSwitch
    WEnd

    Func PSsixTary()
      GUISetState(@SW_SHOW)
      TraySetState(2)
    EndFunc
    avatar
    mepmep
    PSsix Member
    PSsix Member


    เกี่ยวกับ icon tray Empty เกี่ยวกับ icon tray Empty
    จำนวนข้อความ : 29
    ความนิยม : 0
    เข้าร่วมเมื่อ : 29/01/2012

    เกี่ยวกับ icon tray Empty Re: เกี่ยวกับ icon tray

    ตั้งหัวข้อ by mepmep 31/07/13, 05:08 pm

    ได้แล้วครับ ขอโทษที
    พอดีลืมดูโค้ดช่วงท้าย
    แก้จาก

    TraySetState(2) เป็น TraySetState(1)

      เวลาขณะนี้ 28/04/24, 04:17 pm