ฟอรั่ม 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


3 posters

    ปุ่ม Radio

    number27
    number27
    สมาชิกทั่วไป
    สมาชิกทั่วไป


    ปุ่ม Radio Empty
    จำนวนข้อความ : 17
    ความนิยม : 0
    เข้าร่วมเมื่อ : 14/10/2010

    ปุ่ม Radio Empty ปุ่ม Radio

    ตั้งหัวข้อ by number27 10/12/10, 01:30 am

    ผมได้ทำปุ่ม Radio เอาไว้ 3 ปุ่ม มีปุ่ม ตกลง 1ปุ่ม(buttom) เมื่อเลือกRadioแรกแล้วกดตกลงก็จะไปที่[You must be registered and logged in to see this link.]
    เมื่อเลือกRadioที่2แล้วกดตกลงก็จะไปที่[You must be registered and logged in to see this link.] ปุ่มที่Radioที่3ไปที่[You must be registered and logged in to see this link.]
    ตอนนี้ทำให้ไปที่เว็บดังกล่าวได้แล้วแค่เลือกRadio มันก็ไปที่เว็บ ผมอยากให้กดตกลงแล้วค่อยไปไม่ทราบว่าจะต้องใช้
    คำสั่งตัวไหนหรอครับ
    aut
    aut
    PSsix Powerful Scripting Class
    PSsix Powerful Scripting Class


    PSsix Game Coder
    จำนวนข้อความ : 472
    ความนิยม : 126
    เข้าร่วมเมื่อ : 24/07/2010

    ปุ่ม Radio Empty Re: ปุ่ม Radio

    ตั้งหัวข้อ by aut 10/12/10, 11:04 am

    ตามนี้



    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 277, 110, 192, 124)
    $Radio1 = GUICtrlCreateRadio("gmail", 8, 16, 113, 17)
    $Radio2 = GUICtrlCreateRadio("hotmail", 8, 48, 113, 17)
    $Radio3 = GUICtrlCreateRadio("yahoomail", 8, 80, 113, 17)
    $Button1 = GUICtrlCreateButton("Button1", 192, 16, 75, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    if BitAND(GUICtrlRead($Radio1), $GUI_CHECKED) Then ShellExecute("[You must be registered and logged in to see this link.]
    if BitAND(GUICtrlRead($Radio2), $GUI_CHECKED) Then ShellExecute("[You must be registered and logged in to see this link.]
    if BitAND(GUICtrlRead($Radio3), $GUI_CHECKED) Then ShellExecute("[You must be registered and logged in to see this link.]
    EndSwitch
    WEnd
    Monaliza
    Monaliza
    PSsix Member Super Class III
    PSsix Member Super Class III


    PSsix Program Coder
    จำนวนข้อความ : 213
    ความนิยม : 7
    เข้าร่วมเมื่อ : 03/10/2010

    ปุ่ม Radio Empty Re: ปุ่ม Radio

    ตั้งหัวข้อ by Monaliza 15/12/10, 09:31 am

    เราสามารถใส่สีให้ปุ่มกด (Button) ได้ไหมครับ
    ผมทำโปรแกรมตัวหนึ่งหน้าตาไม่สวยเลยคืออยากให้มันมีสีสันหน่อยนะครับ :?:
    aut
    aut
    PSsix Powerful Scripting Class
    PSsix Powerful Scripting Class


    PSsix Game Coder
    จำนวนข้อความ : 472
    ความนิยม : 126
    เข้าร่วมเมื่อ : 24/07/2010

    ปุ่ม Radio Empty Re: ปุ่ม Radio

    ตั้งหัวข้อ by aut 15/12/10, 02:30 pm

    ใช้ Code wizard
    Monaliza
    Monaliza
    PSsix Member Super Class III
    PSsix Member Super Class III


    PSsix Program Coder
    จำนวนข้อความ : 213
    ความนิยม : 7
    เข้าร่วมเมื่อ : 03/10/2010

    ปุ่ม Radio Empty Re: ปุ่ม Radio

    ตั้งหัวข้อ by Monaliza 16/12/10, 09:32 am

    รหัสโค้ดสีนี้ดูจากไหนครับ

      เวลาขณะนี้ 29/03/24, 06:40 am