FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour No Message from oBrw:bChange on Buttonaction ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
No Message from oBrw:bChange on Buttonaction ?
Posted: 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.



Selecting a Color with a Button


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


Color-Selection from Button and new Browser-Row-Position
with no Message from oBrw:bChange :
Code (fw): Select all Collapse
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 :-)
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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: No Message from oBrw:bChange on Buttonaction ?
Posted: Thu Sep 17, 2009 02:58 PM
Instead of
Code (fw): Select all Collapse
oBrw:nArrayAt := 10, oBrw:nRowSel := 10, oBrw:refresh()

Please try
Code (fw): Select all Collapse
oBrw:SetPos( 10 )
Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: No Message from oBrw:bChange on Buttonaction ?
Posted: Thu Sep 17, 2009 03: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.

Continue the discussion