I working on a project, where XMT will be easy to integrate and to use. I went thru the 6C book, and thru the release notes looking for the ability to use "Argument List", but could not find any reference to it.
My question:
Is is possible to define
ArgList1.Background: Green
ArgList1.Width: 800
And then apply the same argument to multiple widgets, from a resource file:
Xmt doesn't presently provide a feature like this. It would be possible, however - provided you use one of the XmtCreate* functions to create all your widgets.
You can also code this yourself. By using XtGetsubresources, you can look for the 'ArgList' resource for the widget you are about to create. This should be a list of identifiers.
You'd then iterate over the identifiers and fetch all values associated with them. The Xrm functions could be used for this.
I'll work up a sample and see how I can fit into Xmt.
--
Grant McDorman, Xmt developer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I working on a project, where XMT will be easy to integrate and to use. I went thru the 6C book, and thru the release notes looking for the ability to use "Argument List", but could not find any reference to it.
My question:
Is is possible to define
ArgList1.Background: Green
ArgList1.Width: 800
And then apply the same argument to multiple widgets, from a resource file:
bb1*button1.ArgList: ArgList1
bb1*button2.ArgList: ArgList1
...
Xmt doesn't presently provide a feature like this. It would be possible, however - provided you use one of the XmtCreate* functions to create all your widgets.
You can also code this yourself. By using XtGetsubresources, you can look for the 'ArgList' resource for the widget you are about to create. This should be a list of identifiers.
You'd then iterate over the identifiers and fetch all values associated with them. The Xrm functions could be used for this.
I'll work up a sample and see how I can fit into Xmt.
--
Grant McDorman, Xmt developer