Sponsored Content
Top Forums Programming MOTIF programming and X11 client ! Post 302998156 by apmcd47 on Friday 26th of May 2017 09:19:55 AM
Old 05-26-2017
Quote:
Originally Posted by Zabo
Does that mean that i can program a application in MOTIF under Linux and the application can send data to the same
application over the internet on a different computer ?
Two instances of one X-client running on two different computers, host1 and host2? The short answer is no. If both clients are running on the same server (i.e. the screen in front of you) there are probably tools to allow you to do this, but they are not built into Motif. You would have to investigate other tools/libraries.

If you were thinking of learning Motif programming to simplify inter-process communication, forget it. You are barking up the wrong tree. If, on the other hand, you want to learn GUI programming for Linux, don't bother. Motif is virtually dead with only legacy systems using it. Instead you should be looking at GTK and QT instead.

Andrew
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Good source of X11 programming info?

Is there a good book or something on practical programming in X11? I have the O'Reilly X window system book set. They don't seem to cover the nuances very well (at least for me). So far the only thing I find on the web is the text from these books. Specifically, I'm looking for optimization... (2 Replies)
Discussion started by: willil
2 Replies

2. UNIX for Dummies Questions & Answers

socket programming : client server IPC

I'm new to socket programming. Have a basic doubt. I have a structure(global) at the server side. I have two different client connecting to the server. Will the changes made by one client on the structure be visible to the other client when it accesses the same client? I'm creating a STREAM... (3 Replies)
Discussion started by: abc.working
3 Replies

3. UNIX for Advanced & Expert Users

Server Programming to keep on looking for client connection

Hi I wrote a server Program in C, Here it is, this is a just socket creation alone, bool myclass::CreateSocket() { struct sockaddr_in sockaddr_in; sockaddr_in.sin_family = AF_INET; sockaddr_in.sin_port = 1100; sockaddr_in.sin_addr.s_addr = INADDR_ANY; ... (4 Replies)
Discussion started by: vij_krr
4 Replies

4. UNIX for Dummies Questions & Answers

Newbie needs help with Xlib / X11 programming,dunno who to ask,but you :(

Hi,I'm new here and to Unix also. I'm totall newbie. Here is what I have to do: -Basics of programming user interface with Xlib library -Xlib -Client/Server model of X-Windows system -Example of "Hello world" with button which changes text ,so that when u click displays another... (4 Replies)
Discussion started by: megane16v
4 Replies

5. Solaris

Motif 2.1 migration from Motif 1.2

An application was getting built using Motif 1.2 that used come along Solaris 6 OS for compiling and linking. Application is run using Motif 2.1 on Solaris 10 and it is working fine. Application compilation and linking is working fine on Solaris 10 with Motif 2.1.0 but running the application... (0 Replies)
Discussion started by: shafi2all
0 Replies

6. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

7. Programming

Client Server programming

Hi Could someone give me some advise, basically i am learning UDP client server programming. I understand how to do send and receive between client server ( learn from this site Sending and Receiving Packets) but things such as MSN can actually send and receive at the same time! I believe it... (1 Reply)
Discussion started by: GQiang
1 Replies

8. Programming

Low level X11 programming

How to use X11 without Xlib not XCB? How draw window directly on low level? I must use anyway window manager like Motif? I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies. Where is detailed description of it? In X11... (0 Replies)
Discussion started by: AndrzejB
0 Replies

9. UNIX for Beginners Questions & Answers

Motif gui programming !

MOTIF GUI PROGRAMMING ! Hi there. I am a MOTIF GUI Programmer in C language. After a longer break i have problems with the GCC compiling. my MOTIF file is named winstack.c I have the follow code gcc -o newprogram winstack.c -lXm -lXt -lX11 The compilation runs good. But no executable LINUX... (10 Replies)
Discussion started by: Sennenmut
10 Replies
QMotifWidget(3qt)														 QMotifWidget(3qt)

NAME
QMotifWidget - The QWidget API for Xt/Motif widgets SYNOPSIS
This class is part of the Qt Motif Extension. #include <qmotifwidget.h> Inherits QWidget. Public Members QMotifWidget ( QWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 ) virtual ~QMotifWidget () Widget motifWidget () const DESCRIPTION
This class is defined in the Qt Motif Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QMotifWidget class provides the QWidget API for Xt/Motif widgets. QMotifWidget exists to provide a QWidget that can act as a parent for any Xt/Motif widget. Since the QMotifWidget is a proper QWidget, it an be used as a top-level widget (e.g. 0 parent) or as a child of any other QWidget. An Xt/Motif widget with a top-level QMotifWidget parent can begin using the standard Qt dialogs and custom QDialogs while keeping the main Xt/Motif interface of the application. Using a QMotifWidget as the parent for the various QDialogs will ensure that modality and stacking works properly throughout the entire application. Applications moving to Qt may have custom Xt/Motif widgets that will take time to rewrite with Qt. Such applications can use these custom widgets as QMotifWidget with QWidget parents. This allows the application's interface to be replaced gradually. MEMBER FUNCTION DOCUMENTATION
QMotifWidget::QMotifWidget ( QWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 ) Creates a QMotifWidget of the given widgetclass as a child of parent, with the name name and widget flags flags. The args and argcount arguments are passed on to XtCreateWidget. The motifWidget() function returns the resulting Xt/Motif widget. This widget can be used as a parent for any other Xt/Motif widget. If parent is a QMotifWidget, the Xt/Motif widget is created as a child of the parent's motifWidget(). If &#92; parent is 0 or a normal QWidget, the Xt/Motif widget is created as a child of a special ApplicationShell widget. Xt/Motif widgets can use this special ApplicationShell parent as the parent for existing Xt/Motif dialogs or QMotifDialogs. QMotifWidget::~QMotifWidget () [virtual] Destroys the QMotifWidget. The special ApplicationShell is also destroyed, if it was created during construction. Widget QMotifWidget::motifWidget () const Returns the embedded Xt/Motif widget. If a Shell widget was created by the constructor, you can access it with XtParent(). SEE ALSO
http://doc.trolltech.com/qmotifwidget.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qmotifwidget.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QMotifWidget(3qt)
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy