A high level command to make PureBasic a bit more of a R.A.D (Rapid Application Development) language, inspired by the CalendarGadget command.
A Tip of the Day, or just Tip Gadget. Many commercial quality programs have a Tip Window that opens up when first ran, with a Show Tips on startup check box on the Window that turns the tip display off, a Close Button, and a Next Tip button, and a graphic image like of a lightbulb or something. Of course this can be hand coded with much lower level language commands but a higher level, rapid way of doing would be cool:
TipGadget (#Gadget, x, y, Width, Height, ImageID, [,NewList Name]
The NewList Name function in the tip gadget randomly selects an element from the list.
Usage:
NewList TipofDay.s()
AddElement(TipofDay()) : TipofDay() = "Did you know you can w..."
AddElement(TipofDay()) : TipofDay() = "Did you know you can x..."
AddElement(TipofDay()) : TipofDay() = "Did you know you can y..."
AddElement(TipofDay()) : TipofDay() = "Did you know you can z..."
LoadImage(0, "lightbulb.bmp")
TipGadget (1, 200, 200, 300, 200, UseImage(0), TipofDay)