home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8914 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.5 KB

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!gatech!darwin.sura.net!newsserver.jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!seunet!compound!comsys!smith
  2. From: smith@compound.se (Bjorn Smith)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: XmTRAVERSE_NEXT won't work on TextField under same FormWidget !?
  5. Message-ID: <C1J0rr.KGt@compound.se>
  6. Date: 27 Jan 93 18:59:51 GMT
  7. Sender: smith@compound.se (Bjorn Smith)
  8. Organization: Compound Systems AB
  9. Lines: 59
  10. Nntp-Posting-Host: comsys
  11. X-Newsreader: TIN [version 1.1 PL8]
  12.  
  13. Hi,
  14. in a form widget I have a set of text widgets with corresponding labels
  15. according to the code below:
  16.  
  17.             /* The form widget */
  18.             text_date = XtVaCreateWidget("TextDate",
  19.                 xmFormWidgetClass,     rc,
  20.                 NULL);
  21.  
  22.             /* First text field */
  23.             text = XtVaCreateManagedWidget("Text",
  24.                 xmTextFieldWidgetClass,  text_date,
  25.                 XmNtraversalOn,          True,
  26.                 XmNbottomAttachment,     XmATTACH_FORM,
  27.                 XmNcolumns,              fldlen(ver, text),
  28.                 NULL);
  29.  
  30.             XtVaCreateManagedWidget("Text",
  31.                 xmLabelGadgetClass,    text_date,
  32.                 XmNleftAttachment,       XmATTACH_OPPOSITE_WIDGET,
  33.                 XmNleftWidget,           text,
  34.                 XmNbottomAttachment,     XmATTACH_WIDGET,
  35.                 XmNbottomWidget,         text,
  36.                 NULL);
  37.  
  38.             XtAddCallback(text, XmNactivateCallback,
  39.                 XmProcessTraversal, XmTRAVERSE_NEXT_TAB_GROUP);
  40.  
  41.             /* Second text field */
  42.             text2 = XtVaCreateManagedWidget("Text2",
  43.                 xmTextFieldWidgetClass,  text_date,
  44.             .
  45.             .
  46.             .
  47. I expected to be able to use XmTRAVERSAL_NEXT to travers to the next
  48. text field. Why do I have to use XmTRAVERSE_NEXT_TAB_GROUP ?
  49. The widgets text and text2 have the same parent.
  50.  
  51. Is there anyway to explicitly set a number of text widgets to members
  52. of the same tab group ?
  53.  
  54. Many thanks in advance !
  55. --
  56. Bj|rn Smith    Compound Systems, phone +46 8 7923689
  57. UUCP:         {uunet,mcsun}!seunet!comsys!smith
  58. Domain Address:    smith@compound.se
  59. -- 
  60. Bj|rn Smith    Compound Systems, phone +46 8 7923689
  61. UUCP:         {uunet,mcsun}!seunet!comsys!smith
  62. Domain Address:    smith@compound.se
  63.  
  64. --
  65. Bj|rn Smith    Compound Systems, phone +46 8 7923689
  66. UUCP:         {uunet,mcsun}!seunet!comsys!smith
  67. Domain Address:    smith@compound.se
  68. -- 
  69. Bj|rn Smith    Compound Systems, phone +46 8 7923689
  70. UUCP:         {uunet,mcsun}!seunet!comsys!smith
  71. Domain Address:    smith@compound.se
  72.