BlockList

Started by Fred Tomke, August 14, 2007, 06:42:21 AM

Previous topic - Next topic

Fred Tomke

Hello,

I have a database. In this database the user can change the display style of a line, a polygon or a point (GIS). The preview of the object's style is stored in a DWG-file (like as a block). Whenever the user selects a catalog of objects, the form shall show the list and the previews of the objects.
Up to now I use DWG preview control. But there's one disadvantage: the maximum number of previews is 9 in any way. But now the user wants to scale the dialog, so more objects will be shown in the form. I'd like to use blocklist control but it does only show block definition of the current drawing. It would be nice to handle it as a listview with an addlist method, which contains dwg-files and a userdefined description (not the dwg-filename).

Is it possible with the current release?

Regards, Fred

[attachment deleted by admin]
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

jb

How about substituting the dwgview control with the blockview control?  Or maybe have a seperate modeless dialog that is a "preview" type form: When the user picks the preview button the preview form is loaded, the blockview control displays the currently active dwgpreview.  When the user changes dwgpreview the blockview changes.  Make the "preview" form sizable . . ..

James Buzbee
Managing Memeber
Black Horse Development, LLC

Fred Tomke

Hi,

thank you for your suggestion. But I need something different:
Please imagine a listview control, not as a report styled list but with (very) large icons.
If this control is placed on a resizable form and you resize the form, more and more icons will be shown. If the icons wouldn't be real icons but dwg previews that I have that will come closer to what I need.
In one sentence: In a listview shall be shown no icons but several dwg previews. I thought blocklist could could help but in my understanding it only presents internal block definitions of the current drawing.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

Have you played with the DwgList control?
I think it still needs some work, but maybe it can do what you're looking for.
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Fred Tomke

Hi,

DWGList control comes very close to that what I want. But I have some questions:

1. The BackColor is black, even after (dcl_Control_SetForeColor dwg_dwg_dwg
newValue [as Long]) (it was the only property with color settings). How to change to white?

2. I defined a RowHeight. After resizing the rowheight change to 120 again. How to keep my settings?

3. The description is always the filename. Can I change the description?

4. May I add a tooltip to each entry (like in OptionList)?

and most important:
5. With (dcl_DwgList_Dir dwg_dwg_dwg sDirectory [as String]) I can define a directory with the previews. In this case there is one directory with all the previews. Calling a group of objects from database, only some previews shall be shown. It would be glad do have an addlist method beside the dir property.

Regards,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

jb

The only other option would be to build a form in the editor at a "maximum" size with the complete number of dwgpreview controls, then use the form resize event and form dimension properties to show / hide additional dwgpreview controls as neccessary.  Messy, but doable.
James Buzbee
Managing Memeber
Black Horse Development, LLC

Fred Tomke

Yes, jb, that's the way I feared for.
I have to choose now.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]