Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
heheheheh..... powerbasic forum cracks me up
#37
Quote:Tested, a window with a button is 27 Kb in VB6.

The built in functions are slow, yeah. But nothing stops you from using raw API calls. At least VB has built-in functions, unlike PBWin.

And the runtime... Well, that sucks, but note that you just need it once.

VB is the way to go for GUI coding.

Ok, i had VB5 standart for testing and that created such huge thingys.
The other thing i dont like is the three class society that MICROS~1 i is making there. Standard, Profesional and Enterprise.

> But nothing stops you from using raw API calls.

Yeah, but that destroys the idea behind the FormCreator.
Why cant the Formcreator just create code that makes direct calls to gdi32?

>VB is the way to go for GUI coding.

Seriously not, when it comes to GUI ill stick with BCX unless FreeBASIC get some EZ-GUI Commands(Wich are just wrappers to GDI Api and not some obscure libary).

Typical BCX Programm:
Code:
GUI "Test",PIXELS

DIM Form1 AS CONTROL
DIM Btn1 AS CONTROL
CONST ID_Btn1 = 101

SUB FormLoad
  Form1 = BCX_FORM("Hallo Welt!!!",0,0,640,480)
  Btn1 = BCX_BUTTON("KLICK MICH!",Form1,ID_Btn1,10,10,80,30)

  Center(Form1)
  Show(Form1)
END SUB

BEGIN EVENTS
  SELECT CASE cbmsg
      CASE WM_CLOSE
        PostQuitMessage(0)
      CASE WM_COMMAND
        IF cbctl = ID_Btn1 THEN MsgBox "Ueberraschung!!!"
  END SELECT
END EVENTS

And you cant tell me that a Formeditor can not create something like this...
BTW:
This is, for example BCX_Form:
Code:
HWND BCX_Form
(char *Caption,
int X,
int Y,
int W,
int H,
int Style,
int Exstyle)
{
   HWND  A;
   if(!Style)
     {
        Style= WS_MINIMIZEBOX  |
        WS_SIZEBOX      |
        WS_CAPTION      |
        WS_MAXIMIZEBOX  |
        WS_POPUP        |
        WS_SYSMENU;
     }
   A = CreateWindowEx(Exstyle,BCX_ClassName,Caption,
   Style,
   X*BCX_ScaleX,
   Y*BCX_ScaleY,
   (4+W)*BCX_ScaleX,
   (12+H)*BCX_ScaleY,
   NULL,(HMENU)NULL,BCX_hInstance,NULL);
   SendMessage(A,(UINT)WM_SETFONT,(WPARAM)GetStockObject
   (DEFAULT_GUI_FONT),(LPARAM)MAKELPARAM(FALSE,0));
   return A;
}

As i said, just a wrap to the normal GDI routine.

So Long, The Werelion!
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply


Messages In This Thread
heheheheh..... powerbasic forum cracks me up - by BastetFurry - 02-15-2005, 02:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)