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 

BringWindowToTop

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



Joined: 19 Sep 2017
Posts: 10
Location: Nottingham

PostPosted: Thu Jun 07, 2018 5:24 pm    Post subject: BringWindowToTop Reply with quote

My program contains the following line:
OK=BringWindowToTop(main_window_handle)
Slink says BringWindowToTop is missing.
It didn't seem to have any effect on the runtime behaviour of the program, but I do recollect seeing some correspondence about the routine, perhaps in this forum (yes, I've done several searches without finding anything. I guess that my program is not trying to execute this statement because the user has chosen a series of options that do not require BringWindowToTop but I won't always be so lucky. Is there any other way of bringing a window to the top of the pile?

Thanks for reading this

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


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

PostPosted: Thu Jun 07, 2018 8:19 pm    Post subject: Reply with quote

BringWindowToTop is declared, for example, via INCLUDE <WIN32API.INS>. You could alternatively use WINDOW.INS or one of the equivalent modules.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



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

PostPosted: Thu Jun 07, 2018 10:49 pm    Post subject: Reply with quote

Just a reminder that %ww[topmost] keeps the window on top, as distinct from bringing a window to the top, if that's any help.

Eddie
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Sun Jun 10, 2018 9:35 pm    Post subject: Reply with quote

this post has once again brought about a revelation for me ... a RTFM type revelation .....
I've discovered this nugget of a page (via a google search, when looking for 'INCLUDE Win32appi.ins' which I'd personally never seen before) ...
http://www.silverfrost.com/ftn95-help/clearwinp/util/compileroptionsanddirectivesforwindows.aspx
It's a v.g. description of what the 'INCLUDE' directives, and 'WINAPP' are all about.
Everyone who uses FTN95 should read and absorb it.

Of particular interest also for the speed-tuners amongst yee are the suggestions there to create you're own customised user-defined files to include' instead of the full ones containing thousands of definitions ('the full set'), which will dramatically speed up compile times.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Sun Jun 10, 2018 9:39 pm    Post subject: Reply with quote

as far as the original question is concerned , Paul (Mather) your:
Quote:
It didn't seem to have any effect on the runtime behaviour of the program

is a bit disconcerting.

Shouldn't it create a fatal error at link time Paul (Laidler) ???

Whether or not the user might select or not a particular option(s) (Paul M's hypothesis) is kind of waiting fo the horse to bolt out of the stable door.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Jun 11, 2018 5:48 am    Post subject: Reply with quote

I am guessing that the call was just commented out.

p.s. Edited comment - it's British summer time so not quite so early as it seems.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Tue Jun 12, 2018 7:21 am    Post subject: Reply with quote

shouldn't that be:
Quote:
'it's british summertime so it's actually earlier than it seems'

or
Quote:
'it seems not to be so early as it actually is'

(since the clocks go back in the autumn, so 5h48 would be in reality 4h48 in real time ... GMT !

https://www.youtube.com/watch?v=nW_MJRscgHE&pbjreload=10
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
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
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