Re: Why the MAIN Window always behind the CHILD Windows?
Posted: Wed Jun 02, 2010 2:13 pm
.
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://mail.hmgforum.com/
Main window can be considered as some kind of 'application object'.bootwan wrote:Hi, RobertoRoberto Lopez wrote: Child windows does not appear on taskbar![]()
The HMG author appears finally.![]()
I known that child-windows will not appear on taskbar.
The HMG must has a MAIN window and I don't want to use the common menu-type style interface, thus the MAIN window just is a background with menu simply. It must set to MAXMIZED and occupies the whole desktop then CHILD windows work on it.
This subject of topic and the attached picture on the 2nd reply show what I meant.
Why I must use the different user interface? I don't know.
The program functions display in TREE structures maybe more clear to end-user, I think.
And I did it in VB6, The end-user responsed well and nice.
Why I choose HMG? Why not FIVEWIN?
Because I must combine pure DOS workstations and Windows computers via Novell Netware files sharing,
And I believed you Roberto, you will do maximizing efforts on MiniGUI in the future.
So, The GUI interface is very very important thing about me to dealing with CLIPPER codes,
I don't want any API in my codes, just make it simply and clear to use.
And I hope you can add more and more events/properties/methods/functions in MiniGUI (ex. the Forms' ShowInTaskbar.... and the controls' KeyPress, KeyUp, KeyDown, MouseOver, MouseLeave, MouseUp, MouseDown), and don't forget to update the document, I found some functions are undocumented.
Sorry about my poor english.
All we here, try to help each others the best way we can.bootwan wrote: I'm discouraged about this forum.
I feel really sorrybootwan wrote:You are stingy I felt suddenly.rathinagiri wrote:Sorry Bootwan,
I had seen the API reference and could not understand about the third parameter of setwindowlong() function. I think somebody with strong 'C' base like Grigory/Roberto can help you.
Is it so hard to answer the coversions of hb_bitor, hb_bitand,hb_bitnot in C routine for you?
I'm discuraged about this forum.
Code: Select all
#include <hmg.ch>
Function Main
public n := 1
define window x at 0,0 width 300 height 100 main
define button a
row 10
col 10
caption "click"
action createnewwindow()
end button
end window
x.center
x.activate
Return
function createnewwindow
local wname := "window_" + alltrim(str(n))
n := n + 1
define window &wname at 0,0 width 200 height 100 windowtype standard title wname on init hideintaskbar(wname)
end window
center window &wname
activate window &wname
return nil
FUNCTION HideInTaskBar(cFormName)
LOCAL hWnd
hWnd := GetFormHandle(cFormName)
HBHideWindow(hWnd)
RETURN NIL
#pragma BEGINDUMP
#include <windows.h>
#include <commctrl.h>
#include "hbapi.h"
#include <wingdi.h>
HB_FUNC ( HBHIDEWINDOW )
{
HWND hWnd1;
hWnd1 = (HWND) hb_parnl (1);
ShowWindow(hWnd1, SW_HIDE) ;
SetWindowLong(hWnd1, GWL_EXSTYLE, WS_EX_TOOLWINDOW ) ;
ShowWindow(hWnd1, SW_SHOW) ;
}
#pragma ENDDUMP