I included the Source.
Activate / deaktivate a Table with right Mouseclick.
Download ( everything included ) :
http://www.pflegeplus.com/fw_downloads/draw.zipDon't forget
Daniel's change in Class CONTROL ( Refresh() ) !!!
in CONTROL.PRG, method LButtonUp LOCATE
if Empty( ::nMResize )
::Move( ::nTop + nRow - nMRow, ::nLeft + nCol - nMCol,,, .t. )
ADD AFTER
::Refresh()You can draw Walls on any Position and Size with :
LOCAL aGrad1 := { { 0.1, 16437160, 16777215 }, ;
{ 0.1, 16777215, 16437160 } }
For plain Color use the same for 1. and 2. Color
ACTIVATE WINDOW oWnd ;
ON PAINT (
GradientFill( hDC, 0, 650, oWnd:nHeight, oWnd:nWidth - 320, aGrad1, .T. ), ; // Vertical Line
...
...
It is a quick Solution and I think it is possible, to make it still smaller.
Bitmap on Bitmap doesn't show for Transparent-parts the Surface of the 1. covered BMP.
Transparent uses the defined Background-Brush.
I don't know, if it is possible to use the covered part of the 1. BMP as Brush.
Do You need it ?
I think placing a Table on top of another doesn't happen
but possible to place it near a Tree, like shown in Your example.
Maybe I can find a Solution for this Problem.
I think a better Solution for a Table/Tree Position ( Your Example ) would be,
to replace a Tree with a new symbol, because You also want to show if a Table is free or not.
The Tree-space in the Archive could be used for the new Symbols.
The Trees could be placed directly on the plan and adjusted there. The same with the Bar.
Best Regards
Uwe