 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
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
|
|
|
Back to top |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 813 Location: Hamilton, Lanarkshire, Scotland.
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|