home *** CD-ROM | disk | FTP | other *** search
- 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
- From: smith@compound.se (Bjorn Smith)
- Newsgroups: comp.windows.x.motif
- Subject: XmTRAVERSE_NEXT won't work on TextField under same FormWidget !?
- Message-ID: <C1J0rr.KGt@compound.se>
- Date: 27 Jan 93 18:59:51 GMT
- Sender: smith@compound.se (Bjorn Smith)
- Organization: Compound Systems AB
- Lines: 59
- Nntp-Posting-Host: comsys
- X-Newsreader: TIN [version 1.1 PL8]
-
- Hi,
- in a form widget I have a set of text widgets with corresponding labels
- according to the code below:
-
- /* The form widget */
- text_date = XtVaCreateWidget("TextDate",
- xmFormWidgetClass, rc,
- NULL);
-
- /* First text field */
- text = XtVaCreateManagedWidget("Text",
- xmTextFieldWidgetClass, text_date,
- XmNtraversalOn, True,
- XmNbottomAttachment, XmATTACH_FORM,
- XmNcolumns, fldlen(ver, text),
- NULL);
-
- XtVaCreateManagedWidget("Text",
- xmLabelGadgetClass, text_date,
- XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
- XmNleftWidget, text,
- XmNbottomAttachment, XmATTACH_WIDGET,
- XmNbottomWidget, text,
- NULL);
-
- XtAddCallback(text, XmNactivateCallback,
- XmProcessTraversal, XmTRAVERSE_NEXT_TAB_GROUP);
-
- /* Second text field */
- text2 = XtVaCreateManagedWidget("Text2",
- xmTextFieldWidgetClass, text_date,
- .
- .
- .
- I expected to be able to use XmTRAVERSAL_NEXT to travers to the next
- text field. Why do I have to use XmTRAVERSE_NEXT_TAB_GROUP ?
- The widgets text and text2 have the same parent.
-
- Is there anyway to explicitly set a number of text widgets to members
- of the same tab group ?
-
- Many thanks in advance !
- --
- Bj|rn Smith Compound Systems, phone +46 8 7923689
- UUCP: {uunet,mcsun}!seunet!comsys!smith
- Domain Address: smith@compound.se
- --
- Bj|rn Smith Compound Systems, phone +46 8 7923689
- UUCP: {uunet,mcsun}!seunet!comsys!smith
- Domain Address: smith@compound.se
-
- --
- Bj|rn Smith Compound Systems, phone +46 8 7923689
- UUCP: {uunet,mcsun}!seunet!comsys!smith
- Domain Address: smith@compound.se
- --
- Bj|rn Smith Compound Systems, phone +46 8 7923689
- UUCP: {uunet,mcsun}!seunet!comsys!smith
- Domain Address: smith@compound.se
-