hi,
try this
Code: Select all | Expand
#include "fivewin.ch"
PROCEDURE Main()
LOCAL oDlg, oFont, oImage
DEFINE FONT oFont NAME "TAHOMA" SIZE 0, - 12
DEFINE WINDOW oDlg FROM 0, 0 TO 600, 800 + 16 PIXEL TITLE "TVIP " COLOR RGB(025,254,255), CLR_BLACK
@ 310, 330 XIMAGE oImage SIZE 64, 64 OF oDlg // NOBORDER
oImage:lBmpTransparent := .F.
oImage:bLDblClick := { || MsgInfo( "Hello World" ) }
// Crash here
oImage:SetStyle( WS_TABSTOP, .F. )
ACTIVATE WINDOW oDlg CENTERED
RETURN
or this
Code: Select all | Expand
iMax := LEN(oObj:aControls)
FOR ii := 1 TO iMax
oControl := oObj:aControls[ii]
DO CASE
CASE "TSAY" $ oControl:ClassName()
* oControl:SetStyle( WS_TABSTOP, .F. ) // crash
CASE "TGET" $ oControl:ClassName()
CASE "FWTVLC" $ oControl:ClassName()
* oControl:SetStyle( WS_TABSTOP, .F. ) // crash
CASE "TXBROWSE" $ oControl:ClassName()
oControl:SetStyle( WS_TABSTOP, .F. ) // work
CASE "TXIMAGE" $ oControl:ClassName()
* oControl:SetStyle( WS_TABSTOP, .F. ) // crash
CASE "TRADIO" $ oControl:ClassName()
* oControl:SetStyle( WS_TABSTOP, .F. ) // crash
CASE "TBUTTON" $ oControl:ClassName()
oControl:SetStyle( WS_TABSTOP, .F. ) // work
CASE "TBTNBMP" $ oControl:ClassName()
* oControl:SetStyle( WS_TABSTOP, .F. ) // crash
ENDCASE
Error description: Error BASE/1004 Message not found: TXIMAGE:SETSTYLE