| 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
|
| 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);
}
|
| 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)
|
| 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.
|