home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / demo / vbxpress / vbxpdemo.frm < prev    next >
Text File  |  1994-08-15  |  18KB  |  489 lines

  1. VERSION 2.00
  2. Begin Form VBXpress_Demo 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "VBXpress Controls Demo"
  5.    ClientHeight    =   6180
  6.    ClientLeft      =   450
  7.    ClientTop       =   690
  8.    ClientWidth     =   8970
  9.    ClipControls    =   0   'False
  10.    Height          =   6585
  11.    Icon            =   VBXPDEMO.FRX:0000
  12.    Left            =   390
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   428.98
  15.    ScaleMode       =   0  'Benutzerdefiniert
  16.    ScaleWidth      =   598.936
  17.    Top             =   345
  18.    Width           =   9090
  19.    Begin mcRocker mcRocker1 
  20.       BtnPtr          =   1
  21.       BtnState        =   0
  22.       Float           =   0   'False
  23.       Height          =   360
  24.       Left            =   7590
  25.       Style           =   4
  26.       TabIndex        =   20
  27.       Top             =   4680
  28.       Width           =   735
  29.       z_f             =   -1
  30.    End
  31.    Begin zdHelp zdHelp1 
  32.       BtnPtr          =   1
  33.       BtnState        =   0
  34.       DragIcon        =   VBXPDEMO.FRX:0302
  35.       DragMode        =   1  'Automatisch
  36.       Float           =   0   'False
  37.       Height          =   345
  38.       Left            =   8535
  39.       Style           =   0
  40.       TabIndex        =   19
  41.       Top             =   101
  42.       Width           =   375
  43.       z_f             =   -1
  44.    End
  45.    Begin ZoDaToolbar ZoDaToolbar1 
  46.       BtnPtr          =   1
  47.       BtnState        =   0
  48.       Float           =   0   'False
  49.       Height          =   2565
  50.       Left            =   255
  51.       Style           =   1
  52.       TabIndex        =   18
  53.       Top             =   2220
  54.       Width           =   510
  55.       z_f             =   -1
  56.    End
  57.    Begin Mixer Mixer1 
  58.       BodyClick       =   0   'False
  59.       BtnPtr          =   1
  60.       BtnState        =   0
  61.       Clicks          =   0   'False
  62.       Float           =   0   'False
  63.       Height          =   1980
  64.       Index           =   1
  65.       Left            =   5790
  66.       MaxVal          =   100
  67.       MinVal          =   0
  68.       Style           =   1
  69.       TabIndex        =   17
  70.       Top             =   2130
  71.       Value           =   0
  72.       Width           =   375
  73.       z_f             =   -1
  74.    End
  75.    Begin Mixer Mixer1 
  76.       BodyClick       =   0   'False
  77.       BtnPtr          =   1
  78.       BtnState        =   0
  79.       Clicks          =   0   'False
  80.       Float           =   0   'False
  81.       Height          =   1980
  82.       Index           =   0
  83.       Left            =   5310
  84.       MaxVal          =   100
  85.       MinVal          =   0
  86.       Style           =   1
  87.       TabIndex        =   16
  88.       Top             =   2130
  89.       Value           =   0
  90.       Width           =   375
  91.       z_f             =   -1
  92.    End
  93.    Begin zdVUMETER zdVUMETER1 
  94.       BtnPtr          =   1
  95.       BtnState        =   0
  96.       Float           =   0   'False
  97.       Height          =   930
  98.       Index           =   1
  99.       Left            =   3105
  100.       MaxVal          =   100
  101.       MinVal          =   0
  102.       Style           =   1
  103.       TabIndex        =   15
  104.       Top             =   2160
  105.       Value           =   0
  106.       Width           =   1755
  107.       z_f             =   -1
  108.    End
  109.    Begin zdVUMETER zdVUMETER1 
  110.       BtnPtr          =   1
  111.       BtnState        =   0
  112.       Float           =   0   'False
  113.       Height          =   930
  114.       Index           =   0
  115.       Left            =   1245
  116.       MaxVal          =   100
  117.       MinVal          =   0
  118.       Style           =   1
  119.       TabIndex        =   14
  120.       Top             =   2160
  121.       Value           =   0
  122.       Width           =   1755
  123.       z_f             =   -1
  124.    End
  125.    Begin mcRuler mcRuler1 
  126.       BodyClick       =   0   'False
  127.       BtnPtr          =   1
  128.       BtnState        =   0
  129.       Clicks          =   0   'False
  130.       Float           =   0   'False
  131.       Height          =   435
  132.       Left            =   45
  133.       MaxVal          =   106
  134.       MinVal          =   0
  135.       Style           =   1
  136.       TabIndex        =   10
  137.       Top             =   90
  138.       Value           =   0
  139.       Width           =   4935
  140.       z_f             =   -1
  141.    End
  142.    Begin FileButton FileButton1 
  143.       BtnPtr          =   1
  144.       BtnState        =   0
  145.       Float           =   0   'False
  146.       Height          =   345
  147.       Left            =   7680
  148.       Style           =   1
  149.       TabIndex        =   9
  150.       Top             =   101
  151.       Width           =   765
  152.       z_f             =   -1
  153.    End
  154.    Begin mcCommand mcCommand1 
  155.       BtnPtr          =   1
  156.       BtnState        =   0
  157.       Float           =   0   'False
  158.       Height          =   645
  159.       Left            =   7455
  160.       Style           =   0
  161.       TabIndex        =   8
  162.       Top             =   5250
  163.       Width           =   1155
  164.       z_f             =   -1
  165.    End
  166.    Begin mcBigButtons mcBigButtons1 
  167.       BtnPtr          =   1
  168.       BtnState        =   0
  169.       Float           =   0   'False
  170.       Height          =   1125
  171.       Left            =   405
  172.       Style           =   0
  173.       TabIndex        =   7
  174.       Top             =   4920
  175.       Width           =   6765
  176.       z_f             =   -1
  177.    End
  178.    Begin mcSpin mcSpin1 
  179.       BtnPtr          =   1
  180.       BtnState        =   0
  181.       Float           =   0   'False
  182.       Height          =   375
  183.       Left            =   5340
  184.       Style           =   7
  185.       TabIndex        =   6
  186.       Top             =   870
  187.       Width           =   210
  188.       z_f             =   -1
  189.    End
  190.    Begin mcPalette mcPalette1 
  191.       BorderStyle     =   1  'nicht Σnderbar, einfach
  192.       BtnPtr          =   1
  193.       BtnState        =   0
  194.       Caption         =   "Tool Palette"
  195.       Float           =   -1  'True
  196.       Height          =   1680
  197.       Left            =   6570
  198.       Style           =   0
  199.       TabIndex        =   5
  200.       TabStop         =   0   'False
  201.       Top             =   1995
  202.       Width           =   1395
  203.       z_f             =   -1
  204.    End
  205.    Begin Recorder Recorder1 
  206.       BtnPtr          =   1
  207.       BtnState        =   0
  208.       Float           =   0   'False
  209.       Height          =   450
  210.       Left            =   1245
  211.       Style           =   1
  212.       TabIndex        =   4
  213.       Top             =   3255
  214.       Width           =   3615
  215.       z_f             =   -1
  216.    End
  217.    Begin Schrift Schrift1 
  218.       BtnPtr          =   1
  219.       BtnState        =   0
  220.       Float           =   0   'False
  221.       Height          =   345
  222.       Left            =   6360
  223.       Style           =   2
  224.       TabIndex        =   3
  225.       Top             =   101
  226.       Width           =   1140
  227.       z_f             =   -1
  228.    End
  229.    Begin mcHorizSlider mcHorizSlider1 
  230.       BodyClick       =   0   'False
  231.       BtnPtr          =   1
  232.       BtnState        =   0
  233.       Clicks          =   0   'False
  234.       Float           =   0   'False
  235.       Height          =   555
  236.       Left            =   1170
  237.       MaxVal          =   150
  238.       MinVal          =   0
  239.       Style           =   1
  240.       TabIndex        =   2
  241.       Top             =   4020
  242.       Value           =   0
  243.       Width           =   3240
  244.       z_f             =   -1
  245.    End
  246.    Begin Format Format1 
  247.       BtnPtr          =   1
  248.       BtnState        =   0
  249.       Float           =   0   'False
  250.       Height          =   345
  251.       Left            =   5025
  252.       Style           =   4
  253.       TabIndex        =   1
  254.       Top             =   101
  255.       Width           =   1140
  256.       z_f             =   -1
  257.    End
  258.    Begin SmallFloppy SmallFloppy1 
  259.       BtnPtr          =   1
  260.       BtnState        =   0
  261.       Float           =   0   'False
  262.       Height          =   255
  263.       Left            =   7710
  264.       Style           =   0
  265.       TabIndex        =   0
  266.       Top             =   4095
  267.       Width           =   480
  268.       z_f             =   -1
  269.    End
  270.    Begin Label Bezeichnung1 
  271.       Caption         =   " kgklfdglfd dkjfhgfdkj gfdkjhhg fdgkjhghhdjfg fdjhgjhfdk djfkhgjfdh fdjhgjfdh dfjhgfd jdf gjfdhgfdj jhdfgjhfd   jfdghfdj dfjhgfd fdjhgjdjfhgf "
  272.       FontBold        =   0   'False
  273.       FontItalic      =   0   'False
  274.       FontName        =   "Arial"
  275.       FontSize        =   9.75
  276.       FontStrikethru  =   0   'False
  277.       FontUnderline   =   0   'False
  278.       Height          =   1170
  279.       Left            =   45
  280.       TabIndex        =   12
  281.       Top             =   615
  282.       Width           =   4605
  283.    End
  284.    Begin Label Bezeichnung3 
  285.       BorderStyle     =   1  'nicht Σnderbar, einfach
  286.       Height          =   1230
  287.       Left            =   0
  288.       TabIndex        =   13
  289.       Top             =   585
  290.       Width           =   5010
  291.    End
  292.    Begin Label Bezeichnung2 
  293.       BackColor       =   &H00C0C0C0&
  294.       Caption         =   "Demo Under Construction"
  295.       FontBold        =   -1  'True
  296.       FontItalic      =   0   'False
  297.       FontName        =   "MS Serif"
  298.       FontSize        =   24
  299.       FontStrikethru  =   0   'False
  300.       FontUnderline   =   0   'False
  301.       ForeColor       =   &H00FFFF00&
  302.       Height          =   1140
  303.       Left            =   5790
  304.       TabIndex        =   11
  305.       Top             =   720
  306.       Width           =   2955
  307.    End
  308. End
  309. DefInt A-Z
  310.  
  311. ' VBXpress demo by Zoschke Data GmbH, For demonstration purposes only.
  312. ' Last revision 8/16/94
  313. '
  314. ' VBX controls by Marquis Computing and Zoschke Data.
  315. '
  316. ' All trade names referenced in the demo are
  317. ' property of their respective compamies.
  318.  
  319. Declare Function WinHelp Lib "User" (ByVal hWnd%, ByVal HelpFile$, ByVal HlpCommand%, Dat As Any) As Integer
  320. Const HlpFile$ = "demovbx.hlp"
  321. Const HELP_QUIT = &H2
  322. Const HELP_INDEX = &H3
  323.  
  324. Sub FileButton1_ButtonPress (Button As Integer, Mouse As Integer)
  325. MsgBox "Choose from the VBXpress Designer's rich 'point & shoot' graphics palettes or create your own graphics with any paint program!", , "Graphics made EASY"
  326. End Sub
  327.  
  328. Sub FileButton1_DragDrop (Source As Control, X As Single, Y As Single)
  329. MsgBox "This is a horizontal toolbar VBX created with VBXpress. The Style property is set to make it work as 'no wait' command buttons.", , "Horizontal Toolbar"
  330. End Sub
  331.  
  332. Sub Form_Load ()
  333.    Me.Left = 0
  334.    Me.Top = 0
  335.    mcRuler1.Value = 106
  336.    Mixer1(0).Value = 100
  337.    Mixer1(1).Value = 100
  338. End Sub
  339.  
  340. Sub Form_Unload (Cancel As Integer)
  341.    X% = WinHelp(VBXpress_Demo.hWnd, HlpFile$, HELP_QUIT, 0&)
  342.  
  343. End Sub
  344.  
  345. Sub Format1_ButtonPress (Button As Integer, Mouse As Integer)
  346. Bezeichnung1.Alignment = Button - 1
  347. End Sub
  348.  
  349. Sub Format1_DragDrop (Source As Control, X As Single, Y As Single)
  350. MsgBox "This is a horizontal toolbar VBX created with VBXpress. The Style property is set to make it work as toggle buttons.", , "Horizontal Toolbar"
  351. End Sub
  352.  
  353. Sub mcBigButtons1_ButtonPress (Button As Integer, Mouse As Integer)
  354. Select Case Button
  355. Case 1
  356.    X% = WinHelp(VBXpress_Demo.hWnd, HlpFile$, HELP_INDEX, 0&)
  357. Case 2
  358.    MsgBox "Create BIG buttons with text and graphics!", , "BIG buttons"
  359. Case 3
  360.    MsgBox "Choose from the VBXpress Designer's rich 'point & shoot' graphics palettes or create your own graphics with any paint program!", , "Graphics made EASY"
  361. Case 4
  362.    C$ = Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10)
  363.    MsgBox "With Marquis Computing's VBXpress Control Designer, you make real VBXs IN MINUTES!" + C$ + "For use with Microsoft Visual Basic and VC++, Borland dBASE for Windows and other Windows languages." + C$ + "No C, CDK or special Windows knowledge required." + C$ + "Just visually design your GUI controls with the designer and create VBXs on the push of a button!" + C$ + "Create sliders, tool bars, floating tool palettes, spin buttons and graphic command buttons THE EASY WAY!" + C$ + "Use and distribute the VBXs you create ROYALTY FREE!" + C$ + "Order your copy of the VBXpress Control Designer TODAY!" + C$ + "Available as English version (AJS Publishing) and German version (Zoschke Data).", , "VBXpress"
  364. Case 5
  365.    MsgBox "Mix text & graphics as you need it!", , "BIG buttons"
  366. Case 6
  367.    C$ = Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10)
  368.    MsgBox "With Marquis Computing's VBXpress Control Designer, you make real VBXs IN MINUTES!" + C$ + "For use with Microsoft Visual Basic and VC++, Borland dBASE for Windows and other Windows languages." + C$ + "No C, CDK or special Windows knowledge required." + C$ + "Just visually design your GUI controls with the designer and create VBXs on the push of a button!" + C$ + "Create sliders, tool bars, floating tool palettes, spin buttons and graphic command buttons THE EASY WAY!" + C$ + "Use and distribute the VBXs you create ROYALTY FREE!" + C$ + "Order your copy of the VBXpress Control Designer TODAY!" + C$ + "Available as English version (AJS Publishing) and German version (Zoschke Data).", , "VBXpress"
  369. End Select
  370. End Sub
  371.  
  372. Sub mcBigButtons1_DragDrop (Source As Control, X As Single, Y As Single)
  373. MsgBox "This is a horizontal toolbar VBX with some BIG buttons with text and graphics, created with VBXpress.", , "Horizontal Toolbar"
  374. End Sub
  375.  
  376. Sub mcCommand1_ButtonPress (Button As Integer, Mouse As Integer)
  377. X% = WinHelp(VBXpress_Demo.hWnd, HlpFile$, HELP_QUIT, 0&)
  378. End
  379. End Sub
  380.  
  381. Sub mcCommand1_DragDrop (Source As Control, X As Single, Y As Single)
  382. MsgBox "This is a command button style VBX created with VBXpress.", , "Command Button"
  383. End Sub
  384.  
  385. Sub mcHorizSlider1_DragDrop (Source As Control, X As Single, Y As Single)
  386. MsgBox "This is a horizontal slider control created with VBXpress.", , "Horizontal Slider"
  387. End Sub
  388.  
  389. Sub mcHorizSlider1_SliderChange (Value As Long)
  390. Z& = mcHorizSlider1.Value
  391. Bezeichnung2.ForeColor = QBColor(Z& \ 10)
  392. Bezeichnung2.Refresh
  393. End Sub
  394.  
  395. Sub mcPalette1_ButtonPress (Button As Integer, Mouse As Integer)
  396.    Select Case Button
  397.    Case 1
  398.       mcPalette1.Float = mcPalette1.Float = 0
  399.    Case 2
  400.         '...
  401.    End Select
  402. End Sub
  403.  
  404. Sub mcPalette1_DragDrop (Source As Control, X As Single, Y As Single)
  405. MsgBox "This is a tool palette VBX created with VBXpress. Click the upper left button to turn the Float property (available for all VBXpress controls) on and off", , "Tool Palette"
  406. End Sub
  407.  
  408. Sub mcRocker1_DragDrop (Source As Control, X As Single, Y As Single)
  409. MsgBox "This is a rocker button style VBX created with VBXpress.", , "Rocker Button"
  410. End Sub
  411.  
  412. Sub mcRuler1_DragDrop (Source As Control, X As Single, Y As Single)
  413. MsgBox "This is a horizontal slider control created with VBXpress.", , "Horizontal Slider"
  414. End Sub
  415.  
  416. Sub mcRuler1_SliderChange (Value As Long)
  417.    Bezeichnung1.Width = (Value / 106) * 329
  418. End Sub
  419.  
  420. Sub mcSpin1_ButtonPress (Button As Integer, Mouse As Integer)
  421.    If Button = 1 Then
  422.       If Bezeichnung1.FontSize < 20 Then Bezeichnung1.FontSize = Bezeichnung1.FontSize + 1
  423.    Else
  424.       If Bezeichnung1.FontSize > 10 Then Bezeichnung1.FontSize = Bezeichnung1.FontSize - 1
  425.    End If
  426. End Sub
  427.  
  428. Sub mcSpin1_DragDrop (Source As Control, X As Single, Y As Single)
  429. MsgBox "This is a spin button VBX created with VBXpress.", , "Spin Button"
  430. End Sub
  431.  
  432. Sub Mixer1_DragDrop (Index As Integer, Source As Control, X As Single, Y As Single)
  433. MsgBox "This is a vertical slider control created with VBXpress. Here it is used in a control array. Instant feedback (NOWAIT) is turned ON.", , "Vertical Slider"
  434. End Sub
  435.  
  436. Sub Mixer1_SliderChange (Index As Integer, Value As Long)
  437.    zdVUMETER1(Index).Value = 100 - Mixer1(Index).Value
  438. End Sub
  439.  
  440. Sub Schrift1_ButtonPress (Button As Integer, Mouse As Integer)
  441. Select Case Button
  442. Case 1
  443.     Schrift1.BtnPtr = Button
  444.     Bezeichnung1.FontBold = Schrift1.BtnState
  445. Case 2
  446.     Schrift1.BtnPtr = Button
  447.     Bezeichnung1.FontItalic = Schrift1.BtnState
  448. Case 3
  449.     Schrift1.BtnPtr = Button
  450.     Bezeichnung1.FontUnderline = Schrift1.BtnState
  451. End Select
  452. End Sub
  453.  
  454. Sub Schrift1_DragDrop (Source As Control, X As Single, Y As Single)
  455. MsgBox "This is a horizontal toolbar VBX created with VBXpress. The Style property is set to make it work as option buttons.", , "Horizontal Toolbar"
  456. End Sub
  457.  
  458. Sub SmallFloppy1_ButtonPress (Button As Integer, Mouse As Integer)
  459.   MsgBox "VBXpress comes with buttons for ALL drive types - and many other controls ready to use!", , "Drive Buttons"
  460. End Sub
  461.  
  462. Sub SmallFloppy1_DragDrop (Source As Control, X As Single, Y As Single)
  463. MsgBox "This is a command button style VBX created with VBXpress.", , "Command Button"
  464. End Sub
  465.  
  466. Sub zdVUMETER1_DragDrop (Index As Integer, Source As Control, X As Single, Y As Single)
  467.   MsgBox "VBXpress slider controls come in handy as fancy meter controls!", , "Meter Controls"
  468. End Sub
  469.  
  470. Sub ZoDaToolbar1_ButtonPress (Button As Integer, Mouse As Integer)
  471. Select Case Button
  472. Case 1
  473.    MsgBox "Zoschke Data's German tool catalog offers plenty of VB-add-ons and help development tools from leading companies (catalog available in Germany, Austria and Switzerland only).", , "Zoschke Data Tool Catalog"
  474. Case 2
  475.    MsgBox "ToolKat is Zoschke Data's extended hypertext catalog on disk.", , "Zoschke Data's ToolKat"
  476. Case 3
  477.    MsgBox "Zoschke Data GmbH" + Chr$(13) + Chr$(10) + "Bahnhofstr. 3" + Chr$(13) + Chr$(10) + "D-24217 Schoenberg, Germany", , "Zoschke Data Mail Address"
  478. Case 4
  479.    MsgBox "  (49)4344-6166", , "Zoschke Data Phone"
  480. Case 5
  481.    MsgBox "  (49)4344-6162", , "Zoschke Data Fax"
  482. End Select
  483. End Sub
  484.  
  485. Sub ZoDaToolbar1_DragDrop (Source As Control, X As Single, Y As Single)
  486. MsgBox "This is a vertical toolbar VBX created with VBXpress.", , "Vertical Toolbar"
  487. End Sub
  488.  
  489.