refresh btnbmp on a Panelscroll - RESOLVED

refresh btnbmp on a Panelscroll - RESOLVED

Postby Silvio.Falconi » Wed Jul 01, 2020 5:38 am

Image

when I change the dates, through a function the item (nListino) of the combobox changes

IF oCombolistino !=NIL
oCombolistino:select(nListino)
eval(oCombolistino:bchange)

endif

when this happens I call the command

eval(oCombolistino:bchange)

on change on this combobox there is a function to refresh btnbmp on PanelScroll

the problem is that the combobox refreshes but then it does not execute the bchange command and the buttons in the panel are not refreshed
how do i solve?
Last edited by Silvio.Falconi on Wed Jul 08, 2020 3:50 pm, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6896
Joined: Thu Oct 18, 2012 7:17 pm

Re: refresh btnbmp on a Panelscroll

Postby Silvio.Falconi » Fri Jul 03, 2020 9:30 am

Antonio, any solution Please, I sent you the test

I explain to you,

exactly when the user selects a date range automatically calculates the number of the price list to be displayed (nListino) and changes the item in the combobox;

the buttons inside the panelscroll are set so that for each price list (High season, Low season, Mid season and seasonal)

it displays the relative price, the possible items of the combobox are from 1 to 4.

If the whole season variable is True, calculated with a function, automatically the list is 4 the item is changed in the combobox (i.e. the fourth item) and consequently it should load the block bchange code function to refresh all the buttons that are inside of the panel

When the combobox is refreshed it does not perform the bchange function and therefore the buttons are not refreshed by displaying the incorrect price and if the user selects an item the price is always incorrect with respect to the selected period.


This is strange because if the user changes the position of the combobox by selecting another item then the function is called correctly and the buttons are refreshed.

the problem is that it doesn't do it automatically

that is, the refresh should do it without the user manually changing the combobox item

I did a lot of tests to make the buttons cool but I couldn't
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6896
Joined: Thu Oct 18, 2012 7:17 pm

Re: refresh btnbmp on a Panelscroll

Postby nageswaragunupudi » Sat Jul 04, 2020 4:05 pm

Please change this
IF oCombolistino !=NIL
oCombolistino:select(nListino)
eval(oCombolistino:bchange)

endif


as

Code: Select all  Expand view
     IF oCombolistino !=NIL
         oCombolistino:set(nListinoNew)
         eval(oCombolistino:bchange)
      endif
 
Regards

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

Re: refresh btnbmp on a Panelscroll

Postby Silvio.Falconi » Sat Jul 04, 2020 7:59 pm

nageswaragunupudi wrote:Please change this
IF oCombolistino !=NIL
oCombolistino:select(nListino)
eval(oCombolistino:bchange)

endif


as

Code: Select all  Expand view
     IF oCombolistino !=NIL
         oCombolistino:set(nListinoNew)
         eval(oCombolistino:bchange)
      endif
 

Nages,
The combobox Is refreshed
The btnbmps are not refreshed
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6896
Joined: Thu Oct 18, 2012 7:17 pm

Re: refresh btnbmp on a Panelscroll

Postby nageswaragunupudi » Sun Jul 05, 2020 1:23 am

This is working fine here.

Image
Regards

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

Re: refresh btnbmp on a Panelscroll

Postby Silvio.Falconi » Sun Jul 05, 2020 7:16 am

Nages,
Ok It was the "set " of combobox
Thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6896
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 49 guests