I wish size a get when the user press a button or a menu
I tried with move(), resize() methods with no success !!!
I have this get
@ 0.5, 0.5 GET oGet VAR cGet OF oDlg SIZE 120, 12 RIGHT FONT oFont2
and I wish change the with from 120 to 232
pplication
===========
Path and name: C:\Work\Prg\msgcalc\msgcalc.Exe (32 bits)
Size: 2,138,624 bytes
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715)
FiveWin Version: FWHX 12.03
Windows version: 6.1, Build 7600
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 04/26/13, 23:28:19
Error description: Error BASE/1005 Class: 'NIL' has no property: BPAINTED
Args:
[ 1] = U
[ 2] = B {|| ... }
Stack Calls
===========
Called from: => _BPAINTED( 0 )
Called from: msgcalc.prg => CALC_SCENTIFICA( 467 )
Called from: msgcalc.prg => (b)BUILDMENU( 432 )
Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 461 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND( 350 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 886 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 270 )
Called from: msgcalc.prg => MSGCALC( 359 )
I have this get
@ 0.5, 0.5 GET oGet VAR cGet OF oDlg SIZE 120, 12 RIGHT FONT oFont2
and I wish change the with from 120 to 232
function test()
local oDlg, oGet
local cGet := PadR( "Change Get Width", 100 )
DEFINE DIALOG oDlg SIZE 520,120 PIXEL
@ 10,10 BUTTON "GetWidth" SIZE 60,12 PIXEL OF oDlg ;
ACTION ( oGet:nWidth := 232 * 2 )
@ 25,10 GET oGet VAR cGet SIZE 120,12 PIXEL OF oDlg
ACTIVATE DIALOG oDlg CENTERED
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 40 guests