@IdeasVacuum
As you said it so well in your signature, I will keep it simple, and try to remember the terms created by the PureBasic Team.
But there is something "worse" than that.
Some commands, like to move a window or a gadget, you should'nt search near the Move term, because it's ResizeWindow() and ResizeGadget()! I wasted once some hours finding it, and had to ask the forum... I'm sure many others had the same problem. I believe MoveWindow() once existed before, but the PB-Team removed it (a pity, but they must have their reasons).
If you want to disable a gadget, you will use DisableGadget(). So far, no problem. But how will you re-enable it? Logigally, you will search the Help file for EnableGadget()... Well no, that does not exists... Because.... it is DisableGadget() too! Of course with State 0. Ambiguous, isn't it? Hilarous to say that, if you want to show a gadget, you must use HideGadget()
When a programmer is writing a program, he/she is re-reading it many times. Then it must be very clear, with appropriate, self-explaining terms. For this reason, I have written procedures (not macros) MoveGadget() and EnableGadget() to avoid confusion.....
Code: Select all
Procedure.i MoveWindow(WinNo, x, y, Width, Height)
R.i = ResizeWindow(WinNo, x, y, Width, Height)
ProcedureReturn R
EndProcedure
Procedure.i MoveGadget(GadNo, x, y, Width, Height)
R.i = ResizeGadget(GadNo, x, y, Width, Height)
ProcedureReturn R
EndProcedure
Procedure.i EnableGadget(GadNo)
R.i = DisableGadget(GadNo, 0)
ProcedureReturn R
EndProcedure
Procedure.i EnableWindow(WinNo)
R.i = DisableGadget(WinNo, 0)
ProcedureReturn R
EndProcedure
Sorry for going off-topic....
Richard