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 196 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Clearwin colors
Kenneth_Smith

Replies: 7
Views: 163

PostForum: ClearWin+   Posted: Tue Mar 05, 2019 1:50 pm   Subject:
I would start by replacing your 'tweeked' numbers with a call to:
RGB@(RED,GREEN,BLUE)
Where RED, GREEN, and BLUE are integers in the range 0 to 255.

eg RGB@(255,0,0) generates RED.
  Topic: Getting the handle of the button just clicked
Kenneth_Smith

Replies: 6
Views: 231

PostForum: ClearWin+   Posted: Sun Feb 24, 2019 9:31 am   Subject:
Thank you, that works well.

Sample code for those who like to experiment.


module data_mod
implicit none
integer, parameter :: dp=kind(1.d0)
real(kind=dp) :: ...
  Topic: Getting the handle of the button just clicked
Kenneth_Smith

Replies: 6
Views: 231

PostForum: ClearWin+   Posted: Sat Feb 23, 2019 3:22 pm   Subject:
This post caught my attention and I wondered if clearwin_info@('CURRENT_CONTROL') could be used to avoid having a separate call back for every %pl for a window with multiple %pl regions.

Yes it can ...
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Sat Dec 22, 2018 6:44 pm   Subject:
Thanks Paul, Eddie, and John for the suggestions. I had originally thought about a zoom function but decided it was too hard but its back on the too do list. Unfortunately I will have to revisi ...
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Sat Dec 15, 2018 9:14 pm   Subject:
A little more progress was made today:-

https://www.youtube.com/watch?v=yqUAYXo8itM
  Topic: Derived type definition and private attribute
Kenneth_Smith

Replies: 4
Views: 463

PostForum: Support   Posted: Sat Dec 15, 2018 1:09 pm   Subject:
Thanks Paul,

Another one for you to consider. This compiles with no errors, which I think is wrong since mod_b should have no access to the definition of z_t.

module a_mod
implicit none

ty ...
  Topic: Derived type definition and private attribute
Kenneth_Smith

Replies: 4
Views: 463

PostForum: Support   Posted: Thu Dec 13, 2018 12:40 am   Subject: Derived type definition and private attribute
Is this a bug? Should the private declaration in the header of the module def, prevent the main program from finding the definition of the type test_t?

module def
implicit none

private

ty ...
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Sun Dec 09, 2018 5:43 pm   Subject:
Progress to date:-

https://www.youtube.com/watch?v=tM2F2NNaHxY

Thanks to those who emailed and messaged me with suggestions.
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Mon Dec 03, 2018 12:45 pm   Subject:
Thanks Paul,

I've not used child windows before so I am on a learning curve, and experimenting.

For the long dark winter nights I have tasked myself with developing a schematic capture applicat ...
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Mon Dec 03, 2018 10:07 am   Subject:
John,

The first example generates the following. A quarter of the image area is displayed (0.5 x 0.5 = 0.25)

http://www.tr5mx.co.uk/chex1.jpg

The second example draws the whole image:-

ht ...
  Topic: %sh and %sz
Kenneth_Smith

Replies: 15
Views: 1145

PostForum: ClearWin+   Posted: Sun Dec 02, 2018 10:36 pm   Subject: %sh and %sz
I have modified one of the examples in the documentation to convince myself that its possible to scroll over a graphics area embedded in a child with scroll bars:

program main
implicit none
inclu ...
  Topic: Draw_rectangle@ with %gr smooth4 or smooth8 options
Kenneth_Smith

Replies: 3
Views: 390

PostForum: ClearWin+   Posted: Mon Nov 26, 2018 3:19 pm   Subject:
Thanks Paul, I forgot about that example. Modified your example to demonstrate issue as below, and uncommenting the call to set_graphics_selection@ the problem goes away. Very Happy

Ken

program ...
  Topic: Draw_rectangle@ with %gr smooth4 or smooth8 options
Kenneth_Smith

Replies: 3
Views: 390

PostForum: ClearWin+   Posted: Mon Nov 26, 2018 1:11 am   Subject: Draw_rectangle@ with %gr smooth4 or smooth8 options
Below is a link to a simple drawing program which behaves as expected, drawing lines, circles, rectangles etc.

http://www.tr5mx.co.uk/canvas2.f95

If the %gr options smooth4 or smooth8 are includ ...
  Topic: Visualisation library
Kenneth_Smith

Replies: 18
Views: 1917

PostForum: General   Posted: Tue Oct 16, 2018 8:07 am   Subject:
You could use %pl to set up the x and y coordinates. Then since %pl is a graphics region you can simply draw your contour lines on the drawing surface via a call back function. I've got this to work ...
  Topic: Native %pl
Kenneth_Smith

Replies: 404
Views: 65617

PostForum: ClearWin+   Posted: Tue Oct 16, 2018 7:54 am   Subject:
Thanks Paul, Problem fixed Smile I was sure I had read some where that these were to be kind=7. Corrected code below for those who wish to experiment.
module data_mod
implicit none
integer, par ...
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group