⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 66453

📁 神经网络昆斯林的新闻组分类2006
💻
字号:
Xref: cantaloupe.srv.cs.cmu.edu comp.windows.x:66453 comp.windows.x.intrinsics:1098Path: cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!bb3.andrew.cmu.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!europa.eng.gtefsd.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!pipex!uknet!uknet!liv!lucs!rikFrom: rik@csc.liv.ac.uk (Rik Turnbull)Newsgroups: comp.windows.x,comp.windows.x.intrinsicsSubject: String to Widget Resource ConverterMessage-ID: <C52L8n.9p0@compsci.liverpool.ac.uk>Date: 6 Apr 93 16:17:11 GMTSender: news@compsci.liverpool.ac.uk (News Eater)Organization: Computer Science, Liverpool UniversityLines: 52Nntp-Posting-Host: bobr.csc.liv.ac.ukCan anybody tell me how to use the Xmu function "XmuCvtStringToWidget". Iwant to specify a widget name in a resource file so that I can connecttwo widgets together on an XmForm. ie.MyProggy*MyListSW.topWidget:               MainTextSWHowever, when I run the program, I get the message:Warning: No type converter registered for 'String' to 'Window' conversion.(Just like the manual sez).I have managed to find this bit of code which seems to be the correct wayto go about this:    static XtConvertArgRec parentCvtArgs[] = {        {            XtWidgetBaseOffset,            (XtPointer)XtOffsetOf( CoreRec, core.parent ),            sizeof(CoreWidget)        }    };    XtSetTypeConverter( XtRString, XtRWidget, XmuCvtStringToWidget,                            parentCvtArgs, XtNumber(parentCvtArgs), XtCacheAll,                                NULL );However, I haven't got a clue where to put it! The example code I have seemsto suggest I can only do this if I am creating my own widget; but elsewhere itsays that I can add it to a widget's "class_intialize" function. HOW? What'sone of those? :-(If anybody has any code to do this, please let me know the trick - I'm surethis is a FAQ.Thanks in advance,Rik.PS: What are the header files "CoreP.h" and "IntrinsicsP.h" - should I use    these or "Core.h" and "Intrinsics.h" (OK I know RTFM:-).=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=.|                               |                                       || Richard Turnbull              |                                       ||                               |       Dept. Computer Science          || E-mail:                       |       University of Liverpool         || rik@compsci.liverpool.ac.uk   |       Liverpool L69 3BX               ||                               |       England                         || Phone: (051) 794 3704         |                                       ||                               |                                       |.=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -