Hello I am new to Visual Prolog and have been doing some work with the GUI software as I am wanting to build an application. I need to put an opening message up but more of a welcome screen. I know it is onShow: window (for the start window) but trying to use a form or a dialogue and getting flummoxed by the syntax.
Anyone can offer some help, guidance, where to look would be appreciated.
- Thomas Linder Puls
- VIP Member
- Posts: 1327
- Joined: 28 Feb 2000 0:01
Re: Application start
Assuming that you have made an MDI application then you should create a form for your welcome screen. See Dialogs and Forms and How to use GUI Package in Visual Prolog.
In the form you can place controls. The about dialog in your project is an example of that.
Finally in taskWindow::onShow you should add a line for displaying your welcome screen:
In the form you can place controls. The about dialog in your project is an example of that.
Finally in taskWindow::onShow you should add a line for displaying your welcome screen:
Code: Select all
predicates
onShow : window::showListener.
clauses
onShow(_, _CreationData) :-
_MessageForm = messageForm::display(This),
_WelcomeForm = welcomeForm::display(This).
Regards Thomas Linder Puls
PDC
PDC