updated for Eric

This commit is contained in:
memson
2002-04-02 20:42:15 +00:00
parent 51c4805cd6
commit 7a1d596bdb
4 changed files with 29 additions and 8 deletions

View File

@@ -1,13 +1,11 @@
unit BeGUI; unit BeGUI;
{ {
$Header: /home/haiku/befpc/begui/begui/imports/pascal/begui.pas,v 1.2 2002-04-02 20:42:15 memson Exp $
$Header $ $Revision: 1.2 $
$Revision $
$Log $
$Log: not supported by cvs2svn $
} }
interface interface
@@ -20,12 +18,15 @@ type
MPanelH = pointer; MPanelH = pointer;
MMemoH = pointer; MMemoH = pointer;
MMenuBarH = pointer;
MMenuItemH = pointer;
MMenuH = pointer;
uint32 = longword; uint32 = longword;
int32 = longint; int32 = longint;
var var
Application: MApplicationH; Application: MApplicationH;
type type
base_Message = procedure (sender:pointer; msg:uint32);cdecl; base_Message = procedure (sender:pointer; msg:uint32);cdecl;
@@ -40,6 +41,19 @@ const
{$PACKRECORDS C} {$PACKRECORDS C}
{ MenuBar}
// Jourde 01/04/2002 : add menu and menuitems
function BMenuBar_Create( form : MFormh ; caption : pchar) : MMenuBarH; cdecl; external BEGUILIB;
function MMenuItem_Create(caption : pchar): MMenuItemh;cdecl; external BEGUILIB;
function BMenu_Create(caption : Pchar):MmenuH ;cdecl; external BEGUILIB;
procedure BMenuBar_AddItem( menuBar : MMenuBarH; Menu : MMenuH);cdecl; external BEGUILIB;
procedure BMenu_AddItem(Menu : MMenuBarH; item : MMenuItemH );cdecl; external BEGUILIB;
procedure MMenuItem_AttachMenuClickDispatcher(Menu: MMenuItemH; msg: mouseAction_Message);cdecl; external BEGUILIB;
function MApplication_Create: MApplicationH; cdecl; external BEGUILIB; function MApplication_Create: MApplicationH; cdecl; external BEGUILIB;

View File

@@ -1,3 +1,4 @@
fpc testapp.pas -Fu.. -Fl.. fpc testapp.pas -Fu.. -Fl..
fpc testapp3.pas -Fu.. -Fl.. fpc testapp3.pas -Fu.. -Fl..
fpc testapp4.pas -Fu.. -Fl..
rm *.o rm *.o

View File

@@ -1,9 +1,13 @@
/* /*
$Header: /home/haiku/befpc/begui/begui/libbegui/BeGuiAPI.cpp,v 1.1.1.1 2002-03-31 10:36:07 memson Exp $ $Header: /home/haiku/befpc/begui/begui/libbegui/BeGuiAPI.cpp,v 1.2 2002-04-02 20:42:15 memson Exp $
$Revision: 1.1.1.1 $ $Revision: 1.2 $
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.1.1.1 2002/03/31 10:36:07 memson
initial import into sourceforge
Revision 1.20 2002/03/28 08:41:02 memson Revision 1.20 2002/03/28 08:41:02 memson
Commited to main tree by the above on behalf of : Commited to main tree by the above on behalf of :
@@ -361,7 +365,9 @@ char* MEdit_getText(MEdit* edt){
} }
void MEdit_setText(MEdit* edt, char* text){ void MEdit_setText(MEdit* edt, char* text){
edt->LockLooper();
edt->SetText(text); edt->SetText(text);
edt->UnlockLooper();
} }
/// ///

Binary file not shown.