Multiple Windows in same program with GTWVT

301 views
Skip to first unread message

Jayadev U

unread,
Apr 7, 2015, 11:04:23 AM4/7/15
to harbou...@googlegroups.com

Hi,

 

Please see this old post:

 

http://harbour.harbour-project.narkive.com/NI9z86v8/multi-window-gtwvt-first-implementation

 

I find references to Multiple Windows using GTWVT.  There are however missing functions which are not available in the post.  Link to source code is dead.

 

Question is, can we have multiple windows with GTWVT now ?, any examples ?

 

I know, I can have multiple windows with GTWVG or GTWVW.

 

Warm regards,

 

Jayadev

 

Massimo Belgrano

unread,
Apr 7, 2015, 11:38:52 AM4/7/15
to harbou...@googlegroups.com
yes is possible using hb_gtCreate  hb_gtSelect()

With the function hb_gtCreate, create a new window using many gt gt. The function returns a pointer, which we will use the function hb_gtSelect,  To select this window as the current window. 

search for  a discussione named Calculator in late 2013 and share here your result


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

Jayadev U

unread,
Apr 8, 2015, 1:26:29 PM4/8/15
to harbou...@googlegroups.com

Hi Massimo,

 

Many thanks for pointing me to the right direction.  I have since checked on Google for hb_gtcreate and also have downloaded the ‘Qalculator’.  Nice program.

 

I however, did not find any way to close an open window.  What is the command to close an open window ?

 

 

In the thread below, it says setting the variable to Nil will close the window.  I hope there is some more elegant way.

It also says in the thread that hb_gtRelease() is a C function,  how to send the pWin1 variable to the “C” function. (I am sorry, my “C” expertise is NIL).

 

https://groups.google.com/forum/#!topic/harbour-users/YiXKVivdlu8

 

/*Example for Multiple windows in GTWVT*/

 

REQUEST HB_GT_WVT

 

FUNCTION GtNewWindow()

 

   LOCAL pGt1,pWin1 , pGt2 , pWin2

 

   pGt1 := hb_gtCreate( "WVT" )

   pWin1 := hb_gtSelect( pGt1 )

   pGt2 := hb_gtCreate( "WVT" )

   pWin2 := hb_gtSelect( pGt2 )

 

   CLS

 

   hb_gtSelect( pWin1 )

   WAIT "This is the 1st GT window. Press any key to close."

 

   hb_gtSelect( pWin2 )

   WAIT "This is a 2nd new GT window. Press any key to close."

 

Return NIL

Reply all
Reply to author
Forward
0 new messages