Ooops
October 16, 2021, 05:42:21

Author Topic: Need some help!  (Read 1632 times)

Offline Caton

  • Jr. Member
  • **
  • Posts: 1
Need some help!
« on: August 02, 2017, 21:55:03 »
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()
« Last Edit: August 03, 2017, 00:10:00 by Caton »

Offline col

  • Hero Member
  • *****
  • Posts: 597
Re: Need some help!
« Reply #1 on: August 08, 2017, 07:26:59 »
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.

Offline cpsmith0191

  • Jr. Member
  • **
  • Posts: 73
    • caroleandcarl
Re: Need some help!
« Reply #2 on: August 18, 2017, 01:16:15 »
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
« Last Edit: August 18, 2017, 02:03:18 by cpsmith0191 »

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal