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 

%ud observations

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
wahorger



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

PostPosted: Fri Jan 17, 2020 10:50 pm    Post subject: %ud observations Reply with quote

Observed: If %ud appears on the following winio@() line, the data is not attached to the previous control. This should display a value of 10 when the menu item is selected.

Quote:
winapp
integer,external:: a
integer i
i = winio@('%mn[Test]%ww',a)
i = winio@('%ud',10)
end
integer function a()
use mswin
integer i,handle
handle = clearwin_info@('FOCUS_WINDOW')
I = GET_USER_DATA@(HANDLE)
!i = clearwin_info@('USER_DATA')
print *,i
a = -1
return
end



Question: A %mn is not a control, yes? I tried attaching the %ud to the menu item, and the value was returned as 0 (i.e. no data attached to the control).

Stated another way, if the %ww and %mn are interchanged, the data is still attached to the %ww.

Bill
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Sat Jan 18, 2020 8:38 am    Post subject: Reply with quote

Bill

The initial problem is a missing & after %ww.
Back to top
View user's profile Send private message AIM Address
wahorger



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

PostPosted: Sat Jan 18, 2020 3:55 pm    Post subject: Reply with quote

OOPS! Thanks for being kind, Paul.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
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