home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
r
/
ril.zip
/
demos
/
basic.ril
next >
Wrap
Text File
|
1992-09-08
|
1KB
|
48 lines
#
# The very most basic ril features presented in as few lines as possible
#
#
# You should have 1 (or more) Widget commands that name the application
# as it will be invoked. Note there is no * preceding the app name
Widget basic {
wcChildren: main
}
# The first child of the application shell, usually some sort of manager
# widget. Note that the \ is used to continue lines of a resource spec.
Widget *main {
wcClassName: XmpTable
wcChildren: btn1 btn2
layout:\
btn1 0 0 1 1 ;\
btn2 1 0 1 1 ;
}
# Optional Feature: use RilParent to prepend components to the name
# the resources are defined for.
# All Widget and Resource commands following the "push" will have
# *main prepended to the name. The corresponding "pop" removes the
# last component pushed.
RilParent push *main
RilParent pop
# Optional Feature: Use RilSource to include another ril source file.
# This can be used in conjunction with RilParent to create multiple
# different named widget heirarchies with identical structure.
# In this case, load a file which specifies certain resource values
# that we always use, as a common "style".
RilSource "style1.ril"
# A Widget command to create a push button widget.
Widget *btn1 {
wcClassName: XmPushButton
activateCallback: WcTraceCB(foo)
}
# And another...
Widget *btn2 {
wcClassName: XmPushButton
activateCallback: WcTraceCB(baz)
}