Really basic graphics in C # 2.0 tutorials

I work for a ticketing agency and we print tickets on our own printer. I was straightforward coding for ticket design and storing templates in a database. If we need a new field to add to the ticket, I'll manually add it and use a secret coordinate system to estimate where the fields should go and how many other fields need to be moved to accommodate the new information.

We always planned to automate this system with a simple (I emphasize the word simple) graphical editor. Basically, we don't want tickets to change radically in shape anytime soon, we have one ticket size and the firmware for the ticket is very simple because it's a more industrial machine, it has about 10 fonts and some really basic ratios sizes.

I need this editor to display a pixel-sized rectangle of the tickets (may even be the actual size) and have a resizable grid that can switch between overlay and invisibility on top of the ticket rectangle and is represented by dots than lines.

Then I want to be able to represent the fields by drawing rectangles filled with the letter "x" that show the maximum size of the field (to prevent matches). These fields should be selected, dragged, and dropped using Snap to Grid.

I've worked out the math, but I have no idea how to draw rectangles and then draw meshes in layers and then place additional rectangles full of "x" on top of them. I am also not very good at changing the drawn positions in response to mouse events. It's just not something I've ever had to do.

All the tutorials I've seen so far assume that you already know a lot about using drawing objects and are trying to expand your basic knowledge of these things. I just need to point in the direction of a good tutorial on handling floats in a frame first.

Any ideas?

+1


source to share


1 answer


For those of you in need of guidance on this unusual (at least of us with a BIS background), I heartily endorse:

http://www.bobpowell.net/faqmain.htm



Now I'm happily drawing GUIs and getting them to respond to control inputs with not too much hassle.

+1


source







All Articles