No Message from oBrw:bChange on Buttonaction ?

No Message from oBrw:bChange on Buttonaction ?

Postby ukoenig » Tue Sep 15, 2009 10:47 am

Hello,

I noticed in all ArrayBrowsers, Setting the Row-Position from a Button with :

oBrw:nArrayAt := newposition
oBrw:nRowSel := newPosition

oBrw:bChange returns nothing.

Using a Control-Alert inside bChange :
From KeyBoard and with Mouseclick it works, but not changing the Position from a Button.

Image

Selecting a Color with a Button
Image

The new Row-Position is selected, but no Message from oBrw:bChange.
Image

Color-Selection from Button and new Browser-Row-Position
with no Message from oBrw:bChange :
Code: Select all  Expand view

REDEFINE BTNBMP oBtn1 ID 20 OF oFld:aDialogs[1]  2007 ;
FILENAME c_path + "\Images\select.bmp" ;
LEFT ;
PROMPT "  &Select  " FONT oProgFont ;
ACTION ( newColor := ChooseColor(), ;
   oNewColor:Refresh(), ;
   oBrw:nArrayAt := 10, oBrw:nRowSel := 10, oBrw:refresh() )

// The  Lines from the Browser
// ---------------------------------
oBrw:bChange   := { || W_POS1 := oBrw:nRowSel, ;
   W_COLOR1 := NEW_COLOR1(), ;
   msgalert( w_pos1, "Position" ), ;  //  Control-ALERT !!!!
   oW_COLOR1:Refresh(), oBMP9:Refresh(), oBMP10:Refresh(), ;
   GET_SOURCE(), oRESULT1:Refresh(), oRESULT2:Refresh() }   

 


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: No Message from oBrw:bChange on Buttonaction ?

Postby nageswaragunupudi » Thu Sep 17, 2009 2:58 pm

Instead of
Code: Select all  Expand view
oBrw:nArrayAt := 10, oBrw:nRowSel := 10, oBrw:refresh()
 

Please try
Code: Select all  Expand view
oBrw:SetPos( 10 )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: No Message from oBrw:bChange on Buttonaction ?

Postby ukoenig » Thu Sep 17, 2009 3:15 pm

Thank You very much,

I changed in all Browsers the Syntax like :
oLbx3:nArrayAt := 10, oLbx3:nRowSel := 10
to :
oLbx3:SetPos( 10 )

it works fine now on Button-Action !!!

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests