From: | John Mason |
Date: | 28 May 2001 at 02:14:53 |
Subject: | MUI question |
Hi all,
I'm writing a small MUI program, and I'm having problems with a RGB
selector function I've written. I'm just trying to open a second MUI
window with a colouradjust object in it for choosing a colour. For some
reason though, I'm getting a "GURU! CHK Instruction" error on the
MUIOpenWindow line. Can anyone see what I might be doing wrong? The same
thing happens if I take the code out of this function and just try to run
it on its own.
========
Function getrgb{defred.l, defgrn.l, defblue.l}
#GRGB_WIN = 50
#GRGB_GRP = 51
#GRGB_COLR = 52
MUINewObject #GRGB_COLR, "coloradjust.mui", 0
MUIAddObjVGroup #GRGB_GRP, #GRGB_COLR
MUICreateVGroup #GRGB_GRP
MUICreateWindow #GRGB_WIN, "Select a colour", "RGBWIN", #GRGB_GRP
MUIAddSubWindow #GRGB_WIN
MUINotify #GRGB_WIN,#MUIA_Window_CloseRequest,1,#MUI_APP,#MUIM_Application_ReturnID,#MUIV_Application_ReturnID_Quit
MUIOpenWindow #GRGB_WIN
ev.l = MUIWaitEvent
MUICloseWindow #GRGB_WIN
End Function
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie