22.为了表明PureBasic的能力,下面给出其描述窗口的一个例子:
[Visual Basic] syntaxhighlighter_viewsource syntaxhighlighter_copycode #WINDOW_MAIN = 1
#FLAGS = #PB_Window_SystemMenu | #PB_Window_ScreenCentered
If OpenWindow(#WINDOW_MAIN, 0, 0, 300, 200, "Hello World", #FLAGS)
Repeat
Event.l = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
End
显然,两步走:打开窗口;事件循环!
Fortran编程需要界面的,这也是个不错的选择。
|