Functions Library

Started by Robert Rioja, July 15, 2011, 03:31:00 PM

Previous topic - Next topic

Cho Sing Kum


Also... where are the Reference Charts and Project Notes windows opening? I notice they have the same behaviour as the Function Library window.

José Roca

This is a procedure that Paul could try with FireFly to see if it solves the problem.


' ========================================================================================
' If you use dual (or even triple/quad) displays then you have undoubtedly encountered the
' following situation: You change the physical order of your displays, or otherwise
' reconfigure the logical ordering using your display software. This sometimes has the
' side-effect of changing your desktop coordinates from zero-based to negative starting
' coordinates (i.e. the top-left coordinate of your desktop changes from 0,0 to -1024,-768).
' This effects many Windows programs which restore their last on-screen position whenever
' they are started. Should the user reorder their display configuration this can sometimes
' result in a Windows program subsequently starting in an off-screen position (i.e. at a
' location that used to be visible) - and is now effectively invisible, preventing the
' user from closing it down or otherwise moving it back on-screen.
' The ForceVisibleDisplay function can be called at program start-time right after the
' main window has been created and positioned 'on-screen'. Should the window be positioned
' in an off-screen position, it is forced back onto the nearest display to its last
' position. The user will be unaware this is happening and won't even realise to thank you
' for keeping their user-interface visible, even though they changed their display
' settings.
' Source: http://www.catch22.net/tuts/tips2
' ========================================================================================
SUB AfxForceVisibleDisplay (BYVAL hwnd AS DWORD)

   ' // Check if the specified window-recrangle is visible on any display
   LOCAL rc AS RECT
   GetWindowRect(hwnd, rc)
   IF MonitorFromRect(rc, %MONITOR_DEFAULTTONULL) <> %NULL THEN EXIT SUB

   LOCAL hMonitor AS DWORD
   LOCAL mi AS MONITORINFO
   mi.cbSize = SIZEOF(mi)
   ' // Find the nearest display to the rectangle
   hMonitor = MonitorFromRect(rc, %MONITOR_DEFAULTTONEAREST)
   GetMonitorInfo(hMonitor, mi)
   ' // Center window rectangle
   rc.left = mi.rcWork.left + ((mi.rcWork.right - mi.rcWork.left) - (rc.right-rc.left)) \ 2
   rc.top = mi.rcWork.top + ((mi.rcWork.bottom - mi.rcWork.top) - (rc.bottom-rc.top)) \ 2
   SetWindowPos(hwnd, 0, rc.left, rc.top, 0, 0, %SWP_NOACTIVATE OR %SWP_NOZORDER OR %SWP_NOSIZE)

END SUB
' ========================================================================================


Cho Sing Kum


What I posted earlier may be nonsense. I am sorry.

1) My Firefly was installed with the settings in the My Documents folder.

2) I copy the Settings folder into the Program Files FireFly folder.

3) When I run FireFly, I get a popup as in the attached gif.

4) I intentionally put different values into both FireFly.ini files:
a) InitPosition_CodeLibrary=10,10,200,200 (in My Documents)
b) InitPosition_CodeLibrary=500,500,110,110 (in Program Files)

5) Both were ignored, Function Library open center of screen with default size.

6) I am using only 1 screen 1280 x 1204. WinXP Pro SP3.

I guess I have not been helpful. ;D


Robert Rioja

All other windows (Image Library, Reference Charts, Project Notes) appear in the middle of the screen.  The Functions Library window is the only one misbehaving.  I appreciate all the suggestions, but nothing has worked yet.  If I discover the cause, I will post it.

Robert

Paul Squires

Hi - I will take a look at this for the next FF update (3.5). Hopefully I can fix it for you.
Paul Squires
PlanetSquires Software

Robert Rioja

3.5 ???   What happened to 3.2, 3.3, and 3.4 ??   Holding out on us, are you ??

Just kidding.  I appreciate your hard work.

Robert

Paul Squires

:)

I'll be 100% honest. I haven't done much programming this summer. Lots of "life" things happening. Last week I started back into the programming mode again. I have Jose's cWindow class now integrated into the code generation. I will be adding as many bug fixes as I can to the next update. The reason for 3.5 is that this update will be a big departure from previous versions. You must now use PB10 and Jose's includes only. I saving Version 4 for when I have enough "new" features to justify an upgrade price.

Paul Squires
PlanetSquires Software

Rolf Brandt

I think a moderate upgrade fee for v3.5 would be absolutely ok! FireFly is moderate priced product with many advantages for the user.

We benefit from the new features in PB10 and your work is worth the money.
(Luke 10:7) . . .for the worker is worthy of his wages.
You too!

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

Rolf, that's very nice of you to say. That's why FireFly users are the best users in the PB community. My programming is not motivated by money as much as it probably once was several years ago. I get a lot of enjoyment seeing FireFly grow and users having fun with it and being able to create programs for themselves. :)
Paul Squires
PlanetSquires Software

Rudolf Furstauer

For me it is very important that FF is further developed!
I've written so many programs and it would be terrible if the development goes no further. 
And of course your work must be well rewarded too.

Rudolf Fuerstauer

Rolf Brandt

QuoteI get a lot of enjoyment seeing FireFly grow and users having fun with it and being able to create programs for themselves.

That is certainly obvious from your engagement in development of FireFly as well as in the forum. But some more funds could even increase that joy!

Elsewhere I fully agree with Rudolf.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Robert Rioja

Maybe you could establish a "donation" system so that those of us who can afford to contribute and feel so inclined can do so without forcing everyone else to pay for an upgrade fee.

Rolf Brandt

That also had come to my mind!
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Richard Kelly

There is no truly "free" ride in life and FF is no exception. I'll certainly pony up my share for an upgrade. I have one question. I've put a major FF3 development on hold. Will it seamlessly port over to the PB10 based version?

Rick Kelly

Paul Squires

Quote from: Richard Kelly on August 24, 2011, 11:11:39 PM
I have one question. I've put a major FF3 development on hold. Will it seamlessly port over to the PB10 based version?
It should. There is no changes to the FireFly project structure. Code generation is changed. I will test the new version on every sample project that I have (including the FireFly source code itself!) just to be sure that there are no hidden gottchas.
Paul Squires
PlanetSquires Software