home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir01
/
f015270.re_
/
f015270.re
Wrap
Text File
|
1996-04-02
|
14KB
|
418 lines
/*----------------------------------------------------------------------+
| |
| Copyright (1985-95) Bentley Systems, Inc., All rights reserved. |
| |
| "MicroStation" is a registered trademark and "MDL" and "MicroCSL" |
| are trademarks of Bentley Systems, Inc. |
| |
| Limited permission is hereby granted to reproduce and modify this |
| copyrighted material provided that the resulting code is used only |
| in conjunction with Bentley Systems products under the terms of the |
| license agreement provided therein, and that this notice is retained |
| in its entirety in any such reproduction or modification. |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| $Logfile: J:/mdl/examples/lineinfo/lineinfo.r_v $
| $Workfile: lineinfo.r $
| $Revision: 1.3 $
| $Date: 30 Jun 1995 08:25:52 $
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| ANALYZE.R - |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| Include Files |
| |
+----------------------------------------------------------------------*/
#include <dlogbox.h>
#include <dlogids.h>
#include "lineinfo.h"
#include "linetxt.h"
#include "helpids.h"
/*----------------------------------------------------------------------+
| |
| Basic Dialog Box Constants |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| Local Defines |
| |
+----------------------------------------------------------------------*/
#undef XC
#define XC ((DCOORD_RESOLUTION/2) * ASPECT_SHOWELM)
#define OVERALLWIDTH 70*XC
#define OVERALLHEIGHT 25*YC
#define RBOXWDTH 42*XC
#define SBOXWDTH 30*XC
#define FBOXHGHT 4*YC
#define SBOXHGHT 7*YC
#define MBOXWDTH 26*XC
#define PBOXWDTH 38*XC
#define X0 XC
#define X1 XC + (12/12)*XC
#define X2 XC + (60/12)*XC
#define X3 XC + (514/12)*XC
#define X4 XC + (516/12)*XC
#define X5 XC + (100/12)*XC
#define X6 XC + (165/12)*XC
#define X7 XC + (360/12)*XC
#define X8 XC + (400/12)*XC
#define X9 XC + (600/12)*XC
#define X10 XC + (200/12)*XC
#define X11 XC + (235/12)*XC
#define X12 XC + (700/12)*XC
#define X13 XC + (310/12)*XC
#define X14 XC + (12/12)*XC
#define X15 XC + (665/12)*XC
#define X16 XC + (740/12)*XC
#define X17 XC + (800/12)*XC
#define X18 XC + (590/12)*XC
#define YSIZE (GENY(2) - GENY(1))
#define HALFY (YSIZE / 2)
#define GYHALF(row) (GENY(row) + HALFY)
#define QTRY (YSIZE / 4)
#define GYQTR(row) (GENY(row) - QTRY)
/*----------------------------------------------------------------------+
| |
| Show Element Editing Dialog Box |
| |
+----------------------------------------------------------------------*/
DialogBoxRsc DIALOGID_Lineinfo =
{
DIALOGATTR_DEFAULT | DIALOGATTR_SINKABLE,
OVERALLWIDTH, OVERALLHEIGHT,
NOHELP, MHELP,
HOOKDIALOGID_Lineinfo, NOPARENTID,
TXTA_ShowElementDialogTitle,
{
{{X0, GENY (1), 20*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X9, GENY (1), 15*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X0, GYHALF (2), RBOXWDTH, FBOXHGHT}, GroupBox, 0, ON, 0, TXTA_Range, ""},
{{X14, GYHALF (3), 5*XC, 0}, Label, 0, ON, ALIGN_LEFT, "low :", ""},
{{X2, GYHALF (3), 35*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X14, GYHALF (4), 5*XC, 0}, Label, 0, ON, ALIGN_LEFT, "high:", ""},
{{X2, GYHALF (4), 35*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X3, GYHALF (2), MBOXWDTH, FBOXHGHT}, GroupBox, 0, ON, 0, TXTA_Misc, ""},
{{X4, GYHALF (3), 23*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X4, GYHALF (4), 23*XC, 0}, Label, 0, ON, ALIGN_LEFT, "", ""},
{{X0, GYHALF (6), SBOXWDTH, SBOXHGHT}, GroupBox, 0, ON, 0, TXTA_Symbology, ""},
{{X5, GYHALF (7), 4*XC, 0}, Text, TEXTID_ShowLevel, ON, 0, "", ""},
{{X5, GYHALF (8), 4*XC, 0}, Text, TEXTID_ShowColor, ON, 0, "", ""},
{{X6, GYHALF (8), 0, 0}, ColorPicker, COLORPICKERID_ShowColor, ON, 0, "", ""},
{{X5, GYHALF (9), 4*XC, 0}, Text, TEXTID_ShowWeight, ON, ALIGN_LEFT, "", ""},
{{X6, GYHALF (9), -58, 0}, OptionButton, OPTIONBUTTONID_ShowWeight, ON, 0, "", ""},
{{X5, GYHALF (10), 4*XC, 0}, Text, TEXTID_ShowStyle, ON, ALIGN_LEFT, "", ""},
{{X6, GYHALF (10), 0, 0}, OptionButton, OPTIONBUTTONID_ShowStyle,
ON, 0, "", ""},
{{X5, GYHALF (12),7*XC, 0}, Text, TEXTID_ShowGgroup, ON,
ALIGN_LEFT, "", ""},
{{X13, GYHALF (12),17*XC, 0}, OptionButton, OPTIONBUTTONID_ShowClass,
ON,0,"Class:", ""},
{{X7, GYHALF (6), PBOXWDTH, SBOXHGHT}, GroupBox, 0, ON, 0, TXTA_Properties, ""},
{{X8, GYHALF (7),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropH,ON,0,"", ""},
{{X8, GYHALF (8),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropS,ON,0,"", ""},
{{X8, GYHALF (9),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropP, OFF,0,"", ""},
{{X8, GYHALF (10),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropR, ON,0,"", ""},
{{X9, GYHALF (7),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropA, OFF,0,"", ""},
{{X9, GYHALF (8),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropM, ON,0,"", ""},
{{X9, GYHALF (9),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropN, ON,0,"", ""},
{{X9, GYHALF (10),15*XC, 0}, OptionButton, OPTIONBUTTONID_ShowPropL, ON,0,"", ""},
{{X0, GENY (14), 0, 0}, ListBox, LISTID_ElementDataList, ON, 0,"", ""},
{{X12, GYHALF (18), BUTTON_STDWIDTH, 0},PushButton, PUSHBUTTONID_LineinfoApply,ON,0,"", ""},
}
};
DItem_TextRsc TEXTID_ShowLevel =
{
NOCMD, MCMD, NOSYNONYM,
HELPID_TEXT_ShowLevel, MHELPTOPIC,
NOHOOK, NOARG,
5, "%d", "%d", "1", "63", NOMASK, NOCONCAT,
TXTA_Level,
"elDscrP->el.ehdr.level"
};
DItem_TextRsc TEXTID_ShowColor =
{
NOCMD, MCMD, SYNONYMID_ShowColor,
HELPID_TEXT_ShowColor, MHELPTOPIC,
NOHOOK, NOARG,
5, "%-ld", "%ld", "0", "253", NOMASK, NOCONCAT,
TXTA_Color,
"elDscrP->el.hdr.dhdr.symb.b.color"
};
DItem_TextRsc TEXTID_ShowWeight =
{
NOCMD, MCMD, SYNONYMID_ShowWeight,
HELPID_TEXT_ShowWeight, MHELPTOPIC,
NOHOOK, NOARG,
5, "%d", "%d", "0", "15", NOMASK, NOCONCAT,
TXTA_Weight,
"elDscrP->el.hdr.dhdr.symb.b.weight"
};
DItem_TextRsc TEXTID_ShowStyle =
{
NOCMD, MCMD, SYNONYMID_ShowStyle,
HELPID_TEXT_ShowStyle, MHELPTOPIC,
NOHOOK, NOARG,
5, "%d", "%d", "0", "7", NOMASK, NOCONCAT,
TXTA_Style,
"elDscrP->el.hdr.dhdr.symb.b.style"
};
DItem_TextRsc TEXTID_ShowGgroup =
{
NOCMD, MCMD, NOSYNONYM,
HELPID_TEXT_ShowGgroup, MHELPTOPIC,
HOOKITEMID_Ggroup, NOARG,
7, "%d", "%d", "0", "65535", NOMASK, NOCONCAT,
TXTA_GGroup,
"elDscrP->el.hdr.dhdr.grphgrp"
};
DItem_PushButtonRsc PUSHBUTTONID_LineinfoApply =
{
NOT_DEFAULT_BUTTON,
NOHELP, MHELPTOPIC,
HOOKITEMID_Apply, ACTIONBUTTON_APPLY, NOCMD, MCMD, "",
TXTA_Apply
};
DItem_ColorPickerRsc COLORPICKERID_ShowColor =
{
NOCMD, MCMD, SYNONYMID_ShowColor,
HELPID_COLPCK_ShowColor, MHELPTOPIC,
NOHOOK, NOARG, TEXTID_ShowColor, NOMASK,
"",
"elDscrP->el.hdr.dhdr.symb.b.color"
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowClass =
{
SYNONYMID_ShowClass,
HELPID_OPTBUT_ShowClass, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.class",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON,"Primary"},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON,"Pattern component"},
{NOTYPE, NOICON, NOCMD, MCMD, 2, 0x000F, ON,"Construction"},
{NOTYPE, NOICON, NOCMD, MCMD, 3, 0x000F, ON,"Dimension"},
{NOTYPE, NOICON, NOCMD, MCMD, 4, 0x000F, OFF,"Primary Rule"},
{NOTYPE, NOICON, NOCMD, MCMD, 5, 0x000F, ON,"Linear Pattern"},
{NOTYPE, NOICON, NOCMD, MCMD, 6, 0x000F, OFF,"Construction Rule"}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropS =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropS, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.s",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, "Snappable"},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON, "NonSnappable"}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowStyle =
{
SYNONYMID_ShowStyle,
HELPID_OPTBUT_ShowStyle, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.symb.b.style",
{
{Icon, ICONID_LineStyle0, NOCMD, MCMD, 0, NOMASK, ON, ""},
{Icon, ICONID_LineStyle1, NOCMD, MCMD, 1, NOMASK, ON, ""},
{Icon, ICONID_LineStyle2, NOCMD, MCMD, 2, NOMASK, ON, ""},
{Icon, ICONID_LineStyle3, NOCMD, MCMD, 3, NOMASK, ON, ""},
{Icon, ICONID_LineStyle4, NOCMD, MCMD, 4, NOMASK, ON, ""},
{Icon, ICONID_LineStyle5, NOCMD, MCMD, 5, NOMASK, ON, ""},
{Icon, ICONID_LineStyle6, NOCMD, MCMD, 6, NOMASK, ON, ""},
{Icon, ICONID_LineStyle7, NOCMD, MCMD, 7, NOMASK, ON, ""},
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowWeight =
{
SYNONYMID_ShowWeight,
HELPID_OPTBUT_ShowWeight, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.symb.b.weight",
{
{Icon, ICONID_LineWeight0, NOCMD, MCMD, 0, NOMASK, ON, ""},
{Icon, ICONID_LineWeight1, NOCMD, MCMD, 1, NOMASK, ON, ""},
{Icon, ICONID_LineWeight2, NOCMD, MCMD, 2, NOMASK, ON, ""},
{Icon, ICONID_LineWeight3, NOCMD, MCMD, 3, NOMASK, ON, ""},
{Icon, ICONID_LineWeight4, NOCMD, MCMD, 4, NOMASK, ON, ""},
{Icon, ICONID_LineWeight5, NOCMD, MCMD, 5, NOMASK, ON, ""},
{Icon, ICONID_LineWeight6, NOCMD, MCMD, 6, NOMASK, ON, ""},
{Icon, ICONID_LineWeight7, NOCMD, MCMD, 7, NOMASK, ON, ""},
{Icon, ICONID_LineWeight8, NOCMD, MCMD, 8, NOMASK, ON, ""},
{Icon, ICONID_LineWeight9, NOCMD, MCMD, 9, NOMASK, ON, ""},
{Icon, ICONID_LineWeight10, NOCMD,MCMD, 10, NOMASK, ON, ""},
{Icon, ICONID_LineWeight11, NOCMD,MCMD, 11, NOMASK, ON, ""},
{Icon, ICONID_LineWeight12, NOCMD,MCMD, 12, NOMASK, ON, ""},
{Icon, ICONID_LineWeight13, NOCMD,MCMD, 13, NOMASK, ON, ""},
{Icon, ICONID_LineWeight14, NOCMD,MCMD, 14, NOMASK, ON, ""},
{Icon, ICONID_LineWeight15, NOCMD,MCMD, 15, NOMASK, ON, ""},
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropH =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropH, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.h",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, TXTA_Solid},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, OFF, TXTA_Hole}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropP =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropP, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.p",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, OFF, TXTA_Planar},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, OFF, TXTA_NonPlanar}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropR =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropR, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.r",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, TXTA_ViewDep},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON, TXTA_ViewIndep}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropA =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropA, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.a",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, OFF, TXTA_NoAttrib},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, OFF, TXTA_Attrib}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropM =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropM, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.m",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, TXTA_NotMod},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON, TXTA_Mod}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropN =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropN, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.n",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, TXTA_NotNew},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON, TXTA_New}
}
};
DItem_OptionButtonRsc OPTIONBUTTONID_ShowPropL =
{
NOSYNONYM,
HELPID_OPTBUT_ShowPropL, MHELPTOPIC,
NOHOOK, NOARG,
"",
"elDscrP->el.hdr.dhdr.props.b.l",
{
{NOTYPE, NOICON, NOCMD, MCMD, 0, 0x000F, ON, TXTA_NotLocked},
{NOTYPE, NOICON, NOCMD, MCMD, 1, 0x000F, ON, TXTA_Locked}
}
};
DItem_SynonymsRsc SYNONYMID_ShowColor =
{
{
{Text, TEXTID_ShowColor},
{ColorPicker, COLORPICKERID_ShowColor},
}
};
DItem_SynonymsRsc SYNONYMID_ShowStyle =
{
{
{Text, TEXTID_ShowStyle},
{OptionButton, OPTIONBUTTONID_ShowStyle},
}
};
DItem_SynonymsRsc SYNONYMID_ShowClass =
{
{
{Text, TEXTID_ShowClass},
{OptionButton, OPTIONBUTTONID_ShowClass},
}
};
DItem_SynonymsRsc SYNONYMID_ShowWeight =
{
{
{Text, TEXTID_ShowWeight},
{OptionButton, OPTIONBUTTONID_ShowWeight},
}
};
DItem_ListBoxRsc LISTID_ElementDataList =
{
HELPID_LISTBOX_ElementDataList, MHELPTOPIC,
HOOKITEMID_List_ShowElement, NOARG,
LISTATTR_NEVERSELECTION | LISTATTR_NOKEYSEARCH | LISTATTR_FIXEDFONT,
4, 0, "",
{
{70*XC, 62, 0, ""},
}
};