Ralf
Joined: 30 Aug 2007 Posts: 51 Location: munich
|
Posted: Thu May 22, 2025 9:56 am Post subject: Spin wheel bug |
|
|
I have some problems using 2 spin wheels on the same dialog. When I use the second spin wheel several times, the variable of the first spin wheel changes its value. The problem occurs with 32bit and 64bit compiled with ftn95 version 9.10. Compiled with 9.02 I can not see any issues.
Here is my sample code:
Code: |
winapp
!==================================================================
MODULE data_module
integer*4 :: var_1 = 1
integer*4 :: var_2 = 2
end module data_module
!==================================================================
Program Test
integer :: winio@, iw
external :: cb_func_1
iw = winio@ ('%ca[Test]&')
iw = winio@ ('%mn[CB1]',cb_func_1)
end
!==================================================================
integer*4 function cb_func_1()
use data_module
integer :: winio@, iw
external cb_func_2, cb_func_3
cb_func_1 = 2
iw = winio@ ('%`ca[Test]&')
iw = winio@ ('Variable 1 &')
iw = winio@ ('%dd%`bg[window]%^6rd%nl&',1, var_1, cb_func_2)
iw = winio@ ('Variable 2 &')
iw = winio@ ('%dd%`bg[window]%^6rd%nl&',1, var_2, cb_func_3)
iw = winio@ ('%ff%2nl%`10bt[Close]')
end
!==================================================================
integer*4 function cb_func_2()
use data_module
cb_func_2 = 1
end
!==================================================================
integer*4 function cb_func_3() !
use data_module
cb_func_3 = 1
end
|
|
|