Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:46:34+00:00 2026-05-13T19:46:34+00:00

I am still trying to draw a floorplan (in BCB 6). I already asked

  • 0

I am still trying to draw a floorplan (in BCB 6).

I already asked a few questions. As a result of Seeking floorplan design VCL toolbar I bought the TMC components.

Looking for non-rectangular panel VCL component got me close, but not quite there.

So, let’s try again…


Some sort of panel, I guess. With nice thick border lines (walls) are around the edges, maybe 5 or even 10 pixels, so default panels won’t do it.

I can’t just draw lines separately, as they need to resize with the form. So, either I ties lines to panels (owner property) and redraw them … (when? Form resize?, Panel resize?)

Or I can make my own panel component.

In either case, I need to be able to interrupt the lines with openings for doors – or do I add a door component? But then I need to tie that to the panel, in case of form resize.

How best to implement? It doesn’t have to be too fancy, but something like this…

=============================================
|              ||       ||                  |
|              ||       ||                  |
|              ||       ||                  |
|              ||       ||                  |
===   =============   =============    ======
|              ||                           |
|                                           |
|              ||                           |
=============================================

See? multiple doors too; preferably non-rectangular rooms (at least L-shape) and resizable with the form.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:46:35+00:00Added an answer on May 13, 2026 at 7:46 pm

    I don’t know if this is a solution that will fit your scenario, but if I were to design a similar application, I think I would take advantage of the easy nature of extending with new components in the VCL framework. I’d build components for the various graphical elements, door, wall, etc. I’d make a common object that they could inherit from.

    For instance I’d make a TFloorplanElement component that all my graphical components could inherit from, I’d make the TFloorplanElement inherit from TGraphicControl to take advantage of the Anchor property given by TControl, and the Canvas provided by TGraphicControl. I wouldn’t use a custom TPanel for this, I don’t think the overhead of the windows handle provided by TWinControl is needed here.

    For walls I’d make a component inheriting from my TFloorplanElement that is given two endpoints to connect the wall to, this could be either a door on one side and another wall on the other side, or any other combination of TFloorplanElement descendants. You need to have some sort of event handling for when either of these corners are moved, what you need to do in this case simply readjust the coordinates of your wall to the coordinates of the corner element.

    One way you could solve the problem with form resizing, is by using a container control for your TFloorplanElement components, I guess that is what the Diagramming Studio is doing, but if you create a container component (TFloorplanContainer for instance) you could specify position of elements within in percentage, or have a scaling factor that was adjusted when the container was resized. The container ofcourse would be using its anchor properties binding it to the borders of its own container (ie. the form).

    And whenever the container was resized you would redraw the containing elements. As I said to begin with, I’m not sure whether this is a solution that will work for you, or with the diagramming studio you use, but it is one approach I would consider, if I were in your place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

still trying to find where i would use the yield keyword in a real
I'm still trying to decide whether my (home) project should use UTF-8 strings (implemented
I'm still trying to get my head around LINQ and accessing a SQL Database.
I'm still trying to get my head around using Java's generics. I have no
I'm still trying to debug a very sneaky memory corruption problem. I came across
I'm VERY new to WPF, and still trying to wrap my head around binding
I need to test if a file is a shortcut. I'm still trying to
In trying to figure out this problem (which is still unsolved and I still
I'm still working on groking the F# thing - trying to work out how
I'm still pretty new to JSON and GWT and I'm trying to figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.