1 {********[ SOURCE FILE OF GRAPHICAL FREE VISION ]**********} 2 { } 3 { System independent GRAPHICAL clone of DIALOGS.PAS } 4 { } 5 { Interface Copyright (c) 1992 Borland International } 6 { } 7 { Copyright (c) 1996, 1997, 1998, 1999 by Leon de Boer } 8 { ldeboer@attglobal.net - primary e-mail addr } 9 { ldeboer@starwon.com.au - backup e-mail addr } 10 { } 11 {****************[ THIS CODE IS FREEWARE ]*****************} 12 { } 13 { This sourcecode is released for the purpose to } 14 { promote the pascal language on all platforms. You may } 15 { redistribute it and/or modify with the following } 16 { DISCLAIMER. } 17 { } 18 { This SOURCE CODE is distributed "AS IS" WITHOUT } 19 { WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR } 20 { ANY OTHER WARRANTIES WHETHER EXPRESSED OR IMPLIED. } 21 { } 22 {*****************[ SUPPORTED PLATFORMS ]******************} 23 { } 24 { Only Free Pascal Compiler supported } 25 { } 26 {**********************************************************} 27 unit FVConsts; 28 interface 29 30 { 31 The FVConsts unit declares constants for all object type IDs used in the 32 FreeVision library. They have been moved here for easier management. No 33 values for views declared in TV 2.0 have been changed from so that original 34 resource files may still be used. 35 } 36 const 37 { Views Unit } 38 idView = 1; 39 idFrame = 2; 40 idScrollBar = 3; 41 idScroller = 4; 42 idListViewer = 5; 43 idGroup = 6; 44 idWindow = 7; 45 46 { Dialogs Unit 10 - ? } 47 idDialog = 10; 48 idInputLine = 11; 49 idButton = 12; 50 idCluster = 13; 51 idRadioButtons = 14; 52 idCheckBoxes = 15; 53 idListBox = 16; 54 idStaticText = 17; 55 idLabel = 18; 56 idHistory = 19; 57 idParamText = 20; 58 idCommandCheckBoxes = 21; 59 idCommandRadioButtons = 22; 60 idCommandIcon = 23; 61 idBrowseButton = 24; 62 idEditListBox = 25; 63 idModalInputLine = 26; 64 idMultiCheckBoxes = 27; 65 idListDlg = 28; 66 67 { App Unit } 68 idBackground = 30; 69 idDesktop = 31; 70 71 { Config Unit } 72 idConfig = 32; 73 idMouseDlg = 33; 74 idVideoDlg = 34; 75 idClickTester = 35; 76 77 { Menus Unit } 78 idMenuBar = 40; 79 idMenuBox = 41; 80 idStatusLine = 42; 81 idMenuPopup = 43; 82 idMenuButton = 44; 83 84 { Objects Unit } 85 idCollection = 50; 86 idStringCollection = 51; 87 idStringList = 52; 88 idStrListMaker = 52; 89 idStrCollection = 69; 90 91 { Resource Unit } 92 idMemStringList = 52; 93 94 { Tabs Unit } 95 idTab = 55; 96 97 { StdDlg Unit } 98 idFileInputLine = 60; 99 idFileCollection = 61; 100 idFileList = 62; 101 idFileInfoPane = 63; 102 idFileDialog = 64; 103 idDirCollection = 65; 104 idDirListBox = 66; 105 idChDirDialog = 67; 106 idSortedListBox = 68; 107 idEditChDirDialog = 69; 108 109 { Editors Unit 70 - ? } 110 idEditor = 70; 111 idMemo = 71; 112 idFileEditor = 72; 113 idIndicator = 73; 114 idEditWindow = 74; 115 idEditWindowCollection = 75; { this value may need to be changed } 116 idEditorEngine = 76; 117 118 { Validate Unit } 119 idPXPictureValidator = 80; 120 idFilterValidator = 81; 121 idRangeValidator = 82; 122 idStringLookupValidator = 83; 123 idRealValidator = 84; 124 idByteValidator = 85; 125 idIntegerValidator = 86; 126 idSingleValidator = 87; 127 idWordValidator = 88; 128 idDateValidator = 89; 129 idTimeValidator = 90; 130 131 { Outline Unit } 132 idOutline = 91; 133 134 { ColorSel Unit } 135 idColorSelector = 92; 136 idMonoSelector = 93; 137 idColorDisplay = 94; 138 idColorGroupList = 95; 139 idColorItemList = 96; 140 idColorDialog = 97; 141 142 { TimedDlg Unit } 143 idTimedDialog = 98; 144 idTimedDialogText = 99; 145 146 { Statuses Unit } 147 idStatus = 300; 148 idStatusDlg = 301; 149 idStatusMessageDlg = 302; 150 idGauge = 303; 151 idArrowGauge = 304; 152 idBarGauge = 305; 153 idPercentGauge = 306; 154 idSpinnerGauge = 307; 155 idAppStatus = 308; 156 idHeapMinAvail = 309; 157 idHeapMemAvail = 310; 158 159 { FVList Unit } 160 161 { ColorTxt Unit } 162 idColoredText = 611; 163 164 { InpLong Unit } 165 idInputLong = 711; 166 167 { ASCIITab Unit } 168 idTable = 10030; 169 idReport = 10031; 170 idASCIIChart = 10032; 171 172 { 173 The FVConsts unit contains all command constants used in the FreeVision 174 library. They have been extracted from their original units and placed here 175 for easier maintainence and modification to remove conflicts, such as Borland 176 created with the cmChangeDir constant in the StdDlg and App units. 177 } 178 179 const 180 { App Unit } 181 cmNew = 30; 182 cmOpen = 31; 183 cmSave = 32; 184 cmSaveAs = 33; 185 cmSaveAll = 34; 186 cmSaveDone = 39; {! Needs to match value in app.pas} 187 cmChangeDir = 35; {!} 188 cmDosShell = 36; {!} 189 cmCloseAll = 37; 190 cmDelete = 38; 191 cmEdit = 40; 192 cmAbout = 41; 193 cmDesktopLoad = 42; 194 cmDesktopStore = 43; 195 cmNewDesktop = 44; 196 cmNewMenuBar = 45; 197 cmNewStatusLine = 46; 198 cmNewVideo = 47; 199 cmTransfer = 48; 200 cmResizeApp = 49; 201 cmQuitApp = 57; 202 203 cmRecordHistory = 60; 204 cmGrabDefault = 61; 205 cmReleaseDefault = 62; 206 207 cmHelpContents = 256; 208 cmHelpIndex = 257; 209 cmHelpTopic = 258; 210 cmHelpPrev = 259; 211 cmHelpUsingHelp = 260; 212 cmHelpAbout = 261; 213 214 cmBrowseDir = 262; 215 cmBrowseFile = 263; 216 217 { Views Unit } 218 cmValid = 0; 219 cmQuit = 1; 220 cmError = 2; 221 cmMenu = 3; 222 cmClose = 4; 223 cmZoom = 5; 224 cmResize = 6; 225 cmNext = 7; 226 cmPrev = 8; 227 cmHelp = 9; 228 cmOK = 10; 229 cmCancel = 11; 230 cmYes = 12; 231 cmNo = 13; 232 cmDefault = 14; 233 cmCut = 20; 234 cmCopy = 21; 235 cmPaste = 22; 236 cmUndo = 23; 237 cmClear = 24; 238 cmTile = 25; 239 cmCascade = 26; 240 cmHide = 27; 241 cmReceivedFocus = 50; 242 cmReleasedFocus = 51; 243 cmCommandSetChanged = 52; 244 cmScrollBarChanged = 53; 245 cmScrollBarClicked = 54; 246 cmSelectWindowNum = 55; 247 cmListItemSelected = 56; 248 249 { ColorSel Unit } 250 cmColorForegroundChanged = 71; 251 cmColorBackgroundChanged = 72; 252 cmColorSet = 73; 253 cmNewColorItem = 74; 254 cmNewColorIndex = 75; 255 cmSaveColorIndex = 76; 256 257 { StdDlg Unit 800 - ? } 258 cmFileOpen = 800; { Returned from TFileDialog when Open pressed } 259 cmFileReplace = 801; { Returned from TFileDialog when Replace pressed } 260 cmFileClear = 802; { Returned from TFileDialog when Clear pressed } 261 cmFileInit = 803; { Used by TFileDialog internally } 262 cmRevert = 805; { Used by TChDirDialog internally } 263 cmFileFocused = 806; { A new file was focused in the TFileList } 264 cmFileDoubleClicked = 807; { A file was selected in the TFileList } 265 266 { Config Unit 130-140, 900-999 } 267 cmConfigMouse = 130; { Mouse command disabled by Init if no mouse } 268 cmConfigOpen = 900; 269 cmConfigSave = 901; 270 cmConfigSaveAs = 902; 271 cmConfigMenu = 903; 272 cmConfigColors = 904; 273 cmConfigVideo = 905; 274 cmConfigCO80 = 906; 275 cmConfigBW80 = 907; 276 cmConfigMono = 908; 277 cmClock = 909; 278 cmClockSetFormat = 910; 279 280 { Editors Unit } 281 cmFind = 82; 282 cmReplace = 83; 283 cmSearchAgain = 84; 284 cmPrint = 85; 285 cmRedo = 86; 286 cmJumpLine = 87; 287 cmWindowList = 88; 288 cmCharLeft = 500; 289 cmCharRight = 501; 290 cmWordLeft = 502; 291 cmWordRight = 503; 292 cmLineStart = 504; 293 cmLineEnd = 505; 294 cmLineUp = 506; 295 cmLineDown = 507; 296 cmPageUp = 508; 297 cmPageDown = 509; 298 cmTextStart = 510; 299 cmTextEnd = 511; 300 cmNewLine = 512; 301 cmBackSpace = 513; 302 cmDelChar = 514; 303 cmDelWord = 515; 304 cmDelStart = 516; 305 cmDelEnd = 517; 306 cmDelLine = 518; 307 cmInsMode = 519; 308 cmStartSelect = 520; 309 cmHideSelect = 521; 310 cmEndSelect = 522; 311 cmIndentMode = 523; 312 cmUpdateTitle = 524; 313 cmReformPara = 525; 314 cmTabKey = 526; 315 cmInsertLine = 527; 316 cmScrollUp = 528; 317 cmScrollDown = 529; 318 cmHomePage = 530; 319 cmEndPage = 531; 320 cmJumpMark0 = 532; 321 cmJumpMark1 = 533; 322 cmJumpMark2 = 534; 323 cmJumpMark3 = 535; 324 cmJumpMark4 = 536; 325 cmJumpMark5 = 537; 326 cmJumpMark6 = 538; 327 cmJumpMark7 = 539; 328 cmJumpMark8 = 540; 329 cmJumpMark9 = 541; 330 cmReformDoc = 542; 331 cmSetMark0 = 543; 332 cmSetMark1 = 544; 333 cmSetMark2 = 545; 334 cmSetMark3 = 546; 335 cmSetMark4 = 547; 336 cmSetMark5 = 548; 337 cmSetMark6 = 549; 338 cmSetMark7 = 550; 339 cmSetMark8 = 551; 340 cmSetMark9 = 552; 341 cmSelectWord = 553; 342 cmSaveExit = 554; 343 cmCenterText = 555; 344 cmSetTabs = 556; 345 cmRightMargin = 557; 346 cmWordwrap = 558; 347 cmBludgeonStats = 559; 348 cmPrinterSetup = 560; 349 cmClipboard = 561; 350 cmSpellCheck = 562; 351 cmCopyBlock = 563; 352 cmMoveBlock = 564; 353 cmDelSelect = 565; 354 cmIdentBlock = 566; 355 cmUnidentBlock = 567; 356 cmFileHistory = 600; 357 358 { Statuses Unit } 359 cmStatusUpdate = 300; { note - need to set to valid value } 360 cmStatusDone = 301; 361 cmStatusPause = 302; 362 cmStatusResume = 303; 363 364 cmCursorChanged = 700; 365 366 367 { 368 The FVConsts unit declares standard help contexts used in FreeVision. By 369 placing all help contexts in one unit, duplicate help contexts are more 370 easily prevented 371 } 372 373 const 374 375 hcNoContext = 0; 376 hcDragging = 1; 377 hcOk = 2; 378 hcCancel = 3; 379 hcEdit = 4; 380 hcDelete = 5; 381 hcInsert = 6; 382 383 { App Unit } 384 hcNew = 65281; hcFileNew = hcNew; 385 hcOpen = 65282; hcFileOpen = hcOpen; 386 hcSave = 65283; hcFileSave = hcSave; 387 hcSaveAs = 65284; hcFileSaveAs = hcSaveAs; 388 hcSaveAll = 65285; hcFileSaveAll = hcSaveAll; 389 hcChangeDir = 65286; hcFileChangeDir = hcChangeDir; 390 hcDosShell = 65287; hcFileDOSShell = hcDosShell; 391 hcExit = 65288; hcFileExit = hcExit; 392 hcEditMenu = 65289; 393 hcHelpMenu = 65291; 394 hcHelpContents = 65292; 395 hcHelpIndex = 65293; 396 hcHelpTopic = 65294; 397 hcHelpPrev = 65295; 398 hcHelpUsingHelp = 65296; 399 hcHelpAbout = 65297; 400 hcWindowMenu = 65298; 401 hcUndo = $FF10; 402 hcCut = $FF11; 403 hcCopy = $FF12; 404 hcPaste = $FF13; 405 hcClear = $FF14; 406 hcTile = $FF20; 407 hcCascade = $FF21; 408 hcCloseAll = $FF22; 409 hcResize = $FF23; 410 hcZoom = $FF24; 411 hcNext = $FF25; 412 hcPrev = $FF26; 413 hcClose = $FF27; 414 hcHide = $FF28; 415 hcFileMenu = 65320; 416 hcSearchAndReplace =65325; 417 418 { Editors Unit } 419 hcFile_Menu = 2100; 420 { hcOpen = 2101; } 421 { hcNew = 2102; } 422 { hcSave = 2103; } 423 hcSaveDone = 2104; 424 { hcSaveAs = 2105; } 425 { hcChangeDir = 2106; } 426 { hcShellToDos = 2107; } 427 { hcExit = 2108; } 428 hcFile_Menu_Items = hcExit; 429 430 hcEdit_Menu = 2200; 431 { hcUndo = 2201; } 432 { hcCopy = 2202; } 433 { hcCut = 2203; } 434 { hcPaste = 2204; } 435 hcClipboard = 2205; 436 { hcClear = 2206; } 437 hcSpellCheck = 2207; 438 hcEdit_Menu_Items = hcSpellCheck; 439 440 hcSearch_Menu = 2300; 441 hcFind = 2301; 442 hcReplace = 2302; 443 hcAgain = 2303; 444 hcSearch_Menu_Items = hcAgain; 445 446 hcWindows_Menu = 2400; 447 { hcResize = 2401; } 448 { hcZoom = 2402; } 449 { hcPrev = 2403; } 450 { hcNext = 2404; } 451 { hcClose = 2405; } 452 { hcTile = 2406; } 453 { hcCascade = 2407; } 454 hcWindows_Menu_Items = hcCascade; 455 456 hcDesktop_Menu = 2500; 457 hcLoadDesktop = 2501; 458 hcSaveDesktop = 2502; 459 hcToggleVideo = 2503; 460 hcDesktop_Menu_Items = hcToggleVideo; 461 462 hcMisc_Commands = 2600; 463 hckbShift = 2601; 464 hckbCtrl = 2602; 465 hckbAlt = 2603; 466 hcMisc_Items = hckbAlt; 467 468 hcEditor_Commands = 2700; 469 hcCursor = 2701; 470 hcDeleting = 2702; 471 hcFormatting = 2703; 472 hcMarking = 2704; 473 hcMoving = 2705; 474 hcSaving = 2706; 475 hcSelecting = 2707; 476 hcTabbing = 2708; 477 hcBackSpace = 2709; 478 hcCenterText = 2710; 479 hcCharLeft = 2711; 480 hcCharRight = 2712; 481 hcDelChar = 2713; 482 hcDelEnd = 2714; 483 hcDelLine = 2715; 484 hcDelStart = 2716; 485 hcDelWord = 2717; 486 hcEndPage = 2718; 487 hcHideSelect = 2719; 488 hcHomePage = 2720; 489 hcIndentMode = 2721; 490 hcInsertLine = 2722; 491 hcInsMode = 2723; 492 hcJumpLine = 2724; 493 hcLineDown = 2725; 494 hcLineEnd = 2726; 495 hcLineStart = 2727; 496 hcLineUp = 2728; 497 hcNewLine = 2729; 498 hcPageDown = 2730; 499 hcPageUp = 2731; 500 hcReformDoc = 2732; 501 hcReformPara = 2733; 502 hcRightMargin = 2734; 503 hcScrollDown = 2735; 504 hcScrollUp = 2736; 505 hcSearchAgain = 2737; 506 hcSelectWord = 2738; 507 hcSetTabs = 2739; 508 hcStartSelect = 2740; 509 hcTabKey = 2741; 510 hcTextEnd = 2742; 511 hcTextStart = 2743; 512 hcWordLeft = 2744; 513 hcWordRight = 2745; 514 hcWordWrap = 2746; 515 516 hcJMarker_Menu = 2750; 517 hcJumpMark1 = 2751; 518 hcJumpMark2 = 2752; 519 hcJumpMark3 = 2753; 520 hcJumpMark4 = 2754; 521 hcJumpMark5 = 2755; 522 hcJumpMark6 = 2756; 523 hcJumpMark7 = 2757; 524 hcJumpMark8 = 2758; 525 hcJumpMark9 = 2759; 526 hcJumpMark0 = 2760; 527 hcJMarker_Menu_Items = 2761; 528 529 hcSMarker_Menu = 2770; 530 hcSetMark1 = 2771; 531 hcSetMark2 = 2772; 532 hcSetMark3 = 2773; 533 hcSetMark4 = 2774; 534 hcSetMark5 = 2775; 535 hcSetMark6 = 2776; 536 hcSetMark7 = 2777; 537 hcSetMark8 = 2778; 538 hcSetMark9 = 2779; 539 hcSetMark0 = 2780; 540 hcSMarker_Menu_Items = 2781; 541 542 hcEditor_Items = hcSMarker_Menu_Items; 543 544 { Dialog } 545 hcDialogs = 2800; 546 hcDCancel = 2801; 547 hcDNo = 2802; 548 hcDOk = 2803; 549 hcDYes = 2804; 550 hcDAbout = 2805; 551 hcDDirName = 2806; 552 hcDDirTree = 2807; 553 hcDChDir = 2808; 554 hcDRevert = 2809; 555 hcDName = 2810; 556 hcDFiles = 2811; 557 hcDFindText = 2812; 558 hcDLineNumber = 2813; 559 hcDReformDoc = 2814; 560 hcDReplaceTExt = 2815; 561 hcDRightMargin = 2816; 562 hcDTabStops = 2817; 563 hcListDlg = 2818; 564 565 { Checkbox help } 566 hcCCaseSensitive = 2900; 567 hcCWholeWords = 2901; 568 hcCPromptReplace = 2902; 569 hcCReplaceAll = 2903; 570 hcCReformCurrent = 2904; 571 hcCReformEntire = 2905; 572 573 { Statuses unit } 574 hcStatusPause = 2950; 575 hcStatusResume = 2951; 576 577 { Glossary } 578 Glossary = 3000; 579 GCloseIcon = 3001; 580 GDesktop = 3002; 581 GDialogBox = 3003; 582 GHistoryIcon = 3004; 583 GInputLine = 3005; 584 GMemIndicator = 3006; 585 GMenuBar = 3007; 586 GPulldownMenu = 3008; 587 GResizeCorner = 3009; 588 GSelectedText = 3010; 589 GStatusBar = 3011; 590 GTitleBar = 3012; 591 GWindowBorder = 3013; 592 GZoomIcon = 3014; 593 hcGlossary_Items = GZoomIcon; 594 595 { INI Unit } 596 hcDateFormatDlg = 1; 597 hcDateParts = 1; 598 hcDateOrder = 1; 599 hcTimeFormatDlg = 1; 600 hcClockFormatDlg = 1; 601 hcClockDateParts = 1; 602 hcClockTimeFormat = 1; 603 604 hcListViewer = 1; 605 606 { Options Help Contexts } 607 hcConfigMenu = 100; 608 hcConfigColors = hcConfigMenu + 1; 609 hcConfigDate = hcConfigColors + 1; 610 hcConfigEnvironment = hcConfigDate + 1; 611 hcConfigMouse = hcConfigEnvironment + 1; 612 hcConfigOpen = hcConfigMouse + 1; 613 hcConfigSave = hcConfigOpen + 1; 614 hcConfigSaveAs = hcConfigSave + 1; 615 hcConfigTime = hcConfigSaveAs + 1; 616 hcConfigVideo = hcConfigTime + 1; 617 hcConfigDesktopDlg = hcConfigVideo + 1; 618 hcConfigMouseDlg = hcConfigDesktopDlg + 1; 619 hcConfigTimeFormatDlg = hcConfigMouseDlg + 1; 620 hcConfigTimeSeparator = hcConfigTimeFormatDlg + 1; 621 hcConfigTimeComponents = hcConfigTimeSeparator + 1; 622 hcConfigTimeStyle = hcConfigTimeComponents + 1; 623 hcConfigClock = hcConfigTimeStyle + 1; 624 hcBrowseDir = 1; 625 hcBrowseFile = 1; 626 627 628 { 629 The FVConsts unit contains all history list constants used in the FreeVision 630 Library. 631 } 632 633 const 634 hiConfig = 1; 635 hiDirectories = 2; { non-specific } 636 hiDesktop = 3; 637 hiCurrentDirectories = 1; 638 hiFiles = 4; 639 640 implementation 641 642 end. 643