Hi.
I have a heavily modified control based on TStringGrid. I want to allow the user to make selections in this grid but restrict the selection one single row (the current row).
Implementation:
When the user presses the left mouse button I am using a dirty hack: On OnMouseDown event I capture the mouse cursor and keep it on the current ...
I'm trying to use AggPas
but find the documentation to lack code examples of attaching it to a bitmap.
I have this code:
procedure DrawScene();
var
ObjLength,LineLength,Filllength,Obj,lin,angle,i:integer;
Npoints : array[0..1] of Tpoint;
VG: Tagg2d;
DOB:Tobject;
Objmap,wholemap:TBitmap;
begin
wholemap := TBitmap.Create;
w...
I need to encrypt some text in my program developed using Lazarus/Freepascal, but I should be able to load them as text and decrypt them, rather than in binary because I need to save them in a TStrings type property.
Which algorithm(s) are suited to that?
...
What im trying to do
I have a drawing procedure (it works) it draws to a bitmap "OBJmap" it then puts OBJmap into Wholemap,, this all works but there is a issue,, it seems to treat the undefined parts of objmap as white even though objmap and wholemap is set as PF32Bit. and hence when it puts objmap into wholemap i get a white box behin...
hi..
I want to broadcast a UDP message in my LAN with fake source IP ( spoofing )
1. Do winpcap able to do this ?
2. Do this work on winxp, win7 ?
3. i'm using delphi, is there any good components available ?
Thanks.
...
hi all
in my project ,i am using my smf forum to control clients so i wanna create an application from which i can add member to my forum via my admin panel, in general i can do this by doing
1.login to my site ( with my admin user and pass)
2.then navigate to the url http://www.mysite.com/index.php?action=admin
3.then navigate to ...
Well, I am studing some inline assembly in Delphi and the assembly crypto routine is all going great, until I try to parse the ShortString into the Textbox.
The violation I get is as follows:
The full code is here:
procedure TForm2.Button1Click(Sender: TObject);
var
len,keylen:integer;
name, key:ShortString;
begin
name := ShortSt...
I'm running Delphi 2007 with Windows 7 Ultimate.
The code I'm working on compiles to a DLL file. To use Delphi's debugger I launch a standard EXE application via Delphis' Run command. The application loads the DLL file and the debugger is automatically attached to the correct process.
The problem occurs when resetting the host applica...
I want to write a Delphi function to register a dll. I want the function to check if OleInitialize has already been called before it does so. I guess I'm trying to avoid the consequences of initializing twice because I'm not sure what they might be. I'm worried that my function won't handle as wide a variety of dlls as regsvr32.exe.
...
how to create TCustomControl behave like Tpanel? like MyCustmComponent for example. That can drop a components in it like labels, images etc. sorry for my english..
...
I want to add aboutbox/dialogbox on my Custom component. how to make the small button[...] appear on the object inspector? just like the assigning a picure on the Timage component.
...
We would like to build new application as multi tiers, we can do it as web service, but we prefer to use more advanced features as WCF, which not found in datasnap too.
can we do that with Delphi 2010 win32?
the clients will be Delphi win32, Asp.Net (C#) and maybe windows mobile phones too.
...
I need to be able to pop-up a TForm when I right click on a TPaintBox (the content of the form will be dependent upon where I click). If the user clicks anywhere else I'd like the original form to be destroyed (or at least disappear). If the new click happens to be another right-click on the TPaintBox, a new TForm must appear. Basical...
Hi
I want to list name of all forms exist in my project in a ListBox Dynamically, then by clicking on each of them, list all buttons exist on that form in another ListBox.
But I don't know if it can be implemented and how it can.
Please help me.
Thanks
...
I have a dll developed in C Sharp. How can I make it usable in other languages, such as PHP or Delphi?
I cannot find any solution to this problem yet. Isn't there any easy way of doing this?
...
I have an application that prints text and images to pages on a printer. At the footer, we output an image, which is cached by loading it once, and stored in a TBitmap. In the print routine, it creates a new TBitmap, then calls a function which assigns the cached bitmap. It then ends up calling Canvas.StretchDraw on that bitmap.
Functio...
I have derived my own component from TAdoQuery in Delphi. I have overridden the DoAfterPost procedure; and in this code I create another query for the purpose of fetching the primary key associated with an inserted record (i.e. SELECT @@IDENTITY for SqlServer, SELECT LAST_INSERT_ID() for MySql, etc).
In the past I always used TAdoConne...
I have the center point, radius, and angle to draw the pie, but the Pie function takes 4 points as input data. Does anyone have any conversion function or better explanation for this?
...
I have a weird behavior with TStringGrid in Delphi 7.
Delphi does not call the OnMouseUp event if a pop-up menu is associated to the grid. Basically, when the RMB is pressed, the pop of the menu somehow cancels/delays the OnMouseUp. Actually, to be 100% accurate, next time you push a mouse button the OnMouseUp is called twice – once for ...
I have a delphi app that runs minimized to a tray icon. When the tray icon is double clicked the app opens a non-modal user interface form.
I have added logic to the app to detect whether it is already running. If it isn't running, it starts up and miminizes itself to the tray.
If it is already running, I want it to pass control to...