Category : Files from Magazines
Archive   : IVB938.ZIP
Filename : PROGMANM.BAS

 
Output of file : PROGMANM.BAS contained in archive : IVB938.ZIP
Option Explicit

Dim PMLinkTopic$, PMLinkMode%
Dim ExecuteString$ ' Used to send commands

' LinkMode (forms and controls)
Global Const LINK_NONE = 0 ' 0 - None
Global Const LINK_SOURCE = 1 ' 1 - Source (forms only)
Global Const LINK_AUTOMATIC = 1 ' 1 - Automatic (controls only)
Global Const LINK_MANUAL = 2 ' 2 - Manual (controls only)
Global Const LINK_NOTIFY = 3 ' 3 - Notify (controls only)

' Types of showing possible

Global Const RestoreGroupAct = 1
Global Const IconicGroupAct = 2
Global Const MaxGroupAct = 3
Global Const RestoreGroupNA = 4
Global Const ActivateGroup = 5
Global Const MinGroup = 6
Global Const IconicGroup = 7
Global Const DispGroup = 8

Sub InitProgmanDDE ()
PMLinkTopic$ = "ProgMan|Progman"
PMLinkMode% = LINK_MANUAL
End Sub

Sub PMAddItem (T As Control, ItemName$, CmdLine$)
If TypeOf T Is TextBox Then
T.LinkTopic = PMLinkTopic$
T.LinkMode = PMLinkMode%
ExecuteString$ = "[AddItem(" + CmdLine$ + "," + ItemName$ + ")]"
T.LinkExecute ExecuteString$
T.LinkMode = LINK_NONE
End If ' DDE with Progman
End Sub

Sub PMCreateGroup (T As Control)

If TypeOf T Is TextBox Then
If Len(T.Text) <> 0 Then
T.LinkTopic = PMLinkTopic$
T.LinkMode = PMLinkMode%
ExecuteString$ = "[CreateGroup(" + T.Text + ")]"
T.LinkExecute ExecuteString$
T.LinkMode = LINK_NONE
End If
End If ' DDE with Progman

End Sub

Sub PMDeleteGroup (T As Control)

If TypeOf T Is TextBox Then
If Len(T.Text) <> 0 Then
T.LinkTopic = PMLinkTopic$
T.LinkMode = PMLinkMode%
ExecuteString$ = "[DeleteGroup(" + T.Text + ")]"
T.LinkExecute ExecuteString$
T.LinkMode = LINK_NONE
End If
End If

End Sub

Sub PMShowGroup (T As Control, Style%)

If TypeOf T Is TextBox Then
If Len(T.Text) * Style% <> 0 Then
T.LinkTopic = PMLinkTopic$
T.LinkMode = PMLinkMode%
ExecuteString$ = "[ShowGroup(" + T.Text + "," + Format$(Style%, "#") + ")]"
T.LinkExecute ExecuteString$
T.LinkMode = LINK_NONE
End If
End If
End Sub



  3 Responses to “Category : Files from Magazines
Archive   : IVB938.ZIP
Filename : PROGMANM.BAS

  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/