Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 99,750
» Latest member: qxoso66com2
» Forum threads: 2,426
» Forum posts: 11,373

Full Statistics

Online Users
There are currently 805 online users.
» 4 Member(s) | 798 Guest(s)
Baidu, Bing, Google, 789clubsbike, hitclubvorg, nh88band1, qxoso66com2

Latest Threads
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 380
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 411
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 316
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 662
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 385
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 831
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 340
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,535
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 508
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,233

 
  new IntraWeb Telegram class demo
Posted by: Alexandre Machado - 02-20-2021, 02:55 AM - Forum: IntraWeb General Discussion - Replies (1)

Hi guys,

here is a super cool demo. Nothing fancy on the surface but it is really nice how everything works together to get a lot done with 1 line of code!!!

https://github.com/Atozed/IntraWeb/tree/...legramDemo

You just need to build it, copy 2 OpenSSL DLLs to the same folder where the EXE is and have fun!

You can send messages from the demo application directly to our @IWTelegramComponent Telegram channel.

Imagine the possibilities:

For instance, you can create an exclusive Telegram channel for your application and let your customers send support questions/tickets. Or... you can automate reporting of exceptions and have an exception handler sending exceptions to your channel... usage statistics.. whatever!
The possibilities are unlimited!  Smile

Please let me know what you think!

BTW: Open SSL libs can be downloaded here:
https://github.com/IndySockets/OpenSSL-Binaries

I suggest:
x86: https://github.com/IndySockets/OpenSSL-B...-win32.zip
x64: https://github.com/IndySockets/OpenSSL-B...-win64.zip


Cheers!

Print this item

  TIdSync vs TThread.Synchronize
Posted by: happyzj - 02-19-2021, 08:08 AM - Forum: Indy - Replies (1)

Hi, just wondering: does TIdSync nowadays still work in the latest Indy version?  I see a warning saying it is deprecated and suggest to change to use TTThread.Synchronize, however in and old "indy indepth" doc, it introduces TIdSync as following

TIdSync
TThread has a Synchronize method, but it does not support the ability to pass parameters to
synchronized methods. TIdSync allows for synchronizations with the ability to pass parameters to the
synchronized methods as well. TIdSync also allows for return values to be returned from the main
thread.


I use TIdsync a lot with passed in paramteres and return value (mainly to read property value of a UI component on the main form).
Now, if I switch to use TTThread.Synchronize, is it really as easy as using TIdsync to allow pass parmater to and get return value? 
And if I keep the code as is (using TIdsync), what would be a potential risk of this in future considering it is now "deprecated"? 

Thank you very much.

Print this item

  IW15.2.10 TIWGrid cannot change font style/color using OnRenderCell
Posted by: defaultuser - 02-16-2021, 05:46 PM - Forum: IntraWeb General Discussion - Replies (6)

Hello, I'm using IW 15.2.10 And Delphi 10.3 trying to change the color of the font of text in cells within an IWGrid when OnRenderCell is triggered:

Code:
.
.
.
procedure WorkFlow.TasksRenderCell(ACell: TIWGridCell;
  const ARow, AColumn: Integer);
begin
  If ARow = 0 then
      exit;
{blue is the standard color for display only data}
    ACell.Font.Color := clBlue;
.
.
.


however, ACell.Font.Color := clBlue; line does not change of the color of the text in the cells. it does work on IW14, but this doesn't seem to work in IW15.2.10. could this be a bug?

Print this item

Question Float column in TIWJQDBGrid
Posted by: David1 - 02-16-2021, 09:49 AM - Forum: IntraWeb General Discussion - No Replies

Hello,

I am using Delphi 10.4.1 with IW 15.2.24.
I am trying to show a MS SQL Server money (Currency) column in a TIWJQDBGrid but the grid reamins in "Loading" status.
Cause my Windows PC is set up to use Italian language I suppose the number format (with comma as a decimal separator and  dot as thousand separator) does not match the format expected from the grid.
How can I solve this incompatibility or is there an event to change the number format ?
I try to change the format at object field level but it did not work...

Thank you,
Davide

Print this item

  Clear datas when switch forms
Posted by: matija - 02-15-2021, 01:10 PM - Forum: IntraWeb General Discussion - Replies (4)

I have UIWServerControllerBaseConfig define two forms:

IWExceptionRenderer.SetExceptionRendererClass(TIWExceptionRendererEx);
 if FLock<>nil then FreeAndNil(FLock);
 FLock:= TCriticalSection.Create;
THandlers.Add('', 'Form1', TContentForm.Create(TForm1)); http://localhost/form1 (first load)
THandlers.Add('', 'Form2', TContentForm.Create(TForm2)); http://localhost/form2



In UserSesssion i have define procedures LoadDatas/ClearDatas with my TDatas. Both Forms used this procedures.

If switch Form2 then i want ClearDatas in Form1? If i dont, i get memory leaks from Form1, if destroy Usersession! Who Release!

Print this item

  IW 15.2.24 is out
Posted by: Alexandre Machado - 02-14-2021, 07:38 PM - Forum: IntraWeb General Discussion - Replies (6)

Hi guys,

here is a new update for IW 15 branch:

https://www.atozed.com/2021/02/intraweb-15-2-24/

Highlights: 

  • New IWTelegram class (a simple and effective way - fire & forget - to send messages from your IW server to any Telegram channel, via Telegram API). Demo soon.
  • Fixed/enhanced IWjQAccordion and IWjQPageControl now with render async capabilities as well. Another demo coming!

Enjoy!  Big Grin

Print this item

  TIWjQDBGrid onSelectRow selection status
Posted by: oystein.jakobsen@sas.no - 02-12-2021, 10:16 PM - Forum: IntraWeb General Discussion - Replies (3)

I am exploring the recently added TIWjQDBGrid component, and find it quite useful.

But I can not figure out how to obtain the selected row selection status when the row is re-clicked to unselect without rewriting/adding some custom javascript.

The thing needed was to add 'status' to the javascript code and call an additional function passing the 'status' value through a separate callback.

$("#grid_MYGRID").jqGrid({...onSelectRow:function(rowid,status,e){exMyGridSelectRow(rowid, status); return MYGRID_onSelectRow(rowid,e);}

Is it possible to let IW 15 also render js to return the 'status' parameter in the callback EventParams in future versions or is there any other way to aquire the row selection status in the current version?

Print this item

  What is the width of the text?
Posted by: I.Igor - 02-12-2021, 04:08 PM - Forum: IntraWeb General Discussion - Replies (2)

Hello.

I would sometimes like to dynamically set the size of the TIWListbox.

I was able to calculate the height of the ListBox1:
MyHeight  :=  round(ListBox1.Items.Count * (ListBox1.Font.Size * ListBox1.Font.PixelsPerInch/72)) +  ListBox1.Items.Count * 3;

I don't know how to calculate the width. In Delphi, canvas is used for this. But TIWListbox has no canvas.
How to calculate the width of any any row of a ListBox1?

Print this item

  Display PDF / HTML in IWModalWindow
Posted by: Lorbass - 02-12-2021, 01:23 PM - Forum: IntraWeb General Discussion - Replies (7)

Hello,

according to the demo on GitHub, I tried the following:

with MW do begin

  Reset;

  Autosize := false;
  CloseButtonVisible := true;
  Draggable := false;
  WindowWidth := 80;
  WindowHeight := 80;
  Src := 'legacy.pdf';
  OnAsyncClick := nil;
  OnAsyncClose := nil;

  Show;

end;

MW appears correctly but the PDF is not displayed. The window is empty.

The file is in wwwroot.

Another problem with loading an HTML file (MW.Src := 'legacy.html'):

The file is loaded and displayed. But all special characters (e. g. ä, ö, ü, ...) are displayed as question marks.

Something wrong on my side?  Huh


Thanks for solutions!!

Print this item

  IWTimer - How to start the timer again?
Posted by: I.Igor - 02-11-2021, 07:51 AM - Forum: IntraWeb General Discussion - Replies (3)

Hello.
I am using Intraweb 15.2.20.
If I stop the timer and then start it again, then the timer does not start counting from the beginning, but ends the time that was not finished before the last stop.
IWTimer1.Enabled := false;
IWTimer1.Enabled := true;
// after assigning a value Enabled := true event OnAsyncTimer will occur in the interval 0.. IWTimer1.Interval

I tried like this:
IWTimer1.Enabled := false;
IWTimer1.Interval := 5000;
IWTimer1.Enabled := true;
However, that does not work either. The first actuation of the timer after these commands can be less than 5 seconds.

Is there a command to start the timer from the beginning?



Attached Files
.zip   Project1.zip (Size: 38.9 KB / Downloads: 2)
Print this item