| Welcome, Guest |
You have to register before you can post on our site.
|
| 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
|
|
|
| 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.
|
|
|
| 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?
|
|
|
| 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!
|
|
|
| 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?
|
|
|
| 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?
|
|
|
|