Problem with the last FW 9.04

Problem with the last FW 9.04

Postby Maurizio » Tue Apr 28, 2009 8:10 am

Hello Antonio

There is a problems in SAY with PICTURE .

This is the samples TESTFLDB.PRG adapted for simulate the error .
The line is :

REDEFINE SAY oSay ID 10 OF oFld:aDialogs[ 1 ] PROMPT 123456.99 PICTURE "@ZE 999999.99"

Regards Maurizio

Code: Select all  Expand view
// Testing FiveWin own folders controls support

#include "FiveWin.ch"
#include "Folder.ch"

//----------------------------------------------------------------------------//

function Main()

   local oDlg, oBrush, oFld, oCbx, oSay
   local nValue := 2, oChk, lChk := .t.
   local cItem

   SET _3DLOOK ON

   DEFINE BRUSH oBrush RESOURCE "Sky"

   DEFINE DIALOG oDlg RESOURCE "Test"  BRUSH oBrush TRANSPARENT

   REDEFINE FOLDER oFld ID 110 OF oDlg ;
      PROMPT "CA-Cli&pper", "&and", "&Windows", "&Magic" ;
      DIALOGS "Sub1", "Sub2"

   oFld:aEnable = { .t., .t., .f., .f. }
   
   REDEFINE GROUP ID 5 OF oFld:aDialogs[ 1 ]

   REDEFINE COMBOBOX oCbx VAR cItem ITEMS { "This", "is", "a test" } ;
      ID 100 OF oFld:aDialogs[ 1 ]

   REDEFINE CHECKBOX oChk VAR lChk ID 92 OF oFld:aDialogs[ 1 ] ON CHANGE MsgBeep()

   REDEFINE SAY oSay ID 10 OF oFld:aDialogs[ 1 ] PROMPT 123456.99  PICTURE "@ZE 999999.99"

   REDEFINE GROUP ID 105 OF oFld:aDialogs[ 1 ]

   REDEFINE BUTTON ID 110 OF oFld:aDialogs[ 1 ] ;   // Redefining a child
      ACTION oChk:SetText( Time() )

   REDEFINE BUTTON ID 120 OF oFld:aDialogs[ 1 ] ;
      ACTION DoBrowse()
     
   REDEFINE BITMAP ID 130 OF oFld:aDialogs[ 1 ] ;
      FILE "..\bitmaps\question.bmp" TRANSPARENT

   REDEFINE RADIO nValue ID 110, 120, 130 OF oFld:aDialogs[ 2 ] ;
      ON CHANGE MsgBeep()

   REDEFINE BUTTON ID 104 OF oFld:aDialogs[ 2 ] ;   // Redefining a child
      ACTION oFld:SetPrompts( { "one", "two", "three", "four" } )

   REDEFINE BUTTON ID 120 OF oDlg ;
      ACTION oDlg:End()

   oFld:aDialogs[ 1 ]:bRClicked = { || MsgInfo( "page 1" ) }
   oFld:aDialogs[ 2 ]:bRClicked = { || MsgInfo( "page 2" ) }

   ACTIVATE DIALOG oDlg CENTERED ;
      VALID MsgYesNo( "Want to end ?" )

return nil

//----------------------------------------------------------------------------//

function DoBrowse()

   USE Customer
   Browse()
   USE

return nil

//----------------------------------------------------------------------------//

procedure AppSys  // Xbase++ requirement

return

//----------------------------------------------------------------------------//
 
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with the last FW 9.04

Postby Maurizio » Tue Apr 28, 2009 8:26 am

I note that the problem is in TSAY.PRG
Class Initiate , line 206
If I change
::SetText( ::cCaption )
with
SetWindowText( ::hWnd, ::cCaption )

All works

Regards MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with the last FW 9.04

Postby Antonio Linares » Tue Apr 28, 2009 8:35 am

Maurizio,

Please change Method SetText() in Class TWindow this way and try it again, thanks:

METHOD SetText( cText ) INLINE SetWindowText( ::hWnd, cText )
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: Problem with the last FW 9.04

Postby Maurizio » Tue Apr 28, 2009 12:26 pm

Antonio,
tryed but dosn't work :cry:

MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests