Recent

Author Topic: LCL Web Native with D2Bridge  (Read 8934 times)

nouzi

  • Sr. Member
  • ****
  • Posts: 328
Re: LCL Web Native with D2Bridge
« Reply #15 on: November 28, 2024, 07:00:49 am »

Yes it works, thanks
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

BlueIcaro

  • Hero Member
  • *****
  • Posts: 833
    • Blog personal
Re: LCL Web Native with D2Bridge
« Reply #16 on: December 07, 2024, 11:13:25 am »
Hello, I downloaded the version of 5th of December and I can't compile. I got the following error:
Can't not find the file:  D2Bridge.NewProject.Wizard.FPC

How Can I solve it?

Thanks

/BlueIcaro

talisjonatas

  • New Member
  • *
  • Posts: 14
Re: LCL Web Native with D2Bridge
« Reply #17 on: January 16, 2025, 08:15:38 pm »
D2Bridge Framework for Lazarus is Updated

https://youtu.be/sppOoxpoaec

BlueIcaro

  • Hero Member
  • *****
  • Posts: 833
    • Blog personal
Re: LCL Web Native with D2Bridge
« Reply #18 on: January 17, 2025, 01:06:25 pm »
Hello, I downloaded the last version, and I got the following error
Quote
d2bridgeframeworkwizard.pas(11,3) Error: No puedo encontrar D2Bridge.NewProject.Wizard.FPC utilizado por d2bridgeframeworkwizard, ppu incompatible=C:\Users\user\Downloads\LazarusPreview1_7\Wizard\LPK\lazarus\4.0\lib\x86_64-win64\d2bridge.newproject.wizard.fpc.ppu, paquete d2bridgeframeworkwizard

FPC can't not find this file:  D2Bridge.NewProject.Wizard.FPC

I searched on the folders and I didn't find it.
Also I took a look to the installWizzardLog and I read that the same error happend when I ran the wizzard. I attacht the log file.

/BlueIcaro

talisjonatas

  • New Member
  • *
  • Posts: 14
Re: LCL Web Native with D2Bridge
« Reply #19 on: January 25, 2025, 01:58:42 am »
Hello, I downloaded the last version, and I got the following error
Quote
d2bridgeframeworkwizard.pas(11,3) Error: No puedo encontrar D2Bridge.NewProject.Wizard.FPC utilizado por d2bridgeframeworkwizard, ppu incompatible=C:\Users\user\Downloads\LazarusPreview1_7\Wizard\LPK\lazarus\4.0\lib\x86_64-win64\d2bridge.newproject.wizard.fpc.ppu, paquete d2bridgeframeworkwizard

FPC can't not find this file:  D2Bridge.NewProject.Wizard.FPC

I searched on the folders and I didn't find it.
Also I took a look to the installWizzardLog and I read that the same error happend when I ran the wizzard. I attacht the log file.

/BlueIcaro

Today D2Bridge Framework 1.7.0 for Lazarus Preview has been updated

D2Bridge in Preview version is only compatible with the official Lazarus IDE as below:
- Lazarus 3.4 win32
- ⁠Lazarus 3.4 win64
- ⁠Lazarus 3.6 win32
- ⁠Lazarus 3.6 win64
- ⁠Lazarus 3.8 win32
- ⁠Lazarus 3.8 win64
- ⁠Lazarus 4.0 RC2 win32
- ⁠Lazarus 4.0 RC2 win64

Full ChangeLog

💡 New update 💡

D2Bridge Framework 1.7.0 for Lazarus Preview

Another important update for stability that brings more reliability in session isolation

+ Added support for:
Lazarus 3.8 Win32 and Win64

Lazarus 4.0RC2 Win32 and Win64

- Removed support for:
Lazarus 4.0 RC1 Win32 and Win64

## FIX ##
- Fixed compilation of new projects where Debug could generate compilation error
- Improved stability and security
- Fixed session closing where in specific circumstances a session could remain active even after exceeding the Timeout time
- Fixed where the processing of a specific Thread could occur in another Thread
- Better session isolation
- Fixed where changing the visibility of a component that was inside a FormGroup + Popup + Nested could not allow visibility correctly
- Fixed where the event was not called OnDestroy in the *Session project unit when destroying a session
- Fixed what could put a session in Idle (if active) even though it was active
- Fixed where some sessions under specific situations could remain open if they were not fully loaded
- Stability for the use of Idle where the application could crash if the Idle time was wrong
- Fixed the calculation of the session's open activity time where it is updated in the operations of sending data to the Server Side

## IMPLEMENTATION ##
- It was implemented that the VCL Styles properties (Component Color, Font Color, Font Style and Alignment) are now changeable at runtime, something changed in the VCL and the change is also sent to the Web
- When in the console server if the timer is set to 1000 instead of 100 it brings a slight improvement in processing

Soner

  • Sr. Member
  • ****
  • Posts: 328
Re: LCL Web Native with D2Bridge
« Reply #20 on: January 26, 2025, 12:01:34 am »
I have many versions of Lazarus, each of themhas the configuration files in subfolders. D2Bridge-Wizard has a problem with this because it looks for the configuration files in user folder.
In lazarusfolder there is a file lazarus.cfg which shows where the configuration files are.
Look at the screenshots.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: LCL Web Native with D2Bridge
« Reply #21 on: January 26, 2025, 12:06:13 am »
Today is tomorrow's yesterday.

Soner

  • Sr. Member
  • ****
  • Posts: 328
Re: LCL Web Native with D2Bridge
« Reply #22 on: January 26, 2025, 12:36:05 am »
talisjonatas you did really good work!
I'll try to rebuild my webapp with your framework.
I used fphttpserver and bootstrap.

If anyone wants to install it to lazarus without wizard then just install this lpk:
1. Indy from online packmanager
2. \D2BridgeFrameWork\Wizard\LPK\lazarus\4.0\d2bridgeframeworkwizard.lpk

talisjonatas

  • New Member
  • *
  • Posts: 14
Re: LCL Web Native with D2Bridge
« Reply #23 on: January 29, 2025, 03:02:47 pm »
Try
talisjonatas you did really good work!
I'll try to rebuild my webapp with your framework.
I used fphttpserver and bootstrap.

If anyone wants to install it to lazarus without wizard then just install this lpk:
1. Indy from online packmanager
2. \D2BridgeFrameWork\Wizard\LPK\lazarus\4.0\d2bridgeframeworkwizard.lpk

If your Lazarus IDE is downloades form oficial Lazarus link (wihout Fpcupdelux) and is 4.0 RC2 try open LPK package "\D2BridgeFrameWork\Wizard\LPK\lazarus\4.0\d2bridgeframeworkwizard.lpk" directally into Lazarus and click "Use -> Install" and rebuild your Lazarus IDE

talisjonatas

  • New Member
  • *
  • Posts: 14
Re: LCL Web Native with D2Bridge
« Reply #24 on: January 29, 2025, 03:05:12 pm »
New D2Bridge Framework 1.7.0 Update for Lazarus Preview

***Updated on January 24th at 01:46 pm (UTC)

## FIX ##
- Fixed what could cause poorly formatted HTML in a Card and be interpreted differently in the Opera browser
- Fixed what could generate an exception if an image was used directly in the SpeedButton (ImageName property)
- Corrected the TwwButton component from the InfoPower palette (thanks to Alisson Suart)
- Fixed the MaxLength property of a TEdit that did not work on the web together with the OnlyNumbers property activated (thanks to Rômulo Massari)
- Fixed what caused a component inside Nested + Popup not to set the Enabled from the second rendering onwards
- Fixed what generated an exception when finishing a D2Bridge application compiled for VCL/FMX
- Fixed compilation error in FMX (thanks to Paulo Motta)
- Fixed what could cause a loop in the OnExit event if the SetFocus of the same component was called afterwards
- Fixed what could not update the content of a DBLookupCombobox
- Fixed for new Projects where even in debug the application did not run debugging

## IMPLEMENTATION ##
- The TToolButton component (a TToolbar button) is now natively exportable
- DBText will now render the Date, Number, Date/Time, Decimal formats, according to the browser language


Download in https://www.d2bridge.com.br

egsuh

  • Hero Member
  • *****
  • Posts: 1738
Re: LCL Web Native with D2Bridge
« Reply #25 on: December 15, 2025, 08:10:14 am »
I'm now trying this.
I downloaded setup files and installed "Beta" version, not "Stable" version because I could not find any .lpk file from Stable version.

I tried to run the demo program. lazarus.lpi on LCL mode first --- which was successful. It was normal Lazarus application.

Then I changed compiler mode to D2Bridge Web Release, and executed it successfully. It is really nice to have this kind of framework. Thanks a lot for all your effort.

Now, I tried to run it again in Debug mode but this failed.

Then I created a new D2Bridge project. There were  created a form with three labels. I added one TEdit, one TButton, and one TTreeView. At first i did not know to add these controls to D2BridgeItems, and ran it in D2Bridge Web Debug mode. It showed only three labels.

And then I realized I have to add controls. to D2BridgeItems, and added them as following:

Code: Pascal  [Select][+][-]
  1. procedure TForm1.ExportD2Bridge;
  2. begin
  3.    // ................................................
  4.   //Export yours Controls
  5.   with D2Bridge.Items.add do
  6.   begin
  7.    SideMenu(MainMenu1);;
  8.    LCLObj(Label1);
  9.    LCLObj(Label2);
  10.    LCLObj(Label3);
  11.    LCLObj(Edit1);
  12.    LCLObj(Button1);
  13.    LCLObj(TreeView1);
  14.   end;
  15. end;

Now I can see my edit1 and button1 controls, but not treeview. It seems that TTreeview is not exported.

And then I tried to run it under Debug mode but it failed to compile.  Error messages are :

Quote
D2Bridge.BaseClass.pas(383,40) Error: Class or Object types "TList<Prism.Interfaces.IPrismControl>" and "TList<System.IUnknown>" are not related

Hope somebody to respond to any of these issues.

I'm not familiar with this yet. And I found a tutorial video on the Youtube, which is available in English as well as in Portuguese. I'll take some time to listen to these videos.

Anyway many many thanks for including Korean in selection of language.

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: LCL Web Native with D2Bridge
« Reply #26 on: February 06, 2026, 04:52:10 pm »
Hi, when will we be able to install D2Bridge on Linux and then compile on Linux too?!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

mdalacu

  • Full Member
  • ***
  • Posts: 237
    • dmSimpleApps
Re: LCL Web Native with D2Bridge
« Reply #27 on: February 07, 2026, 04:18:53 pm »
Linux support? I don't have a windows machine a for 2 years.. :-)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: LCL Web Native with D2Bridge
« Reply #28 on: February 07, 2026, 10:43:41 pm »
Sorry, but from the documentation on the D2Bridge website it looked like Linux wasn't fully supported yet. So if I install it, it works?!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018