//*****************************************************************************
//*                                                                           *
//*                                GBASE.                                  *
//*                                                                           *
//*                            PROPRIETARY DATA                               *   
//*                                                                           *
//*  Licensed Material - Property Of GBase                                      *
//*                                                                           *
//*  "Restricted Materials of GBase"                                            *
//*                                                                           *
//*  GBase Client SDK                                                  *
//*                                                                           *
//*  Copyright GBASE  2007, 2009. All rights reserved.               *
//*                                                                           *
//*****************************************************************************
//****************************************************************************
//
//	File	:	ILogin.rc
// 
//****************************************************************************

#include "windows.h"
#include "ilogin.h"

// Icon
ILOGIN                  ICON    DISCARDABLE     "ilogin.ICO"

// Menu
ILOGINMENU MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Run",                  IDM_RUN
        MENUITEM SEPARATOR
        MENUITEM "E&xit\tAlt+F4",         IDM_EXIT
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About ILogin",         IDM_ABOUT
    END
END

// Dialogs
ABOUTBOX DIALOG 73, 44, 140, 99
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About ILogin Demo"
FONT 8, "System"
BEGIN
    ICON            "ILOGIN", ABOUT_ICO, 61, 10, 18, 20
    CTEXT           "ILogin Demo for GBase-Connect for Win64", ABOUT_TXT, 10, 
                    32, 120, 16
    CTEXT           "Demonstrates use of Login structure for setting connection parameters.", 
                    -1, 10, 54, 120, 22
    DEFPUSHBUTTON   "&Ok", IDOK, 53, 80, 40, 14, WS_GROUP
END

CUSTOMER DIALOG 25, 25, 175, 158
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Customer Records Found"
FONT 8, "System"
BEGIN
    LTEXT           "Number  First Name      Last Name", RUN_TEXT, 9, 16, 
                    154, 8
    LISTBOX         RUN_LIST, 9, 26, 160, 105, LBS_USETABSTOPS | WS_VSCROLL | 
                    WS_TABSTOP
    DEFPUSHBUTTON   "&Ok", IDOK, 78, 139, 24, 14, WS_GROUP
END

ILOGIN DIALOG 72, 26, 177, 181
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Login Parameters"
FONT 8, "System"
BEGIN
    LTEXT           "Server", IDC_TEXT, 6, 5, 54, 10
    EDITTEXT        IDC_SERVER, 64, 4, 84, 12, ES_AUTOHSCROLL, 0x00020000
    LTEXT           "Hostname", IDC_TEXT2, 6, 21, 54, 10
    EDITTEXT        IDC_HOST, 64, 20, 84, 12, ES_AUTOHSCROLL
    LTEXT           "Servicename", IDC_TEXT3, 6, 37, 54, 10
    EDITTEXT        IDC_SERV, 64, 36, 84, 12, ES_AUTOHSCROLL
    LTEXT           "Protocolname", 104, 6, 52, 54, 10
    EDITTEXT        IDC_PROTOCOL, 64, 51, 84, 12, ES_AUTOHSCROLL
    LTEXT           "Username", IDC_TEXT4, 6, 68, 54, 10
    EDITTEXT        IDC_USER, 64, 67, 84, 12, ES_AUTOHSCROLL
    LTEXT           "Password", IDC_TEXT5, 6, 84, 54, 10
    EDITTEXT        IDC_PASS, 64, 83, 84, 12, ES_PASSWORD | ES_AUTOHSCROLL
    LTEXT           "Stores Database", IDC_TEXT6, 6, 100, 54, 10
    EDITTEXT        IDC_DBASE, 64, 99, 84, 12, ES_AUTOHSCROLL
    CTEXT           "Fill in desired values.", IDC_TEXT7, 5, 117, 168, 9
    CTEXT           "Server, Host, Service, Protocol, User and Password fields will be read from Registry if left blank.", 
                    IDC_TEXT8, 5, 128, 169, 18
    CTEXT           "Stores7 will be used if Database field is left blank.", 
                    IDC_TEXT10, 5, 148, 169, 10
    DEFPUSHBUTTON   "&OK", IDOK, 35, 163, 50, 14, WS_GROUP
    PUSHBUTTON      "&Cancel", IDCANCEL, 91, 163, 50, 14
END

STRINGTABLE PRELOAD DISCARDABLE 
BEGIN
	IDS_DATABASE			"stores7"
	IDS_TITLEBAR			"ILogin Demo for GBase-Connect for Win64"
	IDS_CLOSING				"Closing Session"
	IDS_MSGBOX1				"Message From ILogin Demo"
	IDS_NOTFOUND			"Database '%s' not found on the server."
        IDS_TABNOTFOUND         "Customer table not found in '%s' Database"
	IDS_DBASEERR1			"Database: Sqlcode = %ld\nRefer to GBasedbt Find Error utility or\nGBasedbt Error Messages manual for\nmore details on this Error number."
	IDS_FORMAT1				"%6d\t%.30s\t%.30s"

END
