delphi

Is DxScene the "WPF for Delphi"? Anyone used it?

I am playing with DxScene and VxScene: http://www.ksdev.com/dxscene/index.html It looks very nice and powerful: 3d accelerated vector graphics, cross plaform, nice effects, many 2d GUI controls (vector based), good scaling, transparency, rotating (x, y, z), 3d models, etc. Even with many effects, the CPU stays very low (0%)! http://www....

How can I visually design a component in C++ Builder?

I have been away from C++ for a couple of years now doing AS3/Flex work. I have gotten used to being able to create a component and place it in design mode with very little fuss and I am struggling to get my head around the C++ Builder way of doing the same thing. I have written many components for C++ Builder in the past, but none of t...

Component to display log info in Delphi.

I have a number of complex processing tasks that will produce messages, warnings, and fatal errors. I want to be able to display these messages in a task-independent component. My requirements are: Different kinds of messages are displayed in different font and/or background colors. The display can be filtered to include or exclude e...

Disassembling a DLL coded in Delphi -- how to start?

Is there any way to disassemble my .dll file again into machine code? What applications do I need for this and how much could be recovered? ...

How to do Delphi-like frames in C#?

Slight bit of background: I'm a Delphi programmer re-learning C# (learned in school originally, haven't hardly touched until recently), and am trying to get some of my Delphi concepts transferred over. The current situation is, I need to create an application that can use data from a variable list of similar data controls depending on...

How to automatically load a project when starting Delphi

I want to specify a project to be opened when I launch Delphi(D2010). Is there a command-line parameter to pass to bds.exe, like the -r option allowing to load a specific Registry Setting, where I could pass the name of the project I want to open when launching bds.exe? The only options I know of are: -ns "no splash" -n...

Insert data into database [Delphi]

I'm trying using a TAdoTable component, On form Create I call .Append() and in a button i call .Post() but it loads the entire table! I don't need it to load anything, just need to insert a row into this table. I was wondering if there is "good way" of inserting data into database with Ado, i already tried using the a "manual" appro...

How to set custom ticks on a TTrackBar in Delphi 2010?

I tried to set the tick style to tsManual, the min and max position to 1 and 100 respectively and add ticks at 9, 19, 79 and 89 and no ticks are shown at all except the detault first and last which the control automatically shows. I tried other values and none are ever shown. My code is: TrackBar1.TickStyle := tsManual; TrackBar1.Min :=...

Is CFE_LINK stored in RTF RichEdit 3.0?

I am using MS TextServices to implement windowless rich text editing and setting CFE_LINK to create hyperlinks. This all works but when I save the text to my internal buffer for writing to a file the CFE_LINK effect isn't saved. I have (tried to) ensured that AutoDetectURL is OFF. I am using EM_STREAMOUT to save from editor to buffer, ...

Delphi Dynamic Menu Items

I have a popup menu that has a few items in it. Option 1 - Sub1 - Sub2 Option 2 - Sub1 - Sub2 Option 3 - Sub1 - Sub2 I want to be able to add a Sub sub menu to Option 3 sub2 so it would look like: Option 1 - Sub1 - Sub2 Option 2 - Sub1 - Sub2 Option 3 - Sub1 - Sub2 - Dynamic Item1 - Dynamic Item2 - Dynamic It...

AnimateWindow Slide

I want my form slide down and back to position with slide animation, how to make correct AnimateWinows, if it real for sure ... void __fastcall TUsers::BitBtn1Click(TObject *Sender) { if (!pressed) { Height=700; //AnimateWindow(Handle, 500, AW_CENTER | AW_SLIDE | AW_VER_POSITIVE); pressed=true; } else { p...

Data structure for fast filtering (Delphi)?

I am optimizing a part of a Delphi application where lists of objects are frequently filtered using different criteria. The objects are kept in TObjectList structures and it is common to select a very small percentage (ex. 1%) of the entire set with each filter. The total number of objects can be in the 100k range and during computations...

WMI: How to distinguish between an internal "local disk" HDD and an external "local disk" HDD

Background I've been using Win32_DiskDrive to find flash memory (usb pens, SD cards, etc.), but after some tests on other computers I noticed that they weren't always discovered. So I am using Win32_LogicalDisk and since it has DriveType I don't have to associate with two classes (e.g. partition) to find first the drives then their drive...

Delphi Focus Problem seen by Caret

I have written an advanced text editor component (fixed-width, syntax highlighting, etc.) in Delphi, using Windows API combined with the TCanvas element, and it works great, except for one thing: If I set focus to another control inside the same application that displays a caret as well, such as a TEdit, stealing focus from my editor com...

Is it possible to change the appearance of a Rave report's Preview form?

When users preview a report I would like to avoid giving them the option of then opening another report or saving the current report. Open and Save are items in the default menu and toolbar that appear on Rave's preview rendering form; I'd like to make them not visible. I'm using the version of Rave that comes with Delphi 2006. Thanks,...

problem in copying a caption of a label from a dephi app ?

Hi, I have a problem. I want to copy a caption of a label from a Delphi windows application .When I copy the caption label and paste in a notepad I get some weird text like " ÇÓÜÜã ÇáãæÙÝ " !! How do i resolve this ? The caption/text which I am copying is in Arabic. All the fonts are installed , Arabic text is working fine. But I am en...

Showing Explorer Menu in Delphi

Possible Duplicate: How to pop-up the Windows context menu for a given file using Delphi? Hello. In Delphi, we can use TShellListView to show files in a component like windows explorer. When i click on an icon in it, it shows a popup menu same as windows explorer. Can i show same menu automatically without using TShellListView...

How to store an object to disk?

How to store an object to disk in all its glory? My object is derived from TObjectList so it holds other objects. Which is the fastest and easiest way? Which is the compatible way? Serialization IS NOT a solution since I want to save also non-public properties and the list of objects it holds! For the moment I trying to save every ob...

Compile all projects hotkey

Hello, I have two projects in a project group that share same units(mostly all).I use both projects in order to test something I've written. The problem: When I change a unit that is used by both projects and run the current project,the other one uses the old code in that unit(because its not compiled). The only possibility I know to ...

Delphi 2009 JQueryWidget in ISAPI

I'm trying to use TIWJQueryWidget in a Delphi 2009 ISAPI application, and it's not working. I started with this tutorial : http://www.hadihariri.com/Blogs/Delphi/20080117.aspx. When I follow the tuorial creating a stand-alone IW application, it works like a charm. However, when I create an ISAPI application and do the same thing, I ca...