The Latest

DevX - Software Development Resource

Highlighting/Making Bold Button Text

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

DevX - Software Development Resource

Getting Rid of clipRect for paint()

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

DevX - Software Development Resource

MoveFile command (Delphi 32)

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

DevX - Software Development Resource

Creating Windows without the VCL.

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

DevX - Software Development Resource

Multithreading

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:

DevX - Software Development Resource

Setting up Paradox Tables on a Network

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

DevX - Software Development Resource

Conversion of a non-OO programmer to Delphi

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.

DevX - Software Development Resource

Drag and Drop for List Boxes

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,

DevX - Software Development Resource

TDBGrid flickering

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

DevX - Software Development Resource

Creating a LIST_SELECT Event

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,?)

DevX - Software Development Resource

Changing Button Captions

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

DevX - Software Development Resource

How do I copy a file in Delphi?

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

DevX - Software Development Resource

TIniFile’s Hidden Limitation

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?

DevX - Software Development Resource

Creating Forms in Shapes Other than Rectangles

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

DevX - Software Development Resource

Running Java on Non-network Local PC

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

DevX - Software Development Resource

How can I convert numbers to hexadecimal strings?

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

DevX - Software Development Resource

Can I control the position of new browser windows?

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

DevX - Software Development Resource

Tables in Borland Database Engine/Delphi

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

DevX - Software Development Resource

Implementing the C enum Keyword

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

DevX - Software Development Resource

How can I create JavaScript enhanced web pages?

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

DevX - Software Development Resource

Disabling Netscape Toolbar Functions

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

DevX - Software Development Resource

Printing from Applets

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

DevX - Software Development Resource

Writing Servers in Java

Question: How can a server written in Java work like a UNIX daemon? To me it seems that a server cannot be an applet. Is it a standalone application? Answer: