Przemek

Przemyslaw Czerpak-2 wrote:
> 
> 2008-10-28 12:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
>   * harbour/source/rtl/gtwvt/gtwvt.h
>   * harbour/source/rtl/gtwvt/gtwvt.c
>     + added support for creating console window after 1-st screen update
>       Please remember that it interacts with inkey() code which does not
>       work until windows is not created.
>       Now it should be quite easy to add support for some initializations
>       before window is created. Probably it will be necessary to change
>       INFO() method and store settings in some pWVT variables if
> pWVT->hWND
>       is NULL and then use them as parameters for new console window.
>       I'd like to leave this modification to MS-Windows developers.
> 

Thanks for the ground work. I will do the rest.

I plan to introduce:

typedef struct
{
    DWORD dwExStyle,    /* 0 */
    DWORD dwStyle,       /* WS_THICKFRAME|WS_OVERLAPPED|WS_CAPTION|
                                     
WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX */
    int        x,               /* 0 */
    int        y,               /* 0 */
    int        nWidth,       /* CW_USEDEFAULT */
    int        nHeight,      /* CW_USEDEFAULT */
    PHB_GT pGTParent,  /* NULL */
    int        iCmdShow,  /* SW_NORMAL */
    BOOL    bDefault,     /* TRUE */
} HB_WVTINIT, * PHB_WVTINIT;

and make it a member of HB_GTWVT structure.
Then if appln sends HB_GTI_WINPARAMS with corresponding array
then this structure is filled with new values and old values are returned.
This is only happen if pWVT->hWnd == NULL.
bDefault is set to FALSE and few actions are taken based on this flags,
for example, centering the window.

CreateWindow() function needs to be changed to CreateWindowEx().

I also plan to have something like HB_GTI_WINSTATE which may return 
either a single value or an array of all values, i.e., x, y, width, height,
style,
current state == minimized, maximized, iconized, etc.

I know few of these values may be not useful in other GTs but for
sure GTWVT and GTWVG can exploit them in big way.

And because all is routed via Hb_GtInfo() gateway, I do not see any 
portability issue. Mostly these feature are usable when 
hb_gtReload()/hb_gtCreate() is called, so normal applications
may not even see any change.

Opinions?

Regards
Pritpal Bedi


-- 
View this message in context: 
http://www.nabble.com/2008-10-28-12%3A53-UTC%2B0100-Przemyslaw-Czerpak-%28druzus-at-priv.onet.pl%29-tp20205973p20215000.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to