Issues with XmList spacing between items - Motif

This is a discussion on Issues with XmList spacing between items - Motif ; Hi I use the CONVERT function to convert my C string to XmString. The C string has an embedded separators like ":::t" and "". Lets say I have 3 segments of a single string, the first 2 segments are separated ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Issues with XmList spacing between items

  1. Issues with XmList spacing between items

    Hi
    I use the CONVERT function to convert my C string to XmString. The C
    string has an embedded separators like ":::t" and "". Lets say I have
    3 segments of a single string, the first 2 segments are separated by
    the separator ":::t" and the last segment is separated by "". I use
    the CONVERT function (as shown below) to convert the C string to
    XmString. When I add this XmString to the XmList widget it converts it
    into 3 lines and a spacing before the next item is added to the XmList
    widget. However in some weird scenarios I see that I don't get the
    spacing between the items in the XmList widget.

    Below is the CONVERT segment of the code:
    XmString temp = (XtPointer) CONVERT(ListWidget,xmStr,XmRxString,
    0,&argok);
    where ListWidget is of type List Widget, xmStr is of type XmString.

    Can you please let me know
    1) why this weird behaviour of spacing is seen? I would like to always
    have a space between the differnt items in the XmList .
    2)Can you please provide me suggestions to fix it?

  2. Re: Issues with XmList spacing between items

    On Dec 20, 3:51*pm, bab wrote:
    > Hi
    > I use the CONVERT function to convert my C string to XmString. The C
    > string has an embedded separators like ":::t" and "". Lets say I have
    > 3 segments of a single string, the first 2 segments are separated by
    > the separator ":::t" and the last segment is separated by "". I use
    > the CONVERT function (as shown below) to convert the C string to
    > XmString. When I add this XmString to the XmList widget it converts it
    > into 3 lines and a spacing before the next item is added to the XmList
    > widget. However in some weird scenarios I see that I don't get the
    > spacing between the items in the XmList widget.
    >
    > Below is the CONVERT segment of the code:
    > XmString temp = (XtPointer) CONVERT(ListWidget,xmStr,XmRxString,
    > 0,&argok);
    > where ListWidget is of type List Widget, xmStr is of type XmString.
    >
    > Can you please let me know
    > 1) why this weird behaviour of spacing is seen? I would like to always
    > have a space between the differnt items in the XmList .
    > 2)Can you please provide me suggestions to fix it?


    What is CONVERT ? Is it a macro? a function? Why are you casting it to
    XtPointer?
    Show us the code.
    --
    Fred Kleinschmidt



+ Reply to Thread