View RSS Feed

Development Team Blog

  1. How to Display other Image Formats in the cCJGrid

    Visual DataFlex supports bitmaps and icons in the standard controls. If you have other graphic format files (like TIFF, GIF, JPEG, PNG etc) you need to use either an ActiveX object, a DLL that does it for you or use the Graphics Library free available for download. For the CodeJock Report Control based Grids in Visual DataFlex 16.0 and higher it is a different case. This blog tells you how to use the popular graphics formats in the grid.

    psImage
    When you want to display an image ...

    Updated 1-Sep-2011 at 11:55 AM by Vincent Oorsprong

    Categories
    Uncategorized
  2. The Case of OnIdle

    From time to time the question arises "how can I terminate my program when no activity took place?".

    Visual DataFlex offers two features named DFTIMER and cIdleHandler but both do not really cover the topic. Let us look closer at these two options and find a real solution.

    A Timer (DFTIMER)
    A timer (DFTIMER) fires a message every NN milliseconds no matter there is activity or not. In the list of tables treeview in Database Explorer we use an object of this class ...
  3. How to Get the Size of the Client Area in the CodeJock Era?

    A typical Visual DataFlex Windows application is an MDI application. The MDI contains of a panel with a menu bar, one or more tool bars, a status bar and a gray area called the client area. It is the client area that provides support for MDI children, the (db)Views, (db)ReportViews.

    Prior to Visual DataFlex 12.1 when we introduced the use of CodeJock Commandbars you could retrieve the size of the client area via the GuiSize built-in function call used for the oClientArea object. ...
    Categories
    Uncategorized
  4. Sequential Reading Data

    We all know DataFlex is a great product to build database applications, most of the data will be entered by end-users and printed or otherwise processed. But what if you need to import data from other manufacturers? What do we have to do?

    Sequential I/O commands
    When we want to read data in a DataFlex application we can make a choice between the commands Read, ReadLn, Read_Block and Read_Hex. Of course before you can read the input stream (usually a file) needs to be opened ...
  5. How to change the internet connection timeout

    When your Visual DataFlex application makes an external call to a webservice the main program waits for its completion. If the request does not return immediately several things can be the cause. Your connection to your ISP can slow, the webserver you try to reach is busy, can be difficult found etc. If you want your application to continue as soon as possible and know (and this is the unknown keyfactor) that particular call should not take more than a couple of milliseconds to complete you can ...
  6. Programmatically find out if UAC is turned ON

    UAC, short for User Access Control, the feature built in Microsoft Windows Vista and higher is turned off by a number of users and developers because they do not like that the operating system asks for permission to write or access certain areas of their environment. Building your applications you are however advised not to do this because sooner or later you will install your not UAC compliant application at a UAC controlled PC and that is not goo.

    How can you find out if UAC is ...
  7. How to break a text line in a Textbox

    I received a support call from a developer that used a Textbox control in his program. The textbox wrapped on the screen when the text is too wide for the width of the control but the developer wanted to break the textline at a given location. The question was whether it is possible and how?

    The text in a Textbox control can be wrapped at a given location by inserting a Character(13) in the label at the location where you want the new line to start.
    Code:
    Object oMyTextBox Is A
    ...
  8. How to get volume information

    Always wanted to know what drives are available in your computer? Wanted to know what the status of the drive is? Wanted to know the serialnumber (e.g. 503E-A401)? Wanted to know is filename casing preserved? No... then go to the next blog. Yes, read on...

    Drives
    Visual DataFlex has a command called GetDskInfo. You pass it an integer and because drives can be assigned to a drive letter there is a maximum of 26 drives. So we can make a loop through all the drives. In the following ...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	VolumeInfo.jpg 
Views:	1873 
Size:	74.8 KB 
ID:	3766  
  9. How to get detail information from the callstack

    Recently I received a support call from a developer who was very pleased with the fact that the product now has a command to return the current callstack. He said however it is one string and I would like to retrieve detailed information from the callstack. I told the developer to look at string manipulation functions and that made him not so happy. The amount of work was high he thought.

    Because I said it is not so difficult he challenged me to make a function that makes it easier ...
  10. How to Delete Multiple Records in one Go with Database Explorer?

    Once in a while we get the question how can I delete multiple records with Database Explorer. In this blog I will tell you what your options are.

    From the initial revision up there is a function called "Erase all Data". You can find this on the File pulldown. The option is not enabled by default because Database Explorer will configure itself in its most defensive state. Via the configuration dialog you can - when you have dbAdmin rights (Studio users have this option set) - allow ...
Page 3 of 3 FirstFirst 123