Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Green Screen
  New Posts New Posts RSS Feed - Add msgbox to basic program
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedAdd msgbox to basic program

 Post Reply Post Reply
Author
Message
terry@tadbs.com View Drop Down
Newbie
Newbie


Joined: October 13 2011
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote terry@tadbs.com Quote  Post ReplyReply Direct Link To This Post Topic: Add msgbox to basic program
    Posted: October 13 2011 at 11:12am
I want to add a message box ATGUIMSGBOX to a basic program.

What needs to be initialized to cause the popup?
How do you execute a lets say a lookup Window and return the selection to a basic program.
My goal is to slowly add GUI to existing character based screens.
Back to Top
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post Posted: October 13 2011 at 6:22pm
Check out the ATMSGBOX2 program in the Samples\PICKBP folder (underneath the main Atwin70 folder. This lets you call the GUI msgbox from green screen programs.

Alternatively, you could use the ATMSGBOX program which uses a scripted msgbox (using VBScript). This is not compatible with GUI programs, and uses different values for buttons/icons etc, but is OK for use with green screen applications.

Cheers,

Brian
Back to Top
dynamic View Drop Down
Senior Member
Senior Member


Joined: June 28 2007
Status: Offline
Points: 188
Post Options Post Options   Thanks (0) Thanks(0)   Quote dynamic Quote  Post ReplyReply Direct Link To This Post Posted: October 14 2011 at 1:24am
Hi Terry,

Welcome to Accuterm!

When I first started converting over I created a generic lookup dialog box in the GUI designer that had a list box with two columns. My green screen program sent the list to the dialog box and returned the selection. I believe my earliest posts on this board have info from Peter and others on what to do since I was asking the same questions as you. Search for my posts and look at one of the earlier dates.

Andy
Back to Top
noranevers View Drop Down
Newbie
Newbie


Joined: October 13 2005
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote noranevers Quote  Post ReplyReply Direct Link To This Post Posted: October 21 2011 at 2:49am
Terry - just use the ATMSGBOX in the SAMPLES file - you don't have to initialize anything. Same for the ATLISTBOX, you just call the subroutines from the basic program. Pete has them well documented on the arguments in the call.

The selection is returned in the last argument in the list.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.