[FWH 9.04: ...GET..ACTION..] Is this a bug?

[FWH 9.04: ...GET..ACTION..] Is this a bug?

Postby hua » Mon May 18, 2009 4:48 am

Clicking the button causes a RTE to occur. Is this considered a bug?
Code: Select all  Expand view

#include "FiveWin.ch"

function Main()

  TClass():activate()

return nil

class TClass
  data oWnd, cTest

  method activate()
  method blab() inline MsgInfo( "click" )
endclass

method activate() class TClass
  ::cTest := "Hello world!"

  DEFINE WINDOW ::oWnd COLOR "N/W*"

   @ 2, 2 GET ::cTest SIZE 110, 22 ;
      ACTION ::blab() BITMAP "..\bitmaps\16x16\find.bmp"

   ACTIVATE WINDOW ::oWnd
return self
 
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: [FWH 9.04: ...GET..ACTION..] Is this a bug?

Postby Antonio Linares » Mon May 18, 2009 5:49 am

Hua,

Please code it this way:
Code: Select all  Expand view

METHOD Activate() CLASS TClass

  local oThis := Self
 
  ::cTest := "Hello world!"

  DEFINE WINDOW ::oWnd COLOR "N/W*"

   @ 2, 2 GET ::cTest SIZE 110, 22 ;
      ACTION oThis:blab() BITMAP "..\bitmaps\16x16\find.bmp"

   ACTIVATE WINDOW ::oWnd

return self
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: [FWH 9.04: ...GET..ACTION..] Is this a bug?

Postby hua » Mon May 18, 2009 7:10 am

Ok, thanks.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 91 guests