forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Off limits %~fl warning
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2446
Location: South Pole, Antarctica

PostPosted: Tue May 18, 2021 7:56 pm    Post subject: Reply with quote

Looks cool!

Please run this code below as an example

Code:
winapp
program main
real*8 A
common /aaaa/A
integer, external :: Run

 a=0.1

 i=winio@('%co[warn_on_update]%~fl%rf%`fl&', 0d0,1d0, A)
 i=winio@('%ff%^bt[Change A]%es', Run)

end

integer function Run()
include <windows.ins>
  real*8 A
  common /aaaa/A

  A = A + 1
  IF(A.GT.2) a=0.1
  call window_update@(A)

 Run = 2
end function


Is there similar option when the variable is not corrected and plotted as is?
For example this code always shows variable not larger than 1 while in not corrected case the variable shown has to be 1.1

Or with current case at least let it be corrected but shown it has to be 1.1. The behavior of control has to mimic 1:1 the human manual action otherwise it will be confusing ! When human types 1.1 the warning pops up, human sees 1.1 in red but the code still sees 1. Same i think has to be with artificial intelligence inside the computer code, isn't it ? Smile Why it should be different?

Otherwise if programmatically after clicking we see warning, the number displayed is 1.0, instead of 1.1 it becomes not clear why the warning appeared if all looks OK - the limits are not violated !
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7096
Location: Salford, UK

PostPosted: Wed May 19, 2021 8:43 am    Post subject: Reply with quote

Dan

We may have gone full circle. Your latest request could be what you get when calling control_update@ without the new %co options.

Anyway I have now added one more option %co[stet_on_update] that has the desired effect. It keeps everything in one place and makes control_update@ redundant.

The new option will be included in the next release of the DLLs.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2446
Location: South Pole, Antarctica

PostPosted: Wed May 19, 2021 9:37 pm    Post subject: Reply with quote

Paul,

Everything in one place is good solution. Eager to see what you have got.

When to use window_update@ and when control_update@ ?

Is among these options also not modifying variable (WYSIWYG) option ?


Last edited by DanRRight on Thu May 20, 2021 3:50 am; edited 2 times in total
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 1003
Location: Morrison, CO, USA

PostPosted: Thu May 20, 2021 12:57 am    Post subject: Reply with quote

I, too, am curious about control_update@().
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7096
Location: Salford, UK

PostPosted: Thu May 20, 2021 6:55 am    Post subject: Reply with quote

See item 456 in cwplus.enh and http://forums.silverfrost.com/viewtopic.php?t=4217&start=15 post dated November 21 2020.

You can probably use it with the new %co options but it would be better use the latest addition and wait for the next release of the DLLs.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1003
Location: Morrison, CO, USA

PostPosted: Thu May 20, 2021 1:44 pm    Post subject: Reply with quote

Thanks for the references, Paul.
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2446
Location: South Pole, Antarctica

PostPosted: Sat May 29, 2021 4:51 pm    Post subject: Reply with quote

Look how great it notifies. Try not to notice among 1000 pieces of jumping information! I wasted so much of my own time and supercomputer time by not noticing some small parameters which were wrong. This was not 3 seconds but weeks and months. Thanks Paul for stet_on_update option ( i = winio('%co[stet_on_update]%~fl%8rf%`fl%`co&', overfill ). Before this would be shown as just the number 1 in black like all others and you would not notice it

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
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