Recent

Author Topic: TVPlanit Reboot  (Read 36935 times)

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #15 on: July 01, 2016, 07:52:22 pm »
Think I found a small bug. In the demo & in my own test program, if I set granularity to 60 minutes and then maximize the window, the DayView vertical scrollbar turns black and unresponsive.
Fixed.

Great thanks. All this must take a lot of your time. Much appreciation.

By the way, I'll make a French translation available sometime next week.

JD
« Last Edit: July 01, 2016, 08:19:59 pm by JD »
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #16 on: July 01, 2016, 08:22:03 pm »
I installed tvplanit of lazarus 1.6 on mac osx el capitan. Fill the sample successfully (bufdsdatastore), but if you look at the screens that attach there is some bug in graphics. Can you tell me how to solve?
I don't have an explanation for the issue of growing fonts, it does not occur on Windows, and not on Linux. Please try the new revision from ccr trunk. It's just a wild guess...

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #17 on: July 01, 2016, 09:47:52 pm »
To all those using the current development version of tvplanit: Due to occasional, but severe installation issues I reorganized the source code and package files (r4883):
  • The main package laz_visualplanit.lpk is now in the source folder
  • The zeos package laz_visualplanit_zeos.lpk is now in the folder source/addons/zeos
  • The sqlite3 package laz_visualplanit_sqlite3.lpk is in source/addons/sqlite3
  • The folder packages does no longer exist.
At first you must compile laz_visualplanit, then those of the addons which you need. Finally rebuild the IDE.

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #18 on: July 01, 2016, 10:40:08 pm »
To all those using the current development version of tvplanit: Due to occasional, but severe installation issues I reorganized the source code and package files (r4883):
  • The main package laz_visualplanit.lpk is now in the source folder
  • The zeos package laz_visualplanit_zeos.lpk is now in the folder source/addons/zeos
  • The sqlite3 package laz_visualplanit_sqlite3.lpk is in source/addons/sqlite3
  • The folder packages does no longer exist.
At first you must compile laz_visualplanit, then those of the addons which you need. Finally rebuild the IDE.

Just grabbed the svn version. Got the following compilation errors:

Compile package laz_visualplanit 1.0.4: Exit code 1, Errors: 3, Warnings: 1
vpdayview.pas(312,15) Warning: An inherited method is hidden by "SetColor(TGraphicsColor);"
vpbasepainter.pas(68,3) Error: Identifier not found "OffsetRect"
vpbasepainter.pas(70,3) Error: Identifier not found "OffsetRect"
vpbasepainter.pas(72,3) Error: Identifier not found "OffsetRect"

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #19 on: July 01, 2016, 10:52:08 pm »
You were a bit too fast. Should be fixed in the meantime.

As for the warning, I'll address them later...

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #20 on: July 01, 2016, 10:54:16 pm »
You were a bit too fast. Should be fixed in the meantime.

As for the warning, I'll address them later...

 :D You're right.
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #21 on: July 01, 2016, 10:54:34 pm »
I installed tvplanit of lazarus 1.6 on mac osx el capitan. Fill the sample successfully (bufdsdatastore), but if you look at the screens that attach there is some bug in graphics. Can you tell me how to solve?
I don't have an explanation for the issue of growing fonts, it does not occur on Windows, and not on Linux. Please try the new revision from ccr trunk. It's just a wild guess...
I can see the issue now on my Linux VM with gtk2 (the previous test was with qt).

[EDIT]
... and was able to fix it. Please test if this solves the issue under OSX as well.
« Last Edit: July 02, 2016, 12:05:12 am by wp »

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
Re: TVPlanit Reboot
« Reply #22 on: July 02, 2016, 12:50:55 pm »
I installed tvplanit of lazarus 1.6 on mac osx el capitan. Fill the sample successfully (bufdsdatastore), but if you look at the screens that attach there is some bug in graphics. Can you tell me how to solve?
I don't have an explanation for the issue of growing fonts, it does not occur on Windows, and not on Linux. Please try the new revision from ccr trunk. It's just a wild guess...

Look, I used the version that you say. Yet the written climb.


Also someone explains to me why GetDefaultLang gives me an empty value?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
Re: TVPlanit Reboot
« Reply #23 on: July 02, 2016, 01:11:37 pm »
When on window build demo example:

demomain.pas(209,3) Error: Identifier not found "GetLocaleFormatSettingsUTF8"
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #24 on: July 02, 2016, 01:47:24 pm »
The version that I posted this night still had a related issue which now made problems on Windows. The current version should save and restore the font correctly in repeated calls to DrawRotatedText (at least I hope so...).

The "GetLocaleFormatSettingsUTF8" compilation error is in one of the revisions, yes, sorry. It happened because Lazarus told me that unit LazUtf8 would already be used, I deleted it, everything compiled fine. But after committing I realized that this was not true. I wonder why Lazarus so often fails to notify me of compilation errors...

GetDefaultLang is an empty string to indicate the translation system to use the default language found on this particular system. Only after you specify a special language in SetDefaultLang it will return that new language. I agree, the naming is a bit confusing, indeed.

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #25 on: July 02, 2016, 03:32:15 pm »
@wp

I've noticed another bug in the display. The limits of DayView (11pm or 23:00) sometimes are not visible because the the scrollbar does not permit scrolling down there i.e it is not in the visible region of the scrollbar.

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #26 on: July 02, 2016, 05:46:19 pm »
I thought I had fixed it yesterday, but you are right, that beast is still there...

Please check the current revision, it should work now

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #27 on: July 02, 2016, 06:06:28 pm »
I thought I had fixed it yesterday, but you are right, that beast is still there...

Please check the current revision, it should work now

Just updated from SVN. It looks OK for all DayView granularity except for 60 minutes. See attached screenshot.
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

wp

  • Hero Member
  • *****
  • Posts: 13221
Re: TVPlanit Reboot
« Reply #28 on: July 02, 2016, 06:55:57 pm »
Strange, I cannot reproduce this. What is your OS? Using the "demo" project, please give me detailed step-by-step instructions how to get into this situation.

EDIT
You screenshot does not show the bottom part of the window, it looks as if cropped by an image processing software. Or the TVpDayView component is not aligned within its parent and thus cut off. Do you see the issue with the "demo" project? Here the DayView is client-aligned.
« Last Edit: July 02, 2016, 07:12:01 pm by wp »

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: TVPlanit Reboot
« Reply #29 on: July 02, 2016, 07:57:15 pm »
@wp Sorry about that. You're right. It was masked by my bottom button panel. I'll have to redesign the interface.

JD

Edit: It occured because the DayView was inside a PageControl. I guess I'll have to get rid of the PageControl.
« Last Edit: July 02, 2016, 09:04:23 pm by JD »
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018