Hi budyanto 

Hbcreate Return a reference to a object something like will happen in
CreateObject(
Also in visial foxpro can used object for form/windows
loForm = CREATEOBJECT("HiForm")
loForm.Show(1)
 
DEFINE CLASS HiForm AS Form
  AutoCenter = .T.
  Caption = "Hello, World"
 
  ADD OBJECT lblHi as Label WITH ;
    Caption = "Hello, World!"
ENDDEFINE


my compliment to author of GTWVW your library have given multiwindow
same year ago
regards
Massimo Belgrano

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Budyanto Dj.
Sent: Saturday, October 25, 2008 1:45 PM
To: harbour Project Main Developer List.
Subject: [Harbour] Multiwin (tests/gtwin.prg)

Hi Przemek,

Thanks for these GREAT innovations of yours. I am now having a big hope
into the future :-)

After learning some of your test programs, I have some notes though.
In your tests/gtwin.prg I learn this:

pGT1 := hb_gtCreate( THREAD_GT )

which opens a new GT/window.

And then later:

pGT1 := NIL

to destroy the GT/window.

Please excuse my ignorance..., but what do you think about
hb_gtDestroy(pGT1) instead of 
this NIL assignment?

Closing a window by assigning NIL to a local variable looks very strange
to me.
In fact to close the window I can assign anything to pGT1: 1234,
"ABCDE", {}, anything.
Isn't it a bit "dangerous?"

Another strange situation:

//assign pGT1 to another var:
a := pGT1

//this won't close the window now:
pGT1 := NIL 

//but this will:
a := NIL 

Strange isn't it?

regards,
budyanto

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

Reply via email to