Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
console application update
Browse files Browse the repository at this point in the history
  • Loading branch information
Irwin1985 committed Sep 9, 2023
1 parent 3ba613d commit 57441e5
Show file tree
Hide file tree
Showing 31 changed files with 4 additions and 12 deletions.
Binary file added bmps/APPLICATION_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/APPLICATION_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/BUG_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/BUG_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/COG_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/COG_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/DOOR_OUT_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/DOOR_OUT_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/FIND_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/FOLDER_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/FOLDER_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/LIGHTNING_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/LIGHTNING_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/RELOAD_DISABLED16.bmp
Binary file not shown.
Binary file added bmps/RELOAD_DISABLED32.bmp
Binary file not shown.
Binary file added bmps/START_DISABLED16.BMP
Binary file not shown.
Binary file added bmps/START_DISABLED32.BMP
Binary file not shown.
Binary file added bmps/START_ENABLED16.BMP
Binary file not shown.
File renamed without changes.
Binary file added bmps/STOP_DISABLED16.BMP
Binary file not shown.
Binary file added bmps/STOP_DISABLED32.BMP
Binary file not shown.
Binary file added bmps/STOP_ENABLED16.BMP
Binary file not shown.
Binary file added bmps/STOP_ENABLED32.BMP
Binary file not shown.
Binary file added classes/emptyclass.VCT
Binary file not shown.
Binary file added classes/emptyclass.vcx
Binary file not shown.
Binary file modified classes/magicmenu.VCT
Binary file not shown.
Binary file modified classes/magicmenu.vcx
Binary file not shown.
Binary file modified lang/languages.CDX
Binary file not shown.
Binary file modified lang/languages.FPT
Binary file not shown.
Binary file modified lang/languages.dbf
Binary file not shown.
16 changes: 4 additions & 12 deletions magicmenu.prg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ENDIF

IF NOT PEMSTATUS(_screen, 'oMagicMenu', 5)
_screen.AddProperty('oMagicMenu', CREATEOBJECT("Empty"))
ADDPROPERTY(_screen.oMagicMenu, "oBarra", .null.)
ADDPROPERTY(_screen.oMagicMenu, "cMainDir", ADDBS(JUSTPATH(SYS(16))))
ADDPROPERTY(_screen.oMagicMenu, "cDirBMP", ADDBS(JUSTPATH(SYS(16))) + 'bmps\')
ADDPROPERTY(_screen.oMagicMenu, "cVersion", "0.0.1")
Expand All @@ -42,23 +43,14 @@ IF EMPTY(tcLanguage)
ENDIF

IF EMPTY(tnToolBarSize)
tnToolBarSize = 32
tnToolBarSize = 16
ENDIF

IF NOT INLIST(UPPER(tcLanguage), "ES", "EN")
MESSAGEBOX("Wrong value for parameter: tcLanguage." + CHR(13) + CHR(10) + "Please send 'ES' for Spanish or 'EN' for English.", 16, "Error")
RETURN
ENDIF

public loBarra
** DEBUG
*!* _screen.oMagicMenu.bDebugMode = .t.
*!* IF _screen.oMagicMenu.bDebugMode
*!* CD f:\desarrollo\github\magicmenu\
*!* SET DEFAULT TO f:\desarrollo\github\magicmenu\
*!* ENDIF
** DEBUG

CD (_screen.oMagicMenu.cMainDir)
SET DEFAULT TO (_screen.oMagicMenu.cMainDir)

Expand All @@ -80,5 +72,5 @@ InitializeDotnetVersion()
_screen.oBridge = getwwDotNetBridge()
LOCAL lcMenuClass
lcMenuClass = "ToolBarMenuX" + ALLTRIM(STR(tnToolBarSize))
loBarra = CREATEOBJECT(lcMenuClass)
loBarra.show()
_screen.oMagicMenu.oBarra = CREATEOBJECT(lcMenuClass)
_screen.oMagicMenu.oBarra.show()

0 comments on commit 57441e5

Please sign in to comment.