I've just installed the JCL and JVCL libraries, mostly because they contain components replacing the old rxLib components and I'm upgrading an old project that made heavy use of those components.
I now find myself with numerous new tabs in my Delphi 2010 IDE, but no hint (beyond the component names) of what these components do. How doe...
I'm having a bit of trouble figuring out what's going wrong with this function. I'm not sure if I should be using -1 or not anymore, and no matter how I try to arrange the code it seems to return nil even when it shouldn't. Could someone with fresh eyes take a look? Also, I'm not sure my result := nil is in the proper place.
function TF...
I have noticed that with Delphi 2009, I often get strange errors when compiling, such as recursive unit use, and sometimes just (seemingly) random errors which point to white space at the end of a unit.
These are not really errors, because a full build will fix any of the problems, and I can carry on. I suspect that generics have someth...
hi all
I have created a new component, inserted into a new package, installed and it worked. (it appeared in the pallette). After a time I wanted to modify that component and accidentally deleted the *.bpl from the Delphi/projects/bpl folder, also Delphi asked me if I want to reload the missing *.bpl ant the next start and said no. Afte...
Hi.
I have this two functions:
procedure TDisplay.CubAssign(VAR Obj: TCubObj; CONST bReleaseOnExit: boolean);
begin
ReleaseCubOnExit:= bReleaseOnExit;
FCub:= Obj;
if CubReady
then
begin
Init;
SetScrollBar;
end
else Clear;
end;
procedure TDisplay.CubRelease; ...
Continuing with the series "Hidden features" I think it's time to Delphi Prism. I believe that's a great way to encourage the development of delphi prism, is that we all share what we discovered in the daily use of this great language.
Bye.
...
After this question, I need to know what principles should be followed in order to make an encapsulation of a class in a dll compatible to other version of Delphi.
I made a class using generics feature in RAD2010 and make a dll which has a function that return an instance of it. When I tried to use the dll using BDS2006 or Delphi 6, the ...
I'm setting image indexes like this:
with TN do
begin
ImageIndex := 1;
SelectedIndex := 1;
end;
Problem:
I use the same code for three icons in various places through my main unit (when I'm adding nodes). I set the icon with the same approach each time.
The first icon (which happens to be on a parent node), displays correctly.
The s...
Hi there,
I need to writing a delphi program which will monitor a folder for changes (Add, update, rename and removal of files).
Is the TShellChangeNotifier is way to go? To be honest, I have no idea how to use it.
Please help.
Thanks.
...
Hi all,
I want to use parameter for query like this :
SELECT * FROM MATABLE
WHERE MT_ID IN (368134, 181956)
so I think about this
SELECT * FROM MATABLE
WHERE MT_ID IN (:MYPARAM)
but it doesn't work...
Is there a way to do this ?
I actually use IBX and Firebird 2.1
I don't know how many parameters in IN clause.
...
What is the correct syntax for instantiating a COM object in Delphi Prism using COM interop - new does not seem to do the job.
I've added it as a reference to the website project. Here is the relevant code:
method _Default.Button1_Click(sender: System.Object; e: System.EventArgs);
var
FModel: MarketBuilderLib.MarketBuilderModel;
be...
Hi all,
I've recently had a customer report an issue with my applications and NVidia nView desktop manager. Basically nView seems to 'unhide' hidden secondary forms when moving an application between monitors. I'm testing with Delphi 2010. The problem can also be seen using just the IDE (show a non-docked window, close it and then choos...
Anyone have any good resources for Delphi and Windows Aero on 7 or Vista?
We're just about to add Windows 7 to our company and want to make sure that our in-house applications use fit in as well as possible.
Using Delphi 2010 I can add the Glass Frame and the menu bar inherits an Aero look, however the TabControls, Grids and Status bar...
Hi
I would like to know if it is possible to nest a dataset within a dataset and then nest this data set with in another dataset. Therfore 3 levels of nesting. Currently I only manage to nest one dataset with in the other. When attemting to nest the third level the database manages to run successfully the first time I compile my program...
Hi,
I'm a C++-Programmer. But now i have to learn Pascal/Pascal. Are there any websites, documents around that can teach someone with my knowledge the difference?
...
I am using D2007 for a project that has a number of actions in an actionmanager that are then used in actiontoolbars and menus. I have also placed them in categories (eg. File, Tools, Input, etc...). I would like to enable/disable individual actions or a group of actions (eg. input) by iterating a list in actionmanager. The actions pr...
Hi. I'm trying to paint VirtualStringTree's cell differently when mouse is over it. How can I detect the coords of hot node? I know there's a HotNode property but it returns only Node that is under mouse cursor. I need to get cell coords (X,Y) of that node.
...
I'm trying to write a component that inherits from TClientDataset. On the create of the component in design time I want to instantiate a list of common fields that are used within my framework. The code below will execute without errors and the field will appear at run time but not design time. Can anyone help me? I'm sure its something ...
This should be a simple one for someone. I just can't figure out how to do it.
Upon exiting of my program, I want to hide the main form and make a final "Thank You" form appear on its own, like this:
procedure TMainForm.ExitExecute(Sender: TObject);
begin
MainForm.Visible := false;
ThankYouForm.Show;
MainForm.Close;
end;
But wh...
Hi there!
I am trying to write a routine which will execute a DOS batch program from within a Delphi 2010 application. My old routine which works in Delphi 6 keeps giving me the error message:-
"Project1.exe raised exception class EAccessViolation with message 'Access violation at address 7C82F29C in module 'kernel32.dll'. Write of add...