02-28-2002
10 More Discussions You Might Find Interesting
1. Programming
Do you think that Motif programming is old...should I learn it... (3 Replies)
Discussion started by: CreamHarry
3 Replies
2. Programming
Can somebody help me...
I have insalled RedHat 7.3 on my computer
and there is motif 2.x and i want to compile a cource code but it doesn't work it says
Xm/PushB.h not found..something like that..
I'm trying like this :
gcc -o x x.c -lXm -lXt -lX11
pleas help me (3 Replies)
Discussion started by: CreamHarry
3 Replies
3. Programming
Hi everyone, I am new in motif programming and I want to learn how to program it. I use Fedora core 3 and every time I compile the program, there are always some errors appear. One of the errors said that I do not have the Xm/xxxx.h However, I do not know precisely how to install header files. I... (0 Replies)
Discussion started by: qqq
0 Replies
4. Shell Programming and Scripting
I have a script that creates a Form and multiple textfield, text, and label widgets in which the user inputs data, and submits it to be organized and formatted accordingly....
Some of the information that the user is manually adding comes from a text area in a separate application. Is it... (0 Replies)
Discussion started by: insamniac
0 Replies
5. HP-UX
hello everyone,
where can i download motif compatible with HP-UX 11.11.which motif version i have to use.
can i use openmotif 2.3 for HP-UX 11.11.
pls somebody suggest a solution .it's very urgent.
any help appreciated.
with regards,
Srini (0 Replies)
Discussion started by: mannam srinivas
0 Replies
6. Solaris
Hello,
I used to compile and link the code on Solaris 6 using Motif 1.2 (that used to come as part of Operating System)
I would like to use the same version of Motif 1.2 for compilation and linking on Solaris 10. But Solaris 10 has Motif 2.1.0 as default.
Is Motif 1.2 supported on... (0 Replies)
Discussion started by: shafi2all
0 Replies
7. Solaris
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
8. Programming
Does anyone know how to change the font size into a larger one, in a basic Motif application? (1 Reply)
Discussion started by: JenniferKuiper
1 Replies
9. Programming
I have a Motif Application created with XtVaAppInitialize. I have two field widgets, created with XmCreateTextField. Now when I programmatically change the data in any of the two fields, the widgets don't get refreshed, only after a mouse over.
I have tried anything, from including the "xrefresh"... (4 Replies)
Discussion started by: JenniferKuiper
4 Replies
10. UNIX for Beginners Questions & Answers
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
LEARN ABOUT REDHAT
xmgetsecondaryresourcedata
XmGetSecondaryResourceData(library call) XmGetSecondaryResourceData(library call)
NAME
XmGetSecondaryResourceData -- A function that provides access to secondary widget resource data
SYNOPSIS
#include <Xm/Xm.h>
Cardinal XmGetSecondaryResourceData(
WidgetClass widget_class,
XmSecondaryResourceData **secondary_data_return);
DESCRIPTION
Some Motif widget classes (such as Gadget, Text, and VendorShell) have resources that are not accessible through the functions XtGetRe-
sourceList and XtGetConstraintResourceList. In order to retrieve the descriptions of these resources, an application must use XmGetSec-
ondaryResourceData.
When a widget class has such resources, this function provides descriptions of the resources in one or more data structures. XmGetSec-
ondaryResourceData takes a widget class argument and returns the number of these data structures associated with the widget class. If the
return value is greater than 0 (zero), the function allocates and fills an array of pointers to the corresponding data structures. It
returns this array at the address that is the value of the secondary_data_return argument.
The type XmSecondaryResourceData is a pointer to a structure with two members that are useful to an application: resources, of type XtRe-
sourceList, and num_resources, of type Cardinal. The resources member is a list of the widget resources that are not accessible using Xt
functions. The num_resources member is the length of the resources list.
If the return value is greater than 0 (zero), XmGetSecondaryResourceData allocates memory that the application must free. Use XtFree to
free the resource list in each structure (the value of the resources member), the structures themselves, and the array of pointers to the
structures (the array whose address is secondary_data_return).
widget_class
Specifies the widget class for which secondary resource data is to be retrieved.
secondary_data_return
Specifies a pointer to an array of XmSecondaryResourceData pointers to be returned by this function. If the widget class has no
secondary resource data, for example, if the value returned by the function is 0 (zero), the function returns no meaningful value
for this argument.
RETURN
Returns the number of secondary resource data structures associated with this widget class.
EXAMPLE
The following example uses XmGetSecondaryResourceData to print the names of the secondary resources of the Motif Text widget and then frees
the data allocated by the function:
XmSecondaryResourceData * block_array;
Cardinal num_blocks, i, j;
if (num_blocks = XmGetSecondaryResourceData (xmTextWidgetClass,
&block_array)) {
for (i = 0; i < num_blocks; i++) {
for (j = 0; j < block_array[i]->num_resources; j++) {
printf("%s
", block_array[i]->resources[j].resource_name);
}
XtFree((char*)block_array[i]->resources);
XtFree((char*)block_array[i]);
}
XtFree((char*)block_array);
}
XmGetSecondaryResourceData(library call)