|
-
April 22nd, 1999, 03:11 AM
#1
Draw table in scrollview
Hi:
there is a problem that i meet:
I'd like to draw a table in scrollview.And i use the function TextOut(int x
,int y,cstring str);The table is drawn by tabs like ©¤©¦©° ©´ ©¸ ©¼©À ©È©Ð ©Ø ©*.first i think one tabs is using two space's room.(because in VB it is true)
but i found in scrollview that one tabs is using four space's room.Or the table
can not be align in the view.and when i change my monitor's to 1024*768 that one
tabs is using 5 space's room.that is a small problem,that big one is :
if i set one tabs using 4 space's room the table is fine in the view.but in print preview is bad,and then if i set one tabs using 4 space's room the table is fine in pint preview but bad in the scrollview.
would you like to tell me how to deal with it ?
Thanks a lot!
-
April 22nd, 1999, 03:27 AM
#2
Re: Draw table in scrollview
sorry last post is wrong at the line the right is:
if i set one tabs using 4 space's room the table is fine in the view.but in print preview is bad,and then if i set one tabs using 2 space's room the table is fine in pint preview but bad in the scrollview.
-
April 22nd, 1999, 03:32 AM
#3
Re: Draw table in scrollview
my simple code is in OnDraw function:
pDC->TextOut(50,10,"©°©¤©¤©¤©¤©´");
pDC->TextOut(50,26,"©¦(8spaces) ©¦");
pDC->TextOut(50,42,"©¸©¤©¤©¤©¤©¼");
and like this in print preview is fine and in scrollview is bad.
if like this
pDC->TextOut(50,10+100,"©°©¤©¤©¤©¤©´");
pDC->TextOut(50,26+100,"©¦(16spaces) ©¦");
pDC->TextOut(50,42+100,"©¸©¤©¤©¤©¤©¼");
in scrollview is fine and in print preview is bad.
god save me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|