Codesnippets > Userlibs [ *.gbal]

CocoaTouch

(1/8) > >>

trucidare:
Here some Impressions of my work...

--- Code: (glbasic) ---// --------------------------------- //
// Project: TryTest
// Start: Monday, August 10, 2009
// IDE Version: 7.073

REQUIRE "network.mm"

// Create new Popup
IMPORT "C" void GlbPopup(const char* title, const char* text, const char* firstButton, const char* secondButton);
// Get Pressed ButtonIndex (1,2)
IMPORT "C" int GetPopupState();
// CreateTextField
IMPORT "C" int GlbInitGUI();
// Create Button
IMPORT "C" void GlbButton(const char* caption, int x, int y, int dx, int dy);
// Check Button Action
IMPORT "C" int GetPressState(const char* button);

GlbInitGUI();

GlbPopup("Message...","This message was created with GLBasic \n One Line \n ;)","Cancel","Ok")


WHILE TRUE
Ret = GetPopupState()
IF Ret = 1 THEN foo("Cancel")
IF Ret = 2 THEN foo("OK")



SHOWSCREEN
WEND

FUNCTION foo: muh$
GlbButton(muh$,110,240,100,30);
WHILE TRUE
IF GetPressState(muh$)

ENDIF
SHOWSCREEN
WEND
ENDFUNCTION

--- End code ---





[attachment deleted by admin]

Kitty Hello:
Awesome.

trucidare:
Hardwork, but easy to set up a new Window. Didnt use GLBASIC_HWND().

Schranz0r:
N1

Uncle:
Cool, Cool, Cool :)

Navigation

[0] Message Index

[#] Next page

Go to full version