Hi!
When you are writing a gadget declaration, would be nice if only show the constants valids for that gadget.
Example:
If you start to write: "#PB" in the second parameter of: "SetGadgetColor(#Gadget, ColorType, Color)" I expect to get only these:
#PB_Gadget_FrontColor
#PB_Gadget_BackColor
#PB_Gadget_LineColor
#PB_Gadget_TitleFrontColor
#PB_Gadget_TitleBackColor
#PB_Gadget_GrayTextColor
This would be a huge time saver to users like me with poor memory because they must be looking at the help over and over again.
Thanks!
Better autocompletion constants...
Re: Better autocompletion constants...
Good idea! But this would only be possible for built-in constants (not custom ones). Still, that's not a major issue.
And not just for gadgets, but for windows: OpenWindow(win,x,y,w,h,title$,auto-complete-flags-go-here).
And for whatever other commands use built-in constants.
And not just for gadgets, but for windows: OpenWindow(win,x,y,w,h,title$,auto-complete-flags-go-here).
And for whatever other commands use built-in constants.
Re: Better autocompletion constants...
Excellent idea, this can be possible for user constants too:
Code: Select all
Enumeration MyMetricsConstants
#MILLIMITER
#CENTIMETER
#DECIMETER
#METER
EndEnumeration
Procedure ConvertMilesToMetric(Distance.d, unit.MyMetricsConstants)
;smart code here
EndProcedure
Re: Better autocompletion constants...
Good idea, it would be really useful and a big time saver.
It could also be for Set(Get)GadgetAttribute, GadgetState,... <-- edit: I wrote without reading it all, it is already written by BarryG, above
It could also be for Set(Get)GadgetAttribute, GadgetState,... <-- edit: I wrote without reading it all, it is already written by BarryG, above