[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3066.0. "Xlib error message, X_ImageText8" by JRDHTC::MASEDA (Hiroshi Maseda ABS/JRD(3F) 045(336)5329) Thu Jul 12 1990 09:34

	I know, this is not 'UISX' conference.
	But I want to get information about Xlib function and message.

	I'm using J(apanese)VMS V5.3 based on VMS V5.3-1 and latest version
	of UISX FT kit.
	I'd like to display Japanese texts with using JDECwindows 2 byte font.
	But executing sample program, I got following error message.

>	X error event recieved from server: BadImplementation - server reported
>	implementaation error
>
>	    Failed request major op code 76 (X_ImageText8)

	I suppose this error is caused from using JDECwindows 2 byte font
	in the place 1 byte font is required or displaying 2 byte strings
	in the place 1 byte strings are required.
	But I don't find out what Xlib function produces the error message
	X_ImageText8.
	From the Xlib Routines Reference Manual, there are some functions like

		XDrawImageString
		XDrawString
		XDrawText

	I think one of these functions produces the error message.
	Am I right ?
	And please tell me any situation that the error message is produced.
T.RTitleUserPersonal
Name
DateLines
3066.1It's not XDrawTextSITBUL::MCCARTNEYThu Jul 12 1990 17:0014
    Well , I can tell you that it's not XDrawText.  UISX doesn't use that
    routine.  It is either XDrawString, XDrawString16, XDrawImageString, or
    XDrawImageString16.  All of these are in the UISX code.  
    
    Can you tell me a bit more about what UIS calls you're using?  If so I
    might have a chance of figuring out which X routine you're calling and
    providing some details about how it's called.  
    
    Also, do you have anything I can pull over the net which would let me
    duplicate it here?
    
    Thanks,
    
    Irene
3066.2GILROY::kleeThu Jul 12 1990 19:598
>	But I don't find out what Xlib function produces the error message
>	X_ImageText8.

Appendix A of the DEC Press X book maps Xlib functions to X protocol
requests.  XDrawImageString is the only Xlib function to generate the
ImageText8 protocol request.

Ken
3066.3Sample programJRDHTC::MASEDAHiroshi Maseda ABS/JRD(3F) 045(336)5329Thu Jul 12 1990 20:4355
Re:                    <<< Note 3066.1 by SITBUL::MCCARTNEY >>>

>    Can you tell me a bit more about what UIS calls you're using?  If so I
>    might have a chance of figuring out which X routine you're calling and
>    providing some details about how it's called.  
>    
>    Also, do you have anything I can pull over the net which would let me
>    duplicate it here?
    
	Thanks, I'll put simple program here.
	And this requires one JDECW 2byte font file.
	Please copy

	JRDV04""::SYS$COMMON:[SYSFONT.DECW.75DPI]JDECW*KANJI11*14.DECW$FONT

	Sample program is,
----------------------------- Cut from here -----------------------------------
#include				ctype
#include				stdio
#include				descrip
#include				<uisentry>
#include				<uisusrdef>

#define					DSC$K_DTYPE_T2	38;

unsigned int				vd_id, wd_id;
unsigned int				org_attr = 0, attr = 1;

float					vd_lx = 0.0, vd_by = 0.0,
					vd_rx = 8.0, vd_ty = 3.0,
					vd_wd = 8.0, vd_ht = 3.0;

static	$DESCRIPTOR	(device,	"SYS$WORKSTATION");
static	$DESCRIPTOR	(font,		"-JDECW-*-14-*-Kanji11");

static struct	dsc$descriptor		string;
unsigned char				*string_buffer = {"���ȥ��"};

main ()
{
	string.dsc$w_length = 10;
	string.dsc$b_dtype = DSC$K_DTYPE_T2;
	string.dsc$b_class = DSC$K_CLASS_S;
	string.dsc$a_pointer = string_buffer;

	vd_id = uis$create_display (&vd_lx, &vd_by, &vd_rx, &vd_ty,
					&vd_wd, &vd_ht);
	wd_id = uis$create_window (&vd_id, &device);

	uis$set_font (&vd_id, &org_attr, &attr, &font);

	uis$text (&vd_id, &attr, &string, &vd_lx, &vd_ty);

	pause (1);
}
3066.4STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentMon Jul 23 1990 17:3410
    Hi,
    
    I assume that you have taken this offline with Irene.  The text
    logic was written to pick up the 16-bit descriptor and simply do
    the text call with the 16-bit Xlib variant.  There may be more
    work to do than that, you should coordinate the effort with Irene
    for V2.0 of UISX.
    
    _Fred (who did the UISX text logic)
    
3066.5JRDHTC::MASEDAHiroshi Maseda ABS/JRD(3F) 045(336)5329Tue Jul 24 1990 05:0510
Re:   <<< Note 3066.4 by STAR::KLEINSORGE "Fred Kleinsorge, VMS Development" >>>

>    I assume that you have taken this offline with Irene.  The text
>    logic was written to pick up the 16-bit descriptor and simply do
>    the text call with the 16-bit Xlib variant.  There may be more
>    work to do than that, you should coordinate the effort with Irene
>    for V2.0 of UISX.
    
	This must be done in JUISX V1.0 of JVWS V4.3 in these 1 or 2 months.
	Maybe I must consult with Irene after I got the SDC sources.