Delphi is a language for rapid development of native Windows, OS X and iOS applications through use of Object Oriented Pascal. The name also refers to the Delphi language (a modern evolution of Object Pascal) as well as its IDE, which is used to help edit and debug Delphi projects.
1
vote
0answers
35 views
Can I serialize an interface with TJSONMarshal?
I'm trying to serialize objects with TJSONMarshal (XE4) but I have a problem when objects has interfaces properties like _recordset
e.g.
My class:
TFoo = class
private
FrsFoo: _recordset;
...
0
votes
0answers
24 views
Delphi TListBox iOS making new itemstyle/behavior
When clicking one of the items, I would like its item size and content to grow to show description and a bitmap underneath. I assume this would require a custom style of a sort, and then catching the ...
0
votes
1answer
27 views
SpTBX: statusbar: how to get width of last panel
I have TSpTbxStatusbar. 10 panels on it (They are TSpTbxItems with fixed or non-fixed width) + splitters. I need to get width of "free space" after last panel. see an image.
How to get it.
I had ...
0
votes
1answer
21 views
SpTBX: how to draw dock BG on canvas
In TBX I had a code which draws Themed Dock BG on canvas.
var
t: TTbxTheme;
s:string;
r: TRect;
..
S:= TbxSwitcher.Theme;
t:= GetTbxTheme(S);
t.PaintDock(ACanvas.Handle, R, R, 0);
...
0
votes
1answer
11 views
Converting Delphi TPoint to C# Point
I am trying to convert some Delphi code as we are re-writing a Delphi 6.0 (VCL) application in .Net. I am not sure and could not figure out the comparison between 2 Delphi Tpoints(x,y) with that of C# ...
1
vote
1answer
37 views
SHGetStockIconInfo not found in import table
I am developing a resource leak detection tool to monitor the lifecycle of handles in my application. And with handles I mean window handles, brush handles, icon handles, event handles, etc.
I do ...
0
votes
0answers
43 views
How to handle the tab-key in a custom component
I have created a custom Styledcontrol descendant, that consist out of 3 TEdit's that represent a date (Day/month/hour)
When tabbing in a form, i only want the day Edit field to get focus, the go to ...
0
votes
1answer
84 views
Delphi/pascal destructor and c#
Assume this class definition is working
TStringListNF = class (TStringList)
procedure TestContenu (verif : Boolean);
destructor DestroyList;
destructor DestroyListFree;
end;
And the class ...
3
votes
1answer
35 views
How to supress echo with TIdTelnet?
Using Indy10 - DelphiXE.
How do I tell the telnet server I am connecting to with TIdTelnet to not echo the commands I send towards the telnet server?
This is my current attempt (which doesn't work), ...
0
votes
1answer
25 views
how to configure TIdHttp with TIdSSLIOHandlerSocketOpenSSL to use certificates of type USB key
Good morning,
I wonder how to configure TIdHttp with TIdSSLIOHandlerSocketOpenSSL to use certificates of type USB key, because it is only possible using key file type.
This key is an Alladin, and I ...
1
vote
1answer
85 views
is there any relevent syntax for this VB code in delphi?
am trying to do this in delphi but am not sure about the CTYPE function.
Dim docStyleSheet As mshtml.IHTMLStyleSheet = CType(doc.styleSheets.item(0), mshtml.IHTMLStyleSheet)
Dim docStyleRules As ...
0
votes
1answer
45 views
GET URL and Capture XML response - SAM Broadcaster
I have a url and port... mysite.com:8000
When approached by HTTP this returns XML, of which I need to extract and transform <title> under the tree <source mount="/live">
There are other ...
-1
votes
1answer
60 views
Add Result of Function to String As Variable - SAM Broadcaster
I have a function to grab a random URL.
FUNCTION randurl : String;
BEGIN
// Randomize URL
Rx2 := RandomInt(4);
if (Rx = 0) then
result := 'www.site1.com'
else if (Rx2 = 1) then
result ...
2
votes
1answer
43 views
What is a “Variant of type (Error)”?
I have this working piece of code accessing an Outlook AppointmentItem.PropertyAccessor.GetProperties method:
var
lPropertyAccessor: OLEVariant;
lDT : TDateTime;
lSchemas, lValues: ...
1
vote
1answer
98 views
Is FieldByName injection-safe?
I'm talking about Delphi + ADO + MSSQL.
Okay, I know that queries with parameters are quite safe against SQL-injections.
On the other hand, dynamic queries are quite not safe.
But what about classic ...