Category : C Source Code
Archive   : DIALOG.ZIP
Filename : PRNDLG.HPP

 
Output of file : PRNDLG.HPP contained in archive : DIALOG.ZIP
//
// $Header$
// $Log$
//
// Copyright 1991
//
// Objective Systems, Inc.
// Richard A. Doust 3/13/91
// Phone: (201) 335-0691
//

#ifndef PRNDLG_HPP
#define PRNDLG_HPP
#include
#include

class PrinterDialog : public UIW_WINDOW
{
private:

// data
enum { DISPLAY_DATA = 10000, UPDATE_DATA,
CLEAR_DIALOG, READ_RECORD, UPDATE_RECORD,
APPEND_RECORD, PREV_RECORD, NEXT_RECORD,
FIRST_RECORD, LAST_RECORD, DELETE_RECORD
};
char PrnNum[7];
char PrnName[36];
char PrnTele[11];
char PrnFax[11];
UIW_STRING *PrnNumEdit;
UIW_STRING *PrnNamEdit;
UIW_FORMATTED_STRING *PrnTelEdit;
UIW_FORMATTED_STRING *PrnFaxEdit;
PXTABLE PrinterTable;
PXRECORD PrintRec;

PXFIELD PrnNumFld;
PXFIELD PrnNameFld;
PXFIELD PrnTeleFld;
PXFIELD PrnFaxFld;
USHORT error;

// methods
static int Validate(void *StrFld, int ccode);
int RetrieveData(void *StrFld, int ccode);
int Event(const UI_EVENT &event);
static void Process(void *button, UI_EVENT &event);
void ProcessDialog(void *button, UI_EVENT &event);
static void Cancel(void *button, UI_EVENT &event);
static void Next(void *button, UI_EVENT &event);
static void Prev(void *button, UI_EVENT &event);
static void First(void *button, UI_EVENT &event);
static void Last(void *button, UI_EVENT &event);
static void Clear(void *button, UI_EVENT &event);
static void Delete(void *button, UI_EVENT &event);

public:

// methods
PrinterDialog(void);
};

#endif

  3 Responses to “Category : C Source Code
Archive   : DIALOG.ZIP
Filename : PRNDLG.HPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/