Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Question: How do I make my Delphi programs go to sleep? Answer: Note:Since the following was written, Delphi 2.0 has added a Sleep command. The following code can be used
Question: How do I highlight or make bold the text in a button or a list? Answer: Java Buttons, Lists, Labels, TextAreas, Canvases, etc, are all subclasses ofthe Java Component
Question: When paint() iscalled, the clipRect of the Graphics obj may already be set to somethingsmaller than the full drawable region of the object (if, for instance, it’sa partial window-manager
Question: The MoveFile command does not work for me with some filenames. An example is as follows :MoveFile(‘C:CIPLINCOMING199702110408440000000000.SAV’, ‘C:CIPLARCHIVE’);yet, if I try to move a file called ‘test.sav’ with the
Question: I have been experimenting in trying to create windows without the VCL using the WinAPI functions CreateWindow and CreateWindowEx and WNDCLASS and WNDCLASSEX structured but it never create the
Question: Is there a way for delphi 1.0 to have some kind of multithreading (enabling the user to do something else while waiting for a report beinggenerated or printed)? Answer:
Question: How do I make a form a child of another form without having to resort to the overhead of MDI? Answer: MDI provides an easy and well-established way for
Question: I’ve created a multi-user application in Delphi that accesses Paradox tables. But I’m having a problem setting them up to run successfully on a network. Answer: A Short StoryHere’s
Question: I have an expert C-programming background. Now that I want to OOP I find myself frustrated with learning Delphi and the paradigm shift to OOP at the same time.
Question: How do I implement drag and drop between two list boxes on a form? Answer: Dragging items from one list box and dropping them into another is, with Delphi,
Question: Could you please tell me how to take a value from a field of a databse and store it as a variable. I want to take an int variable
Question: I’ve seen several shareware descendants of TDBGrid that don’t flicker when you move through the associated table.How do I get rid of the flickering in TDBGrid when you hold
Question: How do I create a LIST_SELECT event? Specifically, what should I put in the fields of the statement: Event anevent = new Event(mylst, event.when, event.LIST_SELECT, ?, ? event.key, event.modifiers,?)
Question: How do you change a button’s caption after it is created? Answer: Java’s Button class defines two methods for getting and setting a button’s caption. They are getLabel() and
Question: I’ve read your previous answers and explanations about threads. I especially liked the plain-vanilla ones. But what I don’t see how to do is interrupt the execution of a
Question: I want to change master, wave and midi functions using API calls with Delphi. How can I do that? Answer: This is not a question that is answered very
Question: Can I do the function which is like the macro in Clipper? For Example, Pass the (X*(Y+Z)) string to it and return the answer. Answer: I don’t see why
Question: How do I copy a file in Delphi? Answer: H3>Reminiscing on Days Gone By…Back in the old DOS days, we took for granted copying a file from one place
Question: I have an INI file that is approximately 20K with all entries in one section. If I use TIniFile’s ReadSection method, only part of the section gets loaded. Why?
Question: Is it possible to create forms with shapes other than the standard rectangular shape in Windows? Answer: Sometimes it’s just not enough to write applications that have the same
Question: Can a Java applet or executable run locally on a PC if the PC is not connected to a network? Example: I bring up my home page and download
Question: How can I convert numbers to hexadecimal strings? Answer: Although it was not mentioned in the original documentation forJavaScript, the toString method has been available forconverting integers into strings
Question: How can I control the position of new browser windows createdwith the window . open method? Answer: Although JavaScript’s window . open method makes itpossible to automatically open new
Question: When I try to run the appletviewer in DOS or try to run the JWS(Java Workshop) under Windows 95, it dumps a stack and gives me the following messages.
Question: When you open a table in both the Database Desktopand a self-written Delphi app, and you post a record in your own app, the changes are reflected automatically in
Question: I am a little puzzled by the question and answer headed”Databases: how can I use two different Data Controls to displaydata from a single DataSource and Table?”What is the
Question: I’m porting my C code to Java and would like to know how I would implement the C enum keyword to Java. Answer: There is no convenient mechanism for
Question: I’ve been poking around the net and have seen several development environments for creating Java applets/applications. What software do I need to create JavaScripts that I can use on
Question: Is there any way with HTML, JavaScript, Javaor whatever to disable the “Back” and “Forward” buttons in the Netscape toolbar? As content on the Web enters the realm of
Question: I am trying to construct an applet that accepts data from the user and performs several calculations on that data.I would like to give the capability to print out
still travel more than I’d like, although the toll has decreased by at least 50 percent over the past few years. I used to read
arl Franklin: What was your hand in [LINQ]? I mean, what was your role? Erik Meijer: I was both in the VB and the C#
ow many times have you sat at the computer, with a need to visit the, erm, “reading room,” and thought, “Just one more minute, I
n and Out Burger, Bose, and Ultimate Ears?what do these three companies have in common? They are specialists. In and Out Burger is a fast
When you want to determine the order of articles into an sequence returned by an XQuery query, you can use the > operators: – X
Using the Windows “split” feature available in the VS.NET IDE, you can split the document window into two and have two windows with the same
Consider a simple POJO class, like the one shown below: Class Person{ long id; String firstName; String lastName; …} Now, suppose you want to persist
s you design and implement ASP.NET web applications, you will need to fully master the techniques for displaying data to users. This need led Microsoft
ecent polls show that nearly fifty percent of applications with reporting functionality use Crystal Reports, and about twenty percent use SQL Server Reporting Services. That
he data-loss scenario I described in the DevX article SQL Server 2005 Bug Alert: Merge Replication Could Mean Data Loss (published November 2, 2007) is
eveloping Windows Vista Sidebar gadgets generally involves a lot of JavaScript programming. To make it possible for Sidebar gadgets to access the various systems’ information,
ost Standard Library algorithms operate on sequences whose boundaries are designated by a pair of iterators: one iterator marks the beginning of the sequence and