error on btnbmp ...activate

error on btnbmp ...activate

Postby Silvio.Falconi » Mon Aug 19, 2019 7:44 am

this is the error
Code: Select all  Expand view  RUN
Application
===========
   Path and name: C:\Users\silvio\Desktop\Release_TPlan\Numeri_Ombrelloni_sezione\test.Exe (32 bits)
   Size: 3,876,352 bytes
   Compiler version: Harbour 3.2.0dev (r1904111533)
   FiveWin  version: FWH 19.05
   C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
   Windows version: 6.2, Build 9200

   Time from start: 0 hours 0 mins 3 secs
   Error occurred at: 08/19/19, 09:42:03
   Error description: Error BASE/1004  No exported method: ACTIVATE
   Args:
     [   1] = U  
     [   2] = N   42
     [   3] = N   340
     [   4] = O   TDIALOG
     [   5] = L   .F.

Stack Calls
===========
   Called from:  => ACTIVATE( 0 )
   Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 973 )
   Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1791 )
   Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 2006 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 3546 )
   Called from:  => DIALOGBOXINDIRECT( 0 )
   Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
   Called from: test.prg => TEST( 29 )
 



this is the test
Code: Select all  Expand view  RUN

#include "fivewin.ch"
Function test()
   Local odlg
   Local oBtnNum
   Local nelemento := 35
   Local cID       := "O"
   Local dCheck_in  := date()
   Local dCheck_out := date()

 DEFINE DIALOG oDlg SIZE 400,400

   @ 07,170  BTNBMP oBtnNum FILENAME "NUMBERS.bmp";
   FLAT SIZE 20,14 PIXEL OF oDlg NOBORDER


 oBtnNum:oPopUp:= { |oBtn| msginfo()  }


   Activate dialog oDlg
return nil



why there is this error ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: error on btnbmp ...activate

Postby cnavarro » Mon Aug 19, 2019 6:56 pm

The codeblock oBtnNum:oPopUp must return a MENU object
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Danielmaximiliano and 36 guests