Re: Liberty Basic?
- From: "news@xxxxxxxxxxxxxxx" <news@xxxxxxxxxxxxxxx>
- Date: 15 Mar 2007 11:27:17 -0700
On Mar 15, 3:10 pm, "dajava" <daj...@xxxxxxxxxxxxx> wrote:
For example, I want to get two numbers from screen,
add them, and display summation of them on screen.
-----Windows munu ---------
Num 1 = Num2 =
Sum =
-------------------------
Any hints for this?
I'm sure somebody will post the LB code, but for comparison here's how
it's done in BBC BASIC:
INSTALL @lib$+"WINLIB2"
dlg% = FN_newdialog("Windows adder", 0, 0, 160, 50, 8, 1000)
PROC_static(dlg%, "Num 1 =", 0, 10, 10, 30, 12, 0)
PROC_static(dlg%, "Num 2 =", 0, 80, 10, 30, 12, 0)
PROC_static(dlg%, "Sum =", 0, 10, 30, 30, 12, 0)
PROC_editbox(dlg%, "", 101, 44, 8, 30, 12, 0)
PROC_editbox(dlg%, "", 102, 114, 8, 30, 12, 0)
PROC_editbox(dlg%, "", 103, 44, 28, 30, 12, 0)
PROC_showdialog(dlg%)
REPEAT
SYS "GetDlgItemInt", !dlg%, 101, 0, 1 TO num1%
SYS "GetDlgItemInt", !dlg%, 102, 0, 1 TO num2%
SYS "SetDlgItemText", !dlg%, 103, STR$(num1%+num2%)
WAIT 1
UNTIL FALSE
Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
.
- Follow-Ups:
- Re: Liberty Basic?
- From: dajava
- Re: Liberty Basic?
- From: Stefan Pendl
- Re: Liberty Basic?
- References:
- Liberty Basic?
- From: dajava
- Re: Liberty Basic?
- From: dajava
- Liberty Basic?
- Prev by Date: Re: Liberty Basic?
- Next by Date: Looking for a free basic compiler for DOS
- Previous by thread: Re: Liberty Basic?
- Next by thread: Re: Liberty Basic?
- Index(es):
Relevant Pages
|