DX: Full Screen GUI Development 2[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sonicdater 的 blog

        next ilp

   

        if iobjecttype >= closebtn then

            iobjectstate = ienabled

            if iobjecttype = closebtn then

                raiseevent clicked

            end if

        else

            if not (iobjectstate = idisabled) then

                if iobjectstate = ipressed and iobjecttype = btn then

                    iobjectstate = ienabled

                    raiseevent clicked

                end if

            end if

           

        end if

        mouseup = true

       

    end if

   

end function

 

if the control has been clicked we use raiseevent to notify the app that this is so. the app can then decide what to do based on which control has been clicked. in our case we do two things ?destroy the window and close the app:

 

private sub closebutton_clicked()

    window.removechildren

    set window = nothing

end sub

 

private sub okbutton_clicked()

    gbrun = false

end sub

 

you can recreate the window by pressing the f1 key. try it and see. i抣l wait while you do. j

 

got all that? good, then lets more on to more cool stuff.

 

本文关键:DX: Full Screen GUI Development
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top