VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: Widget Base GUI 建立 - 2


Author:
R.D.
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 01:24:27 03/15/02 Fri
In reply to: R.D. 's message, "Trackball Demonstration Program" on 01:03:09 03/15/02 Fri

在使用以下命令建立出widget之後,

WIDGET_CONTROL, WID_BASE_0, /REALIZE

我們還需要一個訊息處理函式來處理各式由我們所建立的GUI傳遞的事件訊息。

所以需在前述的程式碼中加入:

xmanager, 'tracktest', WID_BASE_0

End

這樣初步的GUI已經完成。

使用者可以先行執行這個部分的程式碼

執行後應該可以得到一個300x300的視窗,其中有一個黑色的繪圖區域,下方有「Hello」字樣。

接下來就是graphic object的建立囉~~~~

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Graphic Object 建立R.D.05:31:06 03/18/02 Mon
    (1)Create Graphic Objects - 1R.D.05:46:18 03/18/02 Mon
    (1)Create Graphic Objects - 2R.D.02:08:20 03/26/02 Tue


    Post a message:
    This forum requires an account to post.
    [ Create Account ]
    [ Login ]
    [ Contact Forum Admin ]


    Forum timezone: GMT-8
    VF Version: 3.00b, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.