Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Categoria: Programmazione

Digital Innovation Partner

Delphi VCL highlights word in visual components programmatically

Highlights word in a RichView component programmatically:   uses Winapi.RichEdit; procedure SetTextColor(oRichEdit : TRichEdit; sText : String; rAttributes : TTextAttributes); var iPos : Integer; iLen : Integer; Format: CHARFORMAT2; begin FillChar(Format, SizeOf(Format), 0); Format.cbSize := SizeOf(Format); Format.dwMask := CFM_BACKCOLOR; Format.crBackColor := rAttributes.BackColor; iPos := 0; iLen := Length(oRichEdit.Lines.Text) ; iPos := oRichEdit.FindText(sText, iPos, iLen, []);…
Leggi tutto

Subversion over Ubuntu Server 20.04

Configure svn server over Apache2, using https. sudo apt update sudo apt upgrade   sudo apt-get install apache2 sudo apt-get install subversion libapache2-mod-svn subversion-tools libsvn-dev sudo a2enmod dav dav_svn sudo service apache2 restart sudo mkdir -p /var/lib/svn/ sudo svnadmin create /var/lib/svn/apprepo sudo chown -R www-data:www-data /var/lib/svn sudo chmod -R 775 /var/lib/svn sudo touch /etc/apache2/dav_svn.passwd  …
Leggi tutto

Delphi …. retrive locale format setting

TFormatsettings is record type in Delphi which is used to get or set local information’s like DateTimeFormat, CurrencyFormat, DecimalSeparator etc. wich is declared in System.SysUtils. For Example you need to retrive your current DecimalSeparator: procedure TForm1.Button1Click(Sender: TObject); var fs: TFormatSettings; begin GetLocaleFormatSettings(LOCALE_SYSTEM_DEFAULT, fs); ShowMessage(‘Actual decimalseparato is:’ + fs.DecimalSeparator); end; If you need to force some…
Leggi tutto

Ubuntu 20.04 – Startup Applications on session login

Per poter eseguire automaticamente un’applicazione alla partenza della sessione gnome esiste un software presente nella distribuzione di Ubuntu. Può essere richiamato a riga di comando:  $ gnome-session-properties oppure da interfaccia cercando tra le applicazione e filtrando per “start”              e poi è possibile creare un elemento nuovo per lo startup…
Leggi tutto

Xtumble News 08 02 2021

Da oggi la piattaforma Xtumble si arricchisce di due nuove applicazioni per essere sempre piu’ smart e offrire un esperienza di utilizzo facile e senza vincoli: Magazzino e Comande. Nello specifico la app Magazzino (disponibile al momento solo per Android su play store qui ), che ti permette di classificare e ricercare i tuoi articoli…
Leggi tutto

Delphi 10.4.1 on Android error : java.lang.NullPointerException: Attempt to invoke virtual method

When you try to use the camera component and you get “java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData (android.content.pm.PackageManager, java.lang.String)” only on “release” version of your application, probably you don’t have this setting to true: Check that the Project Options > Entitlements List > Secure File Sharing option is set to true. good job