Extendet Version "Main"

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Extendet Version "Main"

Post 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
MiniGUI_Main_FMG.jpg (104.8 KiB) Viewed 2566 times
so how to use FMG under Extendet Version :?:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Extendet Version "Main"

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Extendet Version "Main"

Post by AUGE_OHR »

danielmaximiliano wrote: Tue Dec 10, 2019 1:05 pm 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
OK, understand.
have fun
Jimmy
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Re: Extendet Version "Main"

Post 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
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Extendet Version "Main"

Post 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
*HMGS-MINIGUI-IDE Two-Way Form Designer Generated Code
*OPEN SOURCE PROJECT 2005-2016 Walter Formigoni http://sourceforge.net/projects/hmgs-minigui/
while HMG have
* HMG-IDE UNICODE Form Designer Generated Code
* (c) Roberto Lopez - http://sites.google.com/site/hmgweb
OK i try to create a new FMG in MiniGUI IDE

Question : is the Syntax for MiniGUI ok :?:

Code: Select all

   Load Window ClickForm As Main
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Extendet Version "Main"

Post 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 :(
Attachments
ClickForm2.zip
(25.63 KiB) Downloaded 134 times
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Extendet Version "Main"

Post 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 :D

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 :D

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 :evil:
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 :?:
have fun
Jimmy
Post Reply