domethod(ca,[MUIM_Notify, MUIA_Pressed, MUI_TRUE, MUIV_Notify_Self,2,MUIM_CallHook,get_colHook])
DEF get_colHook:hook
PROC get_col()
get(ca,MUIA_Coloradjust_RGB,[col])
StringF(rgb,'zh[8]',col)
set(str_hex, MUIA_String_Contents, rgb)
set(str_dec, MUIA_String_Contents, rgb)
WriteF(rgb, 'dn')
ENDPROC
installhook(get_colHook, {get_col})
domethod(ca,[MUIM_Notify, MUIA_Pressed, MUI_TRUE, MUIV_Notify_Self,2,MUIM_CallHook,get_colHook])
DEF get_colHook:hook
PROC get_col()
get(ca,MUIA_Coloradjust_RGB,[col])
StringF(rgb,'zh[8]',col)
set(str_hex, MUIA_String_Contents, rgb)
set(str_dec, MUIA_String_Contents, rgb)
WriteF(rgb, 'dn')
ENDPROC
installhook(get_colHook, {get_col})
get(ca,MUIA_Coloradjust_RGB,[col])
get(ca,MUIA_Coloradjust_RGB,{col})
domethod(ca, [MUIM_Notify, MUIA_ColorAdjust_RGB, MUIV_EveryTime, MUIV_Notify_Self, 2, MUIM_CallHook, get_colHook])
domethod(ca, [MUIM_Notify, MUIA_ColorAdjust_RGB, MUIV_EveryTime, MUIV_Notify_Self, 2, MUIM_CallHook, get_colHook])
DoMethod(app, MUIM_Application_Run)
OPT PREPROCESS, STACK = 32678 -> SEHR WICHTIG! Sonst gibts Hits, wenn AboutMUI oder meine AboutBox offen war!!!
OPT EXENAME = 'ofdbMUI'
MODULE '*mods/myApp' -> APP_NAME, APP_AUTHOR, APP_VER
MODULE 'dos/dos', 'dos/rdargs'
MODULE 'muimaster', 'new/muimaster'
MODULE 'utility/tagitem', 'amigalib/boopsi' -> for doSuperMethodA
-> my own public modules
MODULE 'libMUI', 'mccSupport', 'muiSupport'
MODULE 'myDebug', 'ezRequester'
MODULE '*mods/lstMovies_mcc', '*mods/winMain_mcc', '*mods/app_mcc'
-> shell args stuff
#define ARGS_TEMPLATE 'E-Source/M,VERBOSE/S'
OBJECT myArgs
srcs: PTR TO LONG -> the source file(s)
verbose
ENDOBJECT
VERBOSE MACRO IF args.verbose = DOSTRUE THEN 1
DEF
rda = NIL: PTR TO rdargs, args: PTR TO myArgs
PROC main() HANDLE
DEF app=NIL
NEW args
IFN rda := ReadArgs(ARGS_TEMPLATE, args, NIL) THEN Raise("ARGS")
OpenMuiMasterLib()
InitClasses 3
AddNewClass MyApp
AddNewClass WinMain
AddNewClass LstMovies
IF ClassesSetup()
app := MyAppObject, End
IFN app THEN Raise("APP")
set(winMain, MUIA_Window_Open, MUI_TRUE)
DoMethod(app, MUIM_Application_Run)
set(winMain, MUIA_Window_Open, FALSE)
ELSE
PrintF('ClassesSetup() failed!!!n')
ENDIF
EXCEPT DO
SELECT exception
CASE "ARGS"; DOSError(NIL)
CASE "APP" ; PrintF('ERROR: Failed to create Application!n')
ENDSELECT
IF rda THEN FreeArgs(rda)
END args
IF app THEN MUI_DisposeObject(app)
ClassesCleanup()
CloseMuiMasterLib()
ENDPROC
OPT MODULE, MODNAME='myApp'
OPT PREPROCESS, EXPORT
MODULE 'utility/tagitem', 'intuition/classes', 'workbench/workbench'
MODULE 'libMUI', 'mccSupport', 'muiSupport'
CONST MUISN_IGRACKI = <put your own mui serial here!>
CONST TAGBASE_IGRACKI = TAG_USER OR (MUISN_IGRACKI SHL 16)
-> change these 3 defines
#define APP_VER '1.0'
#define APP_NAME 'ofdbMUI' -> CHANGEME
#define APP_AUTHOR 'Thomas Igracki' -> CHANGEME
#define APP_VERSION '$VER: ' + APP_NAME + '_' + __TARGET__ + ' ' + APP_VER + ' ' + __AMIGADATE__ + ' by ' + APP_AUTHOR + '