home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
bridge20.zip
/
SAMPLE.BR
< prev
Wrap
Text File
|
1990-05-13
|
3KB
|
82 lines
gosub vardef
cls
maximize
echo {bold}{red} Now loading sample code... Please wait{n}
exec /n:brnote /hide notepad sample.br; move 0 49.38 100 50; hide()
cls
restore
dialog define Sample
begin
at 1 10
size 316 98
caption "Sample Bridge Dialog Box"
validate gosub infobred
timeout %ibt%
combobox at 196 54 lines 2 width 20 sorted scrollbar required 1 result ibt default %constell%
begin
%constell%
"Andromeda"
"Cassiopeia"
"Camelopardis"
"Pegasus"
"Hercules"
"Lyra"
"Cygnus"
"Sagittarius"
"Ophichus"
"Coma Berenices"
end
radiobutton at 197 15 left width 7 default 1 %Gal[2]%
radiobutton at 252 15 left width 7 %Gal[1]%
combobox at 12 14 lines 3 width 12 scrollbar result Epoch default 3
begin
"1950"
"2000"
"1990"
end
groupbox at 13 42 size 160 45 "Stellar Color"
radiobutton at 26 55 %Color[1]%
radiobutton at 94 55 %Color[2]%
checkbox at 26 69 default 2 %Color[3]%
checkbox at 94 69 %Color[4]%
groupbox at 192 42 size 104 50 "Constellation ?"
groupbox at 8 4 size 69 38 "Epoch Data"
groupbox at 189 4 size 118 34 "Catalog Reference"
pushbutton at 90 14 default 1 "&Continue with demo" result binfores
end
dialog load Sample
return
:infobred
if %binfores% == 1 return
dialog load
begin
at 32 10
size 240 152
caption "Bred Demo"
timeout 20
text at 27 6 width 45 center "The dialog box behind was created using the"
text at 27 19 width 45 center "Bridge Editor (BrEd). Using BrEd you can"
text at 27 32 width 45 center "edit your Dialog Box and BrEd pastes the code"
text at 27 44 width 45 center "for you !!! Bred can also paste commands and"
text at 27 54 width 45 center "functions complete with full Bridge syntax."
text at 27 66 width 45 center "Examine the batch file below. It produced this section"
text at 27 80 width 45 center "of the Demonstration. Click on <OK> to try the"
text at 27 92 width 45 center "sample Dialog Box behind this message."
text at 27 104 width 45 center "Then click on 'Continue with Demo' to return to main menu."
pushbutton at 100 124 width 6 "OK"
end
binfores = -1
return
:vardef
Color[1] = "Red Giant"
Color[2] = "Brown Dwarf"
Color[3] = "White Dwarf"
Color[4] = "Blue Giant"
Gal[1] = "NGC"
Gal[2] = "Messier"
constell = Orion
ibt = 0
return