FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error on btnbmp ...activate
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
error on btnbmp ...activate
Posted: Mon Aug 19, 2019 07:44 AM
this is the error
Code (fw): Select all Collapse
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 (fw): Select all Collapse
#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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: error on btnbmp ...activate
Posted: Mon Aug 19, 2019 06: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

Continue the discussion