🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Peter G. Millard Sun, 08 Nov 1992 05:36
How to get fast window print in VB/DOS?
#217
Author: Peter G. Millard
Date: Sun, 08 Nov 1992 05:36
26 lines
1726 bytes
I am having some trouble w.r.t. to the screen print rate of my compiled
VB/DOS programs..I was wondering if anybody had a good solution to my
problem.  Here is my situation

I am writing a program which get data from a counter card, converts
it to a usable quantity and prints it to a picture window in extra large 
numbers. I am using subroutines (gosub type, not CALL type) to print the
numbers to the screen. These subs in-turn print the numbers by setting 
the currentX and currentY paramters for my picture box, then printing one
of the extended characters (like chr$(201)) to that location. 

The problem I have is that I need the program to update the screen as 
fast as possible. I used the same technique (sp?) in a QB 4.5 program 
(using LOCATE and then PRINT CHR$()) and these method is extremely faster.

I was wondering if there would be a faster method of printing my large numbers
to the picture box or am I doing this the hard way or what?? 

Any help would be appreciated.
Thanx.
  
-- 
******************************************************************************
	Peter G. Millard  *  INTERNET: v057n5um@ubvms.cc.buffalo.edu           
 	SUNY @ Buffalo    *          : millard@acsu.buffalo.edu
*****************************************************************************
Re: How to get fast window print in VB/DOS?
#227
Author: Steven Podradchik
Date: Mon, 09 Nov 1992 19:36
5 lines
591 bytes
You should get approximately the same print rate when printing to a
form via the Print method as printing to a standard DOS screen with the
Print statement.  Could you post some of the code you're using?

Thanks, Steve Podradchik (MS)
Re: How to get fast window print in VB/DOS?
#229
Author: Peter G. Millard
Date: Tue, 10 Nov 1992 04:13
45 lines
1929 bytes
stevepo@microsoft.com (Steven Podradchik) writes:

>You should get approximately the same print rate when printing to a
>form via the Print method as printing to a standard DOS screen with the
>Print statement.  Could you post some of the code you're using?

>Thanks, Steve Podradchik (MS)

here is some sample code...the draw2 routine draws the number 2 on the 
screen using the h & v variables which specify it's starting position.
I am using the SUB LCATE to clean up the code write now. Might this be
slowing down the execution?

I pass the horizontal & vertical positions and what character to print.

draw2:
FOR t = 1 TO 5:
    lcate h + t, v, CHR$(205)
NEXT t
lcate h + 6, v, CHR$(187)
lcate h + 6, v + 1, CHR$(186)
lcate h + 6, v + 2, CHR$(188)
FOR t = 2 TO 5: lcate h + t, v + 2, CHR$(205): NEXT t
lcate h + 1, v + 2, CHR$(201)
lcate h + 1, v + 3, CHR$(186)
lcate h + 1, v + 4, CHR$(200)
FOR t = 2 TO 6:
    lcate h + t, v + 4, CHR$(205):
NEXT t:
RETURN

SUB lcate (x, y, x$)
Rdscrn.disp.CurrentX = x
Rdscrn.disp.CurrentY = y
Rdscrn.disp.PRINT x$
END SUB


Thanx for any additional info which anyone can provide.

-- 
******************************************************************************
	Peter G. Millard  *  INTERNET: v057n5um@ubvms.cc.buffalo.edu           
 	SUNY @ Buffalo    *          : millard@acsu.buffalo.edu
*****************************************************************************
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads