Results 1 to 8 of 8

Thread: Drawing Delphi components?

  1. #1

    Drawing Delphi components?

    Is it possible to draw Delphi components and forms using Asphyre? I'm looking for some shortcuts to help build the (complex) interface for my strategy game. And I'm open to any other suggestions on the matter, anything to make the task easier and faster.

  2. #2

    Drawing Delphi components?

    You can't use regular VCL interfaces in Direct3D-based applications. However, the good news is that AsphyreGUI is VCL-like set of components and visual designer to make VCL-like interfaces in Asphyre. It is still under development and will be included in the release of Asphyre eXtreme (no exact release date, but is scheduled to be ready before December 2005).

    You can see AsphyreGUI in action in JawBreaker game posted by 2morrowman on Afterwarp forums.
    Check it out here:
    http://www.afterwarp.com/forum/showthread.php?t=28

    P.S. Since AsphyreGUI is considerably different from the version used in JawBreaker, here's a small application that shows few windows using new AsphyreGUI (frame-rate is limited to 100 FPS max using new TAsphyreTimer):
    http://www.afterwarp.com/downloads/new-asphyregui.zip

  3. #3

    Drawing Delphi components?

    Set of VCL-like components AND visual designer you say? That's enough excitement to really get me going on this project! I'll be looking forward to that then in the coming month.

  4. #4

    Drawing Delphi components?

    I've never used Asphyre, but if you really need to draw a component to a surface you probably could use the components Paint() function.

    eg: Button1.PaintTo(TheSurface.Canvas,50,50);

    To make the button work like normal, just do a simple box collision with the mouse position, and call the buttons onClick event, or whetever you need.
    Not a real professional way of doing things, but just an idea.

  5. #5

    Drawing Delphi components?

    Thanks, I'll keep that handy but I'll avoid doing so for now.

  6. #6

    Drawing Delphi components?

    Since many people requested this, we've published some unofficial version of Asphyre Pro 1.1.2 which includes experimental version of AsphyreGUI.
    Use at your own risk, or wait for Asphyre eXtreme

    Visit http://www.afterwarp.com for more information.

  7. #7

  8. #8

    Drawing Delphi components?

    FYI:
    http://www.afterwarp.net/forum/thread793.html

    We plan to transition our game from unDelphiX to Asphyre but not yet, so if you find out anything useful, please share.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •