Re: i have some trobles with Harbour Mini Gui
Posted: Mon Dec 29, 2008 1:28 pm
post fragment of your code, maybe someone can help you...
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
https://hmgforum.com/
mol wrote:post fragment of your code, maybe someone can help you...
What is the difference in DEFINE WINDOWS between MAIN And Modal?mol wrote:My pleasure....
Sometimes I look for error for long time and can't find it.
The worst errors are stupid...
regards, Marek
Code: Select all
.......
Procedure PBro_Corsi()
SET CENTURY ON
SET DELETED ON
DEFINE WINDOW bro_corsi ;
AT 0,0 ;
WIDTH 1024 HEIGHT 580 ;
TITLE '1000 Bolle Blu - Browse Corsi' ;
MAIN NOMAXIMIZE ;
ON INIT OpenCorsi() ;
ON RELEASE CloseCorsi();
.......
Code: Select all
DEFINE WINDOW <WindowName>
AT <nRow> ,<nCol>
WIDTH <nWindth>
HEIGHT <nHeight>
[ VIRTUAL WIDTH <nVirtualWindth> ]
[ VIRTUAL HEIGHT <nVirtualHeight> ]
[ TITLE <cTitle> ]
[ ICON <cIconName> ]
MODAL
[ NOSHOW ]
[ NOAUTORELEASE ]
[ NOSIZE ]
[ NOSYSMENU ]
[ NOCAPTION ]
[ CURSOR <CursorName> ]
[ ON INIT <InitProcedureName> | <bBlock> ]
[ ON RELEASE <ReleaseProcedureName> | <bBlock> ]
[ ON INTERACTIVECLOSE <InteractiveCloseProcedureName> | <bBlock> ]
[ ON MOUSECLICK <MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG <MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE <MouseMoveProcedureName> | <bBlock> ]
[ ON SIZE <WindowSizeProcedureName> | <bBlock> ]
[ ON PAINT <WindowPaintProcedureName> | <bBlock> ]
[ BACKCOLOR <anBackColor> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <ProcedureName> | <bBlock> ]
[ ON SCROLLUP <ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <ProcedureName> | <bBlock> ]
[ HELPBUTTON ]This can be done through two ways.So, i'm just asking: If i write a file called browse.prg for example ... can i link it on the main menu? in this case i think not to have problems with MAIN statement. How can i call another prg file from the main one?
At the beginning under che include statement? Or i have to declare on an Action statement?rathinagiri wrote:...
If you use batch file (compile.bat) from command prompt, then you can refer the browse.prg in your main.prg as "set procedure to browse.prg" to include browse.prg also while compiling.
Code: Select all
Function MAIN
SET CENTURY ON
SET DELETED ON
....
Return Nil
Code: Select all
set procedure to browse.prg
Code: Select all
Function f_brocorsi
SET CENTURY ON
SET DELETED ON
DEFINE WINDOW bro_corsi ;
AT 0,0 ;
WIDTH 1024 HEIGHT 580 ;
TITLE '1000 Bolle Blu - Browse Corsi' ;
MAIN NOMAXIMIZE ;
ON INIT OpenCorsi() ;
ON RELEASE CloseCorsi();
...............
END WINDOW
CENTER WINDOW bro_corsi
bro_corsi.Bbro_corsi.SetFocus()
ACTIVATE WINDOW bro_corsi
Return Nil
so I have to put the window in browse.prg as modal.rathinagiri wrote:Yes. That is because MODAL windows have no option for NOMAXIMIZE. You can only have NOSIZE.