Problem with Quit
Posted: Thu Jun 14, 2012 10:11 pm
Hello,
I have a program that runs in the taskbar and opens an dialog window when needed. When this window is open and I logoff on my terminalserver, I get the message
Error BASE/1025
Parameter has a wrong data type
Quit
DC_GETLIST:EVENTLOOP(44449)
...
This is my code for the taskbar menu:
I use vers 256
regards
Rudolf
I have a program that runs in the taskbar and opens an dialog window when needed. When this window is open and I logoff on my terminalserver, I get the message
Error BASE/1025
Parameter has a wrong data type
Quit
DC_GETLIST:EVENTLOOP(44449)
...
This is my code for the taskbar menu:
Code: Select all
LOCAL GetList[0], oMenu, aRef[2],oMenu1,oMenu2,oMenu3,oMenu4,oMenu5,oMenu6
//return .t.
if valtype(oTaskBar) = "O"
piep(1)
return .f.
endif
oTaskBar := TaskBarIcon():New( xbeP_User + 30 ):Create()
oTaskBar:AddIcon( 1, ICON_APP , "CT-PEN FormCommander" + Chr(13) + 'Rechts Click für das Menü' )
oFCSys:lStatTaskbar := .t.
DCSUBMENU oMenu PROMPT lmessage(1836,"Taskbar Menü") PARENT oTaskBar BARTEXT "FormCommander" OWNERDRAW BGCOLOR MENU_BARCOLOR BARFONT "10.Arial"
*
DCMENUITEM 'FormCommander' PARENT oMenu ACTION {||Thread():new():start({||formcommander()})} BITMAP addpath(al_path,"\img\notes.gif") when
DCREAD GUI PARENT oTaskBar EVAL {||aRef[1] := oMenu, aRef[2] := oTaskBar,formcommander()} HANDLER taskBarHandler REFERENCE @aRef
RETURN nil
regards
Rudolf