Home > Back-end >  Drawgrid can fulfill my requirements?
Drawgrid can fulfill my requirements?

Time:10-20

I'm new to c + + builder, now I want to make up a ladder diagram display function, a box in the upper part of the labeled some characters, the lower part is my some symbols, I already have these pictures, need what together? Is the picture painted by this is the first, and then draw up the characters? If so, how to write code need? I am new to c + + builder, a lot of all don't understand the following attached zhang I want to achieve the effect of

CodePudding user response:

Don't want what drawgird, this is to write lines and words, directly on the canvas paintings have,
If you are not familiar with c + + builder, in OnPaint events with gdi API to draw directly, once it is how how do you draw

CodePudding user response:

The problem is that I need to be the hundreds or even thousands of lines, each line 10 grid, how to draw the figure? The figure of each grid is not necessarily the same

CodePudding user response:

reference 1st floor sololie response:
don't want what drawgird, this is to write lines and words, directly on the canvas paintings have,
If you are not familiar with c + + builder, in OnPaint events with gdi API to draw directly, once upon a time how do you paint now of how


The problem is that I need to be the hundreds or even thousands of lines, each line 10 grid, how to draw the figure? The figure of each grid is not necessarily the same

CodePudding user response:

Put a image element, draw lines not on it

CodePudding user response:

refer to the second floor aisonCQH response:
the problem is that I need to this to hundreds or even thousands of lines, each line 10 grid, how to draw the figure? The figure of each grid is not necessarily the same


Since hundreds of lines, there must be some code is to be able to share, find out the common things, written as a separate function, and then draw hundreds of lines, call hundreds of times
  • Related