You can use
#if XmVERSION > 1
...
#else
...
#endif
There is an example in DropSMgr.h. Of course this is probably now going to need
a RepType of XmRShowArrows probably.....which should also be in an #if
On 31-May-00 at 16:45, C Hennessy ([EMAIL PROTECTED]) wrote:
> Hi,
> Can some one give me the directions on how to solve the problem with
> the
> enum, as there is no Scale/Scrollbar header in the 2.0 include dir.
>
> Ta
> CP
>
> Ian Thurlbeck wrote:
> >
> > Dear All
> >
> > further to my bug-report I received this patch from the grace developers:
>
> > > PS. There is a potential problem (not related to this issue) with
> > > Scale/Scrollbar in the Motif-2 variant of LT: XmNshowArrows in 2.0 is
> > > not a Boolean, but XtEnum:
> > >
> > >
> > > /************************************************************************
* new ScrollBar showArrows define
> > >
> > >
************************************************************************/
> > >
> > > enum{ /* XmNONE */ XmEACH_SIDE = 1,
> > > XmMAX_SIDE, XmMIN_SIDE
> > > } ;
>
>