[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1160.0. "Document on developing XUI --> Motif" by LARVAE::JEFFERY (K-I-L-L-E-D, Revoked) Mon Jul 24 1989 05:59

    Hi,
    
    I guess that I'm not alone experiencing this problem. I have customers
    who are thinking of developing in DECwindows, but are nervous about
    how compatible their code will be with OSF/Motif. It is getting
    to the stage where they are holding off, or where they might just
    develop with X-Windows, and forget about using XUI. This would be
    a tragedy as digital have spent a lot of money developing XUI, and
    getting it adopted by the OSF.
    
    What I would like to know, is if there is a document that addresses
    the issues of the difference between OSF/Motif and DECwindows from
    the development side. Ideally, this document would advise the reader
    how to best write code for DECwindows, with eventual porting to
    OSF/Motif.
    
    I'd be grateful for any advice on this.
    
    Cheers.
    
    Mark.
    

T.RTitleUserPersonal
Name
DateLines
1160.1good question!CISC::krisaka fuel::graham "question authority" Mon Jul 24 1989 07:0219
There is a discussion going in the OSF conference (SSGBPM::OSF) on this issue.

Some of us in the field have sought ways to run Motif on our workstations because
our customers are demanding it RIGHT NOW.  I have installed the Motif toolkit
and I have since been playing with it (for about a week now).  I really don't
see any need in going back to DECwindows at all!

As an example, I am writing this note with a Motif application (ULTRIX Xnotes).
Thanx to Matt Thomas ;^).

The binary license for Motif is only $40.

I pray that DECwindows Engineering move swiftly with regards to a Motif
migration path.

Kris..


1160.2a pointer...CISC::krisaka fuel::graham "question authority" Mon Jul 24 1989 08:07135
Here is some info that OSF ships with Motif.

I hope this helps.

Kris..

......................

			XUI API CHANGES


	INTRODUCTION
	============
	The Motif Toolkit is a hybrid of Digital's XUI
	Toolkit	and Hewlett-Packard's X Widgets.  One
	of OSF's stated objectives for the hybrid was to
	attempt to preserve the API provided by the XUI toolkit.  
	Obviously, since OSF wanted a hybrid toolkit with significant 
	new functionality, some API changes were inevitable.

	The purpose of this document is to try to point out 
	those areas in which the Motif toolkit is significantly
	different from the XUI toolkit.  Note that in many
	areas the Motif toolkit provides functionality beyond
	that present in XUI but which does not conflict with the 
	XUI API.  This document only addresses those areas where 
	functionality present in XUI has been changed or is not 
	present in Motif.

	This document will be updated as needed during the course
	of the Mofif Toolkit effort.  Its purpose is to help
	those developers who already have significant applications
	on XUI to move those applications, as painlessly as
	possible, to the Motif toolkit.


	AREAS OF DIFFERENCE
	===================
	For specifics on all of the items listed below see the
	appropriate chapter of the External Specification and 
	the component man pages.  

	1) In all cases, the "Dwt" prefix from XUI and the "Xw"
	prefix from X Widgets have been replaced by a more vendor 
	neutral, "Xm" (X Motif).  This is true for function calls, 
	resources, callback names, etc.  Also, resource and define 
	names have been changed to bring names more into line with 
	the naming conventions set out in the Xt Intrinsics manual.  
	For example, previously XUI pushbuttons supported a callback 
	reason	called "DwtCRArm", this becomes "XmCR_ARM".  Given 
	the number of name changes it is simply more useful to refer
        to the External Specification and Man pages than to attempt
	to repeat all of that data here.

	2) The XUI "high-level" create functions for each
	widget (i.e., DwtLabelCreate) have no counterpart in Motif. 
	Motif supports 2 methods of widget creation:

		-First, a functional interface equivalent to XUI's
		"low-level" create function:

		  XmCreateLabel(parent,name,arglist,argcount);

		-Second, the standard Xt Intrinsics/X Widget's
		create function:

		  XtCreateWidget(name,widget_class,parent,
				arglist,argcount);

	3) There is no Motif counterpart to the XUI Help widget,
	Help Shell or help subsystem.

	4) The class hierarchy has been changed to support 
	the other changes desired by OSF.  These changes 
	should only affect those application writers who 
	have developed new widgets.

	5) A set of 3D visual resources have replaced the
	visual resources of the XUI widgets.

	6) A general model of resolution independence
	replaces the resolution independence scheme in the
	XUI dialog layer.  All components in Motif will
	support resolution independence.

	7) The compound string functionality that was in
	XUI has been altered to present a more vendor
	neutral scheme as well as expanded application
	functionality.

	8) A general model of keyboard traversal replaces
	the keyboard traversal scheme in the XUI dialog
	layer.  Keyboard traversal will follow the Presentation
	Manager model and will be available in all components
	including menus.

	9) The MenuBar variation of RowColumn will require
	that all of its children be homogeneous.

	10) Names of many widgets have been changed.  At a minimum
	all widget class names are now prefaced with "Xm". The 
	following list contrasts the appropriate XUI widget create 
	function with its Motif counterpart for those widget's
	whose name has changed. Note that the create functions now 
	more closely conform to the verb-noun of the Xt Intrinsics 
	widget create function:

	DwtAttachedDBCreate	XmCreateForm
	DwtAttachedDBPopupCreate  XmCreateFormDialog
	DwtCautionBoxCreate	XmCreateWarningDialog
	DwtCommandWindowCreate	XmCreateCommand
	DwtDialogBoxCreate	XmCreateBulletinBoard
	DwtDialogBoxPopupCreate	XmCreateBulletinBoardDialog
	DwtFileSelectionCreate	XmCreateFileSelectionDialog
	DwtListBoxCreate	XmCreateList
	DwtMenuCreate		XmCreateRowColumn
	DwtPullDownMenuEntryCreate  XmCreateCascadeButton
	DwtScrollWindowCreate	XmCreateScrolledWindow
	DwtSelectionCreate	XmCreateSelectionBox
	DwtSTextCreate		XmCreateText
	DwtWindowCreate		XmCreateDrawingArea
	DwtWorkBoxCreate	XmCreateWorkingDialog


	11) XmCommand (DwtCommandWindow) has been changed so
	that all textual data is input in the form of XmString
	data (Compound Strings) rather than a mix of char*
	and Compound String data.  This means that the
	"XmNcommand" resource (in XUI "DwtNvalue") takes
	XmString data rather than char*.




1160.3LEOVAX::TREGGIARIMon Jul 24 1989 09:285
This is a very "high level" list.  We helped them generate a much more
detailed list, but I haven't seen it appear anywhere on the "kit" yet.

Leo

1160.4good..CISC::krisaka fuel::graham "question authority" Mon Jul 24 1989 09:3522

>This is a very "high level" list.  We helped them generate a much more
>detailed list, but I haven't seen it appear anywhere on the "kit" yet.

>Leo

Leo,

thanx for the comment ;^)

what is your group doing to provide this info to developers and field techies
so we can show our committment to Motif..or maybe, it is not even your respon-
sibility.....no?

Why should the good work that you folks put out go to "strangers" first?
At least, make us all have the information at the same time.

Kris.



1160.5LEOVAX::TREGGIARIMon Jul 24 1989 14:1511
HP and OSF are supposed to provide the "list".  We have provided feedback
based on the spec, and other things we've "discovered" while playing with
Motif.  All that I have is a first pass at a list that we made MANY
corrections/additions to (back to OSF).  I don't have anything close to
up-to-date.

I will ask our people that talk to OSF to find out why the detailed list
is not on the "kit".

Leo

1160.6HP --> MotifBYENG0::ROSTERTAGRenate Ostertag, Munich CIMIE, Dtn. 865-1140Fri Jul 28 1989 08:4818
I didn't know where to put this question, so I try it here...

The problem:

We have to do an investigation for a customer what it takes (actions and
effort) to port their application from a HP UNIX system to a VAX/VMS
platform. 
At the moment they use the HP window system (don't know the exact name) 
and they want to use OSF/Motif.

Does anybody have any ideas or can point me to somewhere else?

Thanks 

Renate


1160.7HP widgets to Motif is mostly grunt workMIPSBX::thomasThe Code WarriorFri Jul 28 1989 20:1016
There are few features that HP widgets have which the Motif widgets don't.
But mostly its just converting resources names (XtNmumbleFratz to XmNfooBar)
and changing the Widget calls (HP has UIL so you don't have to worry about
it unless you want to use UIL).

Menus are handled differently (they are sinpler under Motif) but it's mostly
slogging through the man pages...

Your most anooying changes will be to use the Motif compound functions instead
of the ISO Latin 1 string which the HP widgets use.

I converted XNotes (~8000 lines of code, 90% HP widgets and 10% Athena) to 100%
Motif in about 40 man-hours.  This figure may or may not reflect normal reality
as I know XNotes inside and out and had the HP & Motif widget sources to go
look things up (this was a *big* help).

1160.8More detail of class hierarchy changes?LARVAE::BULLARDTue Aug 01 1989 10:2811
    re .2 
>	4) The class hierarchy has been changed to support the other
> 	changes desired by OSF.These changes should only affect those
> 	application writers who have developed new widgets.
    
    An ISV that I am working with has done this and I would like to
    let him know the implications of these changes before he finds
    out through another source.Are there any more details??
    
    regards Mark