replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - %ob does not like wide multi-monitors
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 

%ob does not like wide multi-monitors
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
DanRRight



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

PostPosted: Thu Sep 27, 2012 1:10 am    Post subject: %ob does not like wide multi-monitors Reply with quote

%ob[status,thin_panelled] crashes the code when i open window 2900 pixels wide (stretched over two monitors). Tells the window is too wide. Can this be fixed in future releases?

Code:

        i=winio@('%nl%ob[status,thin_panelled]&')
        i=winio@('%20st %20st&', MouseClReason_Mouse_Pos, MouseClReason_Mouse_Pos5)       
        i=winio@('%cb&')
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Thu Sep 27, 2012 12:06 pm    Post subject: Reply with quote

Hi Dan,

Is this something that can be fixed with SUBROUTINE SET_MAXIMUM_DIALOG_SIZE@( WIDTH, HEIGHT )?

Regards

Eddie
Back to top
View user's profile Send private message
DanRRight



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

PostPosted: Thu Sep 27, 2012 6:12 pm    Post subject: Reply with quote

Yes, i think this is a solution, thanks, Eddie. But, strange.... i think i compiled it ones successfully and it worked. Then abruptly whatever i do i get the "Error 29 Call to missing routine SET_MAXIMUM_DIALOG_SIZE# ..."
Devilry Sad
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Thu Sep 27, 2012 7:36 pm    Post subject: Reply with quote

Dan, I'm a bit confused ... you finished the routine name with @ or # ?

I never had any problem maximising a main window across dual monitors, but a dialog - that's a new trick

Eddie
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 506
Location: Sunderland

PostPosted: Fri Sep 28, 2012 12:51 pm    Post subject: Reply with quote

Yeah,
I've noticed that, it seems to replace @ with # in the diagnostic.
The missing routine is usually caused by omitting the
" include <windows.ins>" or the "Use" equivalent from the calling routine.
Ian
Back to top
View user's profile Send private message Send e-mail
DanRRight



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

PostPosted: Fri Sep 28, 2012 3:12 pm    Post subject: Reply with quote

I "use mswin". Adding "use clearwin' is redundant, and even if i add, it does not change anything -- i get same error that subroutine SET_MAXIMUM_DIALOG_SIZE@ is missing. Actually, i do not see this subroutine anywhere in the package (only in chm and enh files), and i have latest version. Where is it? Did i already say "devilry"? Smile that 's the word you will pronounce zillion times learning and using Clearwin+. It moved there from FTN90 and early FTN95... LOL

And that error is own compiler diagnostics message which replaces @ with #, and adds underscore. That just confuses programmer, i think this should be fixed.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Sep 28, 2012 3:51 pm    Post subject: Reply with quote

The interface is

Code:
      C_EXTERNAL SET_MAX_DIALOG_SIZE@ '__set_max_dialog_size' (VAL, VAL)


and can be found in clearwin.ins for example.
Back to top
View user's profile Send private message AIM Address
DanRRight



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

PostPosted: Fri Sep 28, 2012 4:28 pm    Post subject: Reply with quote

True devilry....now my search engine finds what before did not...i see it is there in clearwin MOD and ins files. Still when run i get the same error complaining about missing routine....Some older MOD file in the path which does not have this subroutine? Impossible
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Sep 28, 2012 4:58 pm    Post subject: Reply with quote

Just put the interface line into your code with the other declarations - in the subprogram where the routine is called.
Back to top
View user's profile Send private message AIM Address
DanRRight



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

PostPosted: Fri Sep 28, 2012 7:21 pm    Post subject: Reply with quote

hahaha....i found the error. Machine finds it in no time, but humans are too complex for that. Easy to make such error and hard to find. Guess where it is ? Will not post the answer for a while, just for fun, may be someone will find it.

hint: you have all needed information to find the reason. Devilry !
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 29, 2012 9:14 am    Post subject: Reply with quote

OK. Do we tell when we see it?
Back to top
View user's profile Send private message AIM Address
IanLambley



Joined: 17 Dec 2006
Posts: 506
Location: Sunderland

PostPosted: Sat Sep 29, 2012 12:15 pm    Post subject: Reply with quote

Sorry chaps, I'm a little confused. It appears that the well known quotation "Britain and America, two countries divided by a common language" is being displayed to the extreme in this forum. To steal a phrase from Monty Python - "Sorry, don't understand your banter old chap, cabbage crates coming over the briny" etc.
Back to top
View user's profile Send private message Send e-mail
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Sat Sep 29, 2012 1:32 pm    Post subject: Reply with quote

What I find more interesting is that I have successfully opened windows with a menu bar, toolbar and a %gr graphics area spanning 2 screens without the slightest problem, so I thought that the size limit for dialog boxes was fixed/increased - until I saw Dan's post, and the lightbulb came on.

Once again, the documentation is correct, but not sufficient for a user to pre-empt problems, no matter how much reading he does.

C'mon Dan, I 'tipped you the wink' (Brit) so 'give us a clue' (Brit).

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sun Sep 30, 2012 9:20 am    Post subject: Reply with quote

The name of the routine is SET_MAX_DIALOG_SIZE@ and not SET_MAXIMUM_DIALOG_SIZE@. This is not revealed by IMPLICIT NONE but should by shown up by using /DCLVAR on the command line.
Back to top
View user's profile Send private message AIM Address
DanRRight



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

PostPosted: Sun Sep 30, 2012 3:35 pm    Post subject: Reply with quote

Yep. Humans tent to think that MAX and MAXIMUM are short and long form of same thing. LOL

Thanks all again.

Paul, I think /DCLVAR would be great thing to add to switches in all my codes. The more diagnostics the better. But when I've tried /DCLVAR it gives diagnostics on subroutines like that
1051) call ColorBarInitPar
*** COLORBARINITPAR must have the EXTERNAL attribute when /DCLVAR is used


Last edited by DanRRight on Mon Oct 01, 2012 12:32 am; edited 1 time in total
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 -> Support All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
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