Need some help!

Started by Caton, August 02, 2017, 21:55:03

Previous topic - Next topic

Caton

Import MaxGui.Drivers
Init_App()
While True
If PeekEvent()
PollEvent()
Select EventID()
Case EVENT_WINDOWCLOSE, EVENT_APPTERMINATE
End_App()
Case EVENT_TIMERTICK
RedrawGadget(canvas)
Case EVENT_GADGETPAINT
Cls
if mousehit(1) then draw_new_object(0,MouseX(),MouseY())
Draw_App()
Flip(vsync)
Case EVENT_MOUSEDOWN
End Select
EndIf

Update_App()
Wend
End_App()

col

Clearly this is not the way to ask for help.

It would be more helpful for others that are willing to help you if explain what the actual problem is. For a start you have function calls that I doubt anyone will know of, or know what they are actually doing. Try explaining, with the greatest of details, what is not working as you expect it to and also what have you already tried to fix the problem.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

cpsmith0191

#2
A shot in the dark (or dimly lit recesses of your code) assuming Init_App refers to a method 'Init' in a declared instance a type.
I'd access methods in a type by using the name of the instance of that type before the function etc
IE Having declared an instance of a type 'Mytype' called 'fun' with a function 'havesome' would be called by   fun.havesome()
I'm assuming you have a line somewhere that looks like   canvas=CreateCanvas(1,1,409,409,W2)     in your declarations.
Like I said a shot in the dark, have fun cps