Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 27 MAR 2002 05:49:35PM Roman wrote:

Is there a way to draw a line on a form either in

design or run time?

Thanks,

Roman


At 27 MAR 2002 07:29PM Don Miller - C3 Inc. wrote:

Roman ..

The quick answer is "NO". There is no draw tool available in Form Designer. That said, you can use one or more alternatives:

1. Make a collapsed group box .. this will resemble a line. You can change its color, font, etc. This is a static control so you can paste it around to your heart's content. You can also make it come and go at will, too.

2. You can make a .BMP image and then stretch & resize it. This is useful for more complex objects (tabs, etc.).

HTH

Don Miller

C3 Inc.


At 27 MAR 2002 09:42PM Donald Bakke wrote:

Roman,

If you are very ambitious and want the most control you can delve into the WinAPI functions that deal with GDI objects.

[email protected]

SRP Computer Solutions, Inc.


At 27 MAR 2002 11:04PM Oystein Reigem wrote:

Roman,

It might help if you tell what you need the lines for. E.g, if you want your app to draw diagrams there might be a component you could plug in with Tony Splaver's OIWAM.

GDI (as Don B suggests) was my first thought. You can do anything, but it might come at a price. Do a search for GDI and Sprezzatura. I have used GDI myself, but only for text, not graphics.

If all you need are a few horizontal and vertical lines you could do worse than trying Don M's suggestion of using resized bitmaps or statics.

- Oystein -


At 28 MAR 2002 06:32AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:

"but it might come at a price" - I think you'll find that out current charge out rates are extremely competitive - especially in longer blocks . (I'm sure that's not what you meant really - thanks for the pointer to our previous stuff).

As you point out, GDI may be accessed directly, in fact that's how we do our auto-resizing multi-lingual tab controls in one of our applications (tabs resize based upon size of word in language).

One little trick on the group box line idea - if you find that the best you can get is a thin double[/b] line by squashing up a group box, set your preference for spacing to 4,4 not 5,5. This will allow you to get down to a single line. As an aside it will also help with getting better edit table positioning because the edittable works internally in multiples of 4.

The Sprezzatura Group

World Leaders in all things RevSoft


At 28 MAR 2002 04:28PM Pat McNerthney wrote:

]]]As an aside it will also help with getting better edit table positioning because the edittable works internally in multiples of 4.«<

I believe I eliminated this in OI32 and EditTable now properly handles individual pixel counts. Let me know if this is not the case.

Pat


At 28 MAR 2002 05:28PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:

Thanks Pat not something we even thought to test!

The Sprezzatura Group

World Leaders in all things RevSoft


At 05 APR 2002 10:58AM Colin Rule wrote:

Yes there is.

We have an application that uses a digitiser interface, and we draw the object trace on the screen.

Basically the Windows API DLL calls to GDI allow this.

The following is the DLL registration in SYSPROCS.

Thee are issues such as refresh and scaling to worry about but they are not insurmountable.

If you need any more info Email me at [email protected]

Colin Rule

GDI

USHORT PASCAL CreatePen(USHORT,USHORT,LONG)

USHORT PASCAL DeleteObject(USHORT)

LONG PASCAL GetBkColor(USHORT)

USHORT PASCAL LineTo(USHORT,SHORT,SHORT)

LONG PASCAL MoveTo(USHORT,SHORT,SHORT)

USHORT PASCAL SelectObject(USHORT,USHORT)

LONG PASCAL SetBkColor(USHORT,LONG)

LONG PASCAL SetTextColor(USHORT,LONG)

USHORT PASCAL TextOut(USHORT,SHORT,SHORT,LPCHAR,USHORT)

LONG PASCAL GetTextExtent(USHORT,LPCHAR,USHORT)

USHORT PASCAL Rectangle(USHORT,USHORT,USHORT,USHORT,USHORT)

USHORT PASCAL GetMapMode(USHORT)

USHORT PASCAL SetMapMode(USHORT,USHORT)

USHORT PASCAL GetStockObject(USHORT)

USHORT PASCAL GetTextExtentPoint(USHORT,LPCHAR,USHORT,LPCHAR)

USHORT PASCAL CreateFontIndirect(LPCHAR)

USHORT PASCAL GetTextMetrics(USHORT,LPCHAR)

USHORT PASCAL GetDeviceCaps(USHORT,USHORT)

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c2f9f057ef7e5c6288256b890077e596.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1