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 

Search found 152 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Formatting a value
simon

Replies: 2
Views: 754

PostForum: Support   Posted: Sat Jan 27, 2018 7:37 pm   Subject:
Program dollars_cents
Character(Len=16) :: c
Real :: v

Read (Unit=*, Fmt=*) v
Write (Unit=c, Fmt='(F16.2)') v
c = '$' // Adjustl(c)
Prin ...
  Topic: Double call to callback functions
simon

Replies: 16
Views: 6904

PostForum: ClearWin+   Posted: Mon Jan 22, 2018 6:43 pm   Subject:
Thanks Paul. So addr is Integer(3) if latest_variable is Integer(3), but clearwin_info is returning Integer(7), right?

Eddie, I think I'm going to go with your suggestion of a pull-down list. I wou ...
  Topic: Double call to callback functions
simon

Replies: 16
Views: 6904

PostForum: ClearWin+   Posted: Sun Jan 21, 2018 9:03 pm   Subject:
This problem has reared its ugly head again under Windows 10, although the original example program I provided seems to run ok. The solution I indicated no longer seems to work, so I was interested to ...
  Topic: Compiler bug with /64 and /defint_kind 4
simon

Replies: 15
Views: 2842

PostForum: 64-bit   Posted: Fri Dec 29, 2017 5:32 am   Subject:
Here's some examples that generate a compile-time error using CheckMate x64:

Winapp
Program p1
Integer :: iw
Character(Len=16) :: c = 'ABCDEFGHIJKLMNOP'
! Len
iw ...
  Topic: %de
simon

Replies: 1
Views: 843

PostForum: 64-bit   Posted: Fri Dec 29, 2017 5:12 am   Subject: %de
noteson64bitftn95.enh lists a set of ClearWin+ format codes that require an interger(7) input argument. Should %de be listed as one of these?
  Topic: SRC /r not working with /BINARY
simon

Replies: 4
Views: 977

PostForum: 64-bit   Posted: Fri Dec 29, 2017 5:01 am   Subject:
Thanks, Paul. Yes, I was working from a project within Plato. The BuildLog contains the following:

SRC.EXE "C:\...\src\resource.rc" /r /BINARY "CheckMate\Win32\resource.res"
...
  Topic: SRC /r not working with /BINARY
simon

Replies: 4
Views: 977

PostForum: 64-bit   Posted: Thu Dec 28, 2017 7:52 pm   Subject: SRC /r not working with /BINARY
I have been having trouble linking a resource file from within Plato, and eventually worked out that SRC mfile.rc /r /BINARY mydir\resource.res is not working. I have confirmed that it does not work f ...
  Topic: Compiler bug with /64 and /defint_kind 4
simon

Replies: 15
Views: 2842

PostForum: 64-bit   Posted: Thu Dec 28, 2017 6:34 pm   Subject:
Is the /DEFINT_KIND 4 issue still outstanding? I have been trying to use UBOUND and LEN as subroutine arguments, and I saw from another post somewhere that some intrinsic functions are still defaultin ...
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Tue Jun 06, 2017 11:40 am   Subject:
Indeed, John. But as the example I posted illustrates, calling get_system_font@, resizing, and then set_default_font@ does not seem to behave as one might expect.
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Mon Jun 05, 2017 12:14 pm   Subject:
Great, thanks Paul.

Dan- get_text_size@ only works for drawing surfaces.
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Sun Jun 04, 2017 7:34 pm   Subject:
Actually, Paul, what might be simpler is to have a function that indicates the font size (height and average width) for a specified font. It would then be possible to calculate the (approximate) size ...
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Fri Jun 02, 2017 5:02 pm   Subject:
Thanks Eddie. Your suggestion is approximately how I scale my fonts for constructing "format windows" (as the help pages call them), and that is working reasonably well. However, where I am ...
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Fri Jun 02, 2017 1:14 pm   Subject:
Thanks Paul. That does indeed work, but I was hoping to be able to reset the default font because I am having difficulties trying to calculate the required size of the ClearWin+ window.
  Topic: clearwin standard font size
simon

Replies: 16
Views: 5596

PostForum: Support   Posted: Fri Jun 02, 2017 2:38 am   Subject:
Despite trying to follow the advice in the Help pages and in posts such as this, I am having no success in getting the default font size to change in ClearWin+ windows. I offer the following code as a ...
  Topic: Ganged buttons
simon

Replies: 21
Views: 7595

PostForum: ClearWin+   Posted: Sun May 07, 2017 4:29 am   Subject:
Here is an example using the * modifier with %tl that crashes with Nagfor, but works in FTN95:

Program p
Use clrwin$, Only: winio$
Integer :: iw
!
iw = winio$('%ca@&', ...
 
Page 1 of 11 Goto page 1, 2, 3 ... 9, 10, 11  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group