Any visual design type source available?

Working on new editor enhancements?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Any visual design type source available?

Post by Dare2 »

Does anyone know if there is any visual design type source available anywhere?

I am mainly interested in the front-end (the user interface, drawing gadgets, form layout and so on) as I would be applying my own methods of integrating into a program.

Basically, I am lazy and the user interface or layout represents a lot of fiddly work which I would prefer to avoid. :) It is how that interface is translated into a usable program that I want to deal with.

I live in hope, and many thanks to anyone who realises that hope!
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Thanks. :lol:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Dare2 wrote:Thanks. :lol:
No problem, it's the source where i started with ;)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

:twisted:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Dare2 wrote:Thanks. :lol:
To bad it's full of bugs :twisted:
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Theres a reasonable-ish start to one in, coded in BCX. Full of gadgety things. :)

However, But, Str and Chk is a good start as well. :lol:
Sven
User
User
Posts: 20
Joined: Sat Mar 11, 2006 6:46 pm

Post by Sven »

@Berikco

Can you post the link to the old Visual Designer source again, please? I need the possibility for moving and sizing some gadgets with mouse by my own but have no idea how to start.

It's not another VD project ;-)

Sven
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Fred wrote::twisted:
Did I loose focus? What does Fred do with the twisted evil?
(To be honest, I am a bit scared, Fred could kill me :shock: )
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Sven wrote:@Berikco

Can you post the link to the old Visual Designer source again, please? I need the possibility for moving and sizing some gadgets with mouse by my own but have no idea how to start.

It's not another VD project ;-)

Sven

Code: Select all

OpenWindow(0, 0, 0, 640, 480, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
ButtonGadget(0, 10, 10, 97, 25, "Drag me!")

Define Dragging
Define Relative.POINT

Repeat
  Select WaitWindowEvent()
    Case #WM_LBUTTONDOWN
      If WindowMouseX(0) > GadgetX(0) And WindowMouseY(0) > GadgetY(0)
        If WindowMouseX(0) < (GadgetX(0)+GadgetWidth(0)) And WindowMouseY(0) < (GadgetY(0)+GadgetHeight(0))
          SetGadgetText(0, "Dragging...")
          Dragging = 1
          Relative\x = WindowMouseX(0) - GadgetX(0)
          Relative\y = WindowMouseY(0) - GadgetY(0)
          GetClientRect_(WindowID(0), @Rect.RECT)
          Rect\top + WindowY(0) + GetSystemMetrics_(#SM_CYCAPTION) + GetSystemMetrics_(#SM_CXDLGFRAME)
          Rect\left + WindowX(0) + GetSystemMetrics_(#SM_CXDLGFRAME)
          Rect\bottom + Rect\top
          Rect\right + Rect\left
          ClipCursor_(@Rect)
        EndIf
      EndIf
    Case #WM_MOUSEMOVE
      If Dragging
        ResizeGadget(0, WindowMouseX(0) - Relative\x, WindowMouseY(0) - Relative\y, #PB_Ignore, #PB_Ignore)
      EndIf
    Case #PB_Event_Gadget
      Select EventGadget()
        Case 0
          Dragging = 0
          ClipCursor_(0)
          SetGadgetText(0, "Drag me!")
      EndSelect
    Case #PB_Event_CloseWindow
      Break
  EndSelect
ForEver
Post Reply