Page 1 of 1
Extendet Version "Main"
Posted: Mon Dec 09, 2019 11:29 pm
by AUGE_OHR
hi,
i try to use CLICK Source with Extendet Version and modify Code this Way.
Code: Select all
PROCEDURE main( filespec )
PUBLIC cStatusBox := ""
PUBLIC cInBox := ""
PUBLIC cOutBox := ""
PUBLIC ClickForm
#IFDEF Use_Gui
*DECLARE ClickForm
*IF !IsWindowDefined( ClickForm )
Load Window ClickForm As Main
CENTER WINDOW Main
Activate Window Main
*ENDIF
#ELSE
StartClick( filespec )
#ENDIF
RETURN
but it does not start just a Error with
Subsystem Call ....: MGERROR
System Code .......: 0
Default Status ....: .F.
Description .......: Main Window is not defined. Program terminated.
Operation .........:
Involved File .....:
Dos Error Code ....: 0
i don't understand while i have include ClickForm.FMG

- MiniGUI_Main_FMG.jpg (104.8 KiB) Viewed 2966 times
so how to use FMG under Extendet Version

Re: Extendet Version "Main"
Posted: Tue Dec 10, 2019 1:05 pm
by danielmaximiliano
AUGE_OHR wrote: ↑Mon Dec 09, 2019 11:29 pm
hi,
i try to use CLICK Source with Extendet Version and modify Code this Way.
so how to use FMG under Extendet Version
Hello, HMG extended is maintained by Grigory and its site is in yahoo groups, everything concerning this distribution is answered by the same or other users there.
https://groups.yahoo.com/neo/groups/harbourminigui/info
Re: Extendet Version "Main"
Posted: Tue Dec 10, 2019 8:07 pm
by AUGE_OHR
Re: Extendet Version "Main"
Posted: Tue Dec 10, 2019 8:59 pm
by jairpinho
hello, the method of creation and reading of fmg are different between the two ide, so it will work if you create fmg in extend version, it is not possible to read fmg from hmg in ide extend, I am working on ide extend to try to read the fmg files da hmg
Re: Extendet Version "Main"
Posted: Wed Dec 11, 2019 3:26 am
by AUGE_OHR
hi,
jairpinho wrote: ↑Tue Dec 10, 2019 8:59 pm
hello, the method of creation and reading of fmg are different between the two ide, so it will work if you create fmg in extend version, it is not possible to read fmg from hmg in ide extend, I am working on ide extend to try to read the fmg files da hmg
hm ... i had no Problem to "load" end "edit" HMG FMG in MiniGUI IDE.
when press "save" also Header in FMG change to
while HMG have
OK i try to create a new FMG in MiniGUI IDE
Question : is the Syntax for MiniGUI ok
Re: Extendet Version "Main"
Posted: Wed Dec 11, 2019 3:56 am
by AUGE_OHR
hi,
have made a new FMG in MiniGUI IDE.
Result ... same Crash
Subsystem Call ....: MGERROR
System Code .......: 0
Default Status ....: .F.
Description .......: Main Window is not defined. Program terminated.
Operation .........:
Involved File .....:
Dos Error Code ....: 0
so i can't use GUI and Console is just a black Window

Re: Extendet Version "Main"
Posted: Wed Dec 11, 2019 4:57 am
by AUGE_OHR
the fun goes on ...
i have made a small App and try to load FMG with MiniGUI
i found out that 1st Line in FMG contain MAIN of those Demo which run
generate by MiniGUI IDE
Code: Select all
*DEFINE WINDOW TEMPLATE AT 0 , 0 WIDTH 1024 HEIGHT 768 VIRTUAL WIDTH NIL VIRTUAL HEIGHT NIL TITLE "Click2" ICON NIL CURSOR NIL ON INIT NIL ON RELEASE NIL ON INTERACTIVECLOSE NIL ON MOUSECLICK NIL ON MOUSEDRAG NIL ON MOUSEMOVE NIL ON MOVE NIL ON DROPFILES NIL ON SIZE NIL ON MAXIMIZE NIL ON MINIMIZE NIL ON PAINT NIL BACKCOLOR NIL NOTIFYICON NIL NOTIFYTOOLTIP NIL ON NOTIFYCLICK NIL ON NOTIFYBALLOONCLICK NIL ON GOTFOCUS NIL ON LOSTFOCUS NIL ON SCROLLUP NIL ON SCROLLDOWN NIL ON SCROLLLEFT NIL ON SCROLLRIGHT NIL ON HSCROLLBOX NIL ON VSCROLLBOX NIL
Demo.FMG
Code: Select all
DEFINE WINDOW TEMPLATE AT 0 , 0 WIDTH 1024 HEIGHT 768 TITLE "Demo" ICON NIL MAIN NOMAXIMIZE NOSIZE CURSOR NIL ON INIT Form_Load() ON RELEASE NIL ON INTERACTIVECLOSE NIL ON MOUSECLICK NIL ON MOUSEDRAG NIL ON MOUSEMOVE NIL ON SIZE NIL ON MAXIMIZE NIL ON MINIMIZE NIL ON PAINT NIL BACKCOLOR NIL NOTIFYICON NIL NOTIFYTOOLTIP NIL ON NOTIFYCLICK NIL ON GOTFOCUS NIL ON LOSTFOCUS NIL ON SCROLLUP NIL ON SCROLLDOWN NIL ON SCROLLLEFT NIL ON SCROLLRIGHT NIL ON HSCROLLBOX NIL ON VSCROLLBOX NIL
i use a DEMO.FMG and try this Code
Code: Select all
#include "minigui.ch"
PROCEDURE MAIN()
Load Window DEMO As Main
Main.Center
Main.Activate
RETURN
FUNCTION FORM_LOAD
RETURN NIL
FUNCTION INTERFACELANGUAGE_CLICK
RETURN NIL
FUNCTION CALCULATERESULT
RETURN NIL
those Function just are Dummy and it compile and WORK
so i take 1st line of DEMO.FMG and copy/replace it in CLICKFORM.FMG
i test "that" FMG with small Code and it WORK
now have in Click2.PRG
Code: Select all
#IFDEF __HARBOUR__
#include "minigui.ch"
#define Use_Gui
#define WM_SETTEXT 0x000C
PROCEDURE MAIN( filespec )
PUBLIC cStatusBox := ""
PUBLIC cInBox := ""
PUBLIC cOutBox := ""
ALTD()
Load Window DEMO As Main
Main.Center
Main.Activate
but when compile/link i got a new Error
hbmk2: Processing environment options: -comp=bcc
hbmk2[CLICK2]: Warning: Non-portable parameter: 'libs=hbwin
c:\MiniGUI\Harbour\lib\hbxpp.lib' in CLICK2.hbc:3. Use
'libs=hbxpp' directives(s) instead.
hbmk2: Compiling...
OBJ\_hbmkaut_CLICK2.c:
hbmk2: Linking... CLICK2.exe
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_FORM_LOAD' referenced from C:\MINIGUI\SAMPLES\0\CLICK2\OBJ\CLICK2.OBJ
hbmk2[CLICK2]: Error: Running linker. 2
ilink32.exe @R:\Temp\a8of30.lnk
hbmk2: Error: Referenced, missing, but unknown function(s): FORM_LOAD()
****
Failure!
i get crasy with those Error .. why does FORM_LOAD missing
