Draw grid, resize with window (form)

Draw grid, resize with window (form)

Post by Chris Russel » Fri, 24 Aug 2001 14:17:46

Just wondering if anyone can help me with how to draw a grid on the canvas
and as the form is resized or maximized the grid resizes in proportion?

Thanx. Please email any responses!

  "No great genius has ever existed without some touch of madness."

        ("`-/")_.-'"``-._                         Chris Russell
         . . `; -._    )-;-,_`)               Melbourne,Australia

       _.- _..-_/ / ((.'                                OR



1. Resizing a window (form) proportionally


I'm trying to keep a certain window's height the same as its width, even
when the user resizes it, how do I do this correctly?

Currently I've made a MESSAGE_MAP for WM_SIZE and forward those messages
to this function:


void __fastcall TtrackMap::sizeHandler(TMessage& Msg)
   this->Width  = this->Height;

The result is, that when the user resizes the window, it flickers a lot
and it doesn't
resize at all if I'm using the right border to drag (it just moves).

I'm using BC++B3.


2. HyperMatter II

3. How Resizing forms in increments like Object Inspector Window in Delphi IDE

4. 3ds R2 IPAS

5. PictureBox resizing with Form resize

6. How to show MPEG from BCB?

7. TImage resize after the form is resized

8. hidden surface

9. Resizing parent form, TImage not resizing to match

10. Resizing A Non-Sizable User Drawn Window

11. Form Resize - minimum size of form?

12. How can I draw the windows form border ?

13. grid dots on vb forms