B4JSnippetB4J
Blur mainform on opening another form
Just like on the web, when a popup pops up and the background page is blurred.
@Daestrum · 2017-12-01
B4JSnippetABMaterial [ABMATERIAL]
MashSubWay [ABMaterial]
MashSubWay [ABMaterial]
@Mashiane · 2017-11-17
B4JSnippetCRC
CRC32
This might be useful to someone - and perhaps there''s a better way?? I knocked this out a while back because I needed to calculate a reliable CRC32. I got the algorithm from somewhere online but I''ve since lost the link :( I wrote it as a class (but it can easily be converted to a code module). Just initialize the class and then call Calc() - passing in the byte array. It will return an INT which is the CRC32. Note: the code is quick when run in Release but in Debug it can run quite slow (depending on the size of the array that the CRC32 is being calculated for) I should also mention that this works equally as well with B4A - not sure about B4i/R as yet. Maybe someone could comment if it works ok for those two IDEs ;)
@Ed Brown · 2017-11-08
B4JSnippetABMaterial [ABMATERIAL]
FileUpload Multipart to original filename [ABMaterial]
FileUpload Multipart to original filename [ABMaterial]
@MichalK73 · 2017-11-08
B4JSnippetABMaterial [ABMATERIAL]
MashChips [ABMaterial]
MashChips [ABMaterial]
@Mashiane · 2017-10-26
B4JSnippetABMaterial [ABMATERIAL]
WindCompass on Canvas Method [ABMaterial]
WindCompass on Canvas Method [ABMaterial]
@MbedAndroid · 2017-10-26
B4JSnippetABMaterial
RainBucket on Canvas Method
RainBucket on Canvas Method
@MbedAndroid · 2017-10-24
B4JSnippetABMaterial [ABMATERIAL]
BarChart [ABMaterial]
BarChart [ABMaterial]
@MbedAndroid · 2017-10-22
B4JSnippetABMaterial [ABMATERIAL]
Canvas based charts [ABMaterial]
Canvas based charts [ABMaterial]
@MbedAndroid · 2017-10-21
B4JSnippetABMaterial [ABMATERIAL]
Thermometer Canvas Method [ABMaterial]
Thermometer Canvas Method [ABMaterial]
@MbedAndroid · 2017-10-21
B4JSnippetB4J
JavaScript Replace with RegEx pattern
Just a bit of language mixing Basic, Java, JavaScript = Example JavaScript Replace with RegEx pattern (Tested with JDK9, B4J v5.9).
@rwblinn · 2017-10-11
B4JSnippetTooltip
Wrap tooltip text
Wrap tooltip text
@stevel05 · 2017-10-06
B4JSnippetExcel
Excel Spreadsheet Example
THINGS THIS DOES: Scaling of pages is set, Headings, Header columns, autoresized columns, auto-wrap column, sorting of spreadsheets in excel file
@Robert Valentino · 2017-09-21
B4JSnippetColour
predefined gimp colors
In B4J unfortunately only a few colors are predefined,for all the people who often work with colors,I have the work done to define the gimp colors for different purposes.
@Knoppi · 2017-09-21
B4JSnippetComms & Network
Get all MAC Addresses on Windows
I need for an app to set a unique database index and computer hardware based. I''ve searched for this info in the Forum and I found the jGetMAC library from @giga and this post from @Erel The jGetMAC library only returns one MAC Address (and I''ve 5 MAC Addresses/interfaces on my windows system) and the returned MAC doesn''t correspond to the Eth interface/nor Wifi interface. So I''ve adapted the @Erel code to display only the interfaces which have MAC Addresses (independently if the interfaces are up/down or have IP address assigned to it).
@inakigarm · 2017-09-18
B4JSnippetOther
Synology Surveillance API
A simple example of working with Synology Surveillance API
@Molchyn · 2017-09-16
B4JSnippetStrings
Measure the password strength
Measure the password strength
@Knoppi · 2017-09-07
B4JSnippetABMaterial [ABMATERIAL]
update translator [ABMaterial]
update translator [ABMaterial]
@MichalK73 · 2017-09-07
B4JSnippetStrings
isLetters - check if string are letters
isLetters - check if string are letters
@Knoppi · 2017-09-04
B4JSnippetStrings
AlphaCountUp - Counts up serialnumbers
This function counts up alphanumeric values. This is necessary, for example, for serial-number generation. You can change the order and chars in your choice with the ''Values'' variable.
@Knoppi · 2017-09-03
B4JSnippetDate/time
Next Reports DateTime Handling
When datetimes are UTC on the server (as they should be), and in the Long type, trying to get the users local time report output was a problem.
@Harris · 2017-08-30
B4JSnippetImages
Grab Windows 10''s pretty lock screen images for your desktop background.
Grab Windows 10''s pretty lock screen images for your desktop background. The Images saved in your local temp Folder
@Knoppi · 2017-08-28
B4JSnippetApp startup
Splash Screen B4J
Simple sub to create a splash screen.
@Erel · 2017-08-07
B4JSnippetTheme
Dark theme - base color
Dark theme - base color
@Erel · 2017-07-25
B4JSnippetStrings
Processing an EDN string
Sample code for reading and traversing an EDN structure. EDN is a more flexible data interchange format, than JSON.
@B4JExplorer · 2017-07-22
B4JSnippetB4J Server
jServer v2.80+ Enabling TLSv1.1
TLS v1.1 is disabled in the latest version of jServer, as it is disabled in the underlying Jetty SDK. It is considered a weak protocol and should be kept disabled in most cases. However if you need to access the server with an old client then you might need to enable it.
@Erel · 2017-07-16
B4JSnippetTabPane
Looking form MDI form?
Looking form MDI form? With a TabPane.
@jroriz · 2017-07-03
B4JSnippetMaths
Math functions
Constants: e = base of the natural logarithm = 2.71828182845905 pi = 3.141592653589793 Trigonometric sin(x); cos(x); tan(x); asin(x); atan(x) Hyperbolic sinh(x); cosh(x); tanh(x) logarithm logn(x); log10(x) Exponential Exp(x) = e raised to x power Other abs(x); sqrt(x); round(x); int(x); frac(x) Operators +; -; *; /; ^ @ = logarithm Number@base Ex.: 10@5
@BeneBarros · 2017-06-27
B4JSnippetFile handling
How to include many files into app without using files manager.
My aim was to include a lot of image files saved in directories in my app. Adding the files with the files manager tab was not of interest, as I had over 400 files. This solution comes from Erel and I am adding it here because its so simple and neat!
@Mark Read · 2017-06-21
B4JSnippetList- and scrollview
ListView based on FXML scene with image download
Dynamically adjust the layout of a listview and re-use the code for different projects.
@notedop · 2017-06-18