Search found 6 matches

by MarkOtt
Thu Sep 12, 2019 10:25 am
Forum: Coding Questions
Topic: How to include images in Apps?
Replies: 4
Views: 4861

Re: How to include images in Apps?

And here is a short working example showing the current time and a small image: Enumeration #mf #mfFont #mfTime #image1 #image2 EndEnumeration Declare Start() Declare ShowTime() ;No debug window CloseDebugOutput() ; Include Images as URL ; logo.png 48x48 1.34 KB Image1url.s = "" Image1url ...
by MarkOtt
Fri Nov 03, 2017 11:02 am
Forum: Showcase
Topic: PDF generator (jsPDF)
Replies: 22
Views: 28296

Re: PDF generator (jsPDF)

Peter, thank you very much, this works very well. Here is another example showing the generated PDF in a WebGadget. It works very well in Firefox, but not in IE, Edge, Chrome. It seems that blob and string data of doc.output() works in Firefox only. Or am I overseeing something? Procedure CloseWindo...
by MarkOtt
Wed Nov 01, 2017 8:46 am
Forum: Showcase
Topic: PDF generator (jsPDF)
Replies: 22
Views: 28296

Re: PDF generator (jsPDF)

The actual jsPDF version 1.3 does not work with Spiderbasic 2.2 The last working version i found is jsPDF 1.2.61 , but it displays images with poor quality. It can be found at: https://github.com/MrRio/jsPDF/releases For online linking at: https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.de...
by MarkOtt
Thu Oct 19, 2017 1:54 pm
Forum: Coding Questions
Topic: MessageRequester
Replies: 2
Views: 1619

Re: MessageRequester

You can use alert() und prompt() from Javascript. These two functions emulate MessageRequester() and InputRequester() similar to PureBasic: ;MessageRequester, returns true or false like in PureBasic Procedure MessageRequester(Title$, Text$, Flags.l = 0) RequesterText.s = Title$ + Chr(10) + Chr(10) +...
by MarkOtt
Fri Sep 22, 2017 2:18 pm
Forum: Tricks 'n' Tips
Topic: Formatting the ToolTip of Gadgets and ToolBar
Replies: 0
Views: 2075

Formatting the ToolTip of Gadgets and ToolBar

By default the ToolTip arises on the right side of a gadget what might be disturbing if the buttons are located side by side. Manipulating the "position" parameter of the dijit.Tooltip can help. For Gadgets, eg. a ButtonImageGadget: ButtonImageGadget(#GadgetButtonRefresh, 420, 9, 24, 24, I...
by MarkOtt
Fri Sep 22, 2017 10:06 am
Forum: Tricks 'n' Tips
Topic: Formatting the SpinGadget
Replies: 0
Views: 2069

Formatting the SpinGadget

If displaying a year like 1963 in a SpinGadget it is formatted by default as 1.963 using a point as thousand separator what is not so nice for a year number. The display of a SpinGadget can be formatted as follows by manipulating the "constraints" attributes: SpinGadget(#SpinGadgetYear, 70...