PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: GRD for Freebasic (Windows only)  (Read 626 times)

James Klutho

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 225
  • Petroleum Software Solutions
GRD for Freebasic (Windows only)
« on: April 15, 2017, 11:51:37 PM »

Well I have been taking a shot at another grid the last few weeks.  Paul, I like your editor.   I have learned a lot from my previous attempts and this is my first with wide strings and can be compiled to 64 bits. So much else has been simplified.  Too bad Freebasic doesn't support dynamic wide strings.  I hope my method is stable.  No docs to this puppy yet.  This is to be considered an alpha.  I have no plans at this time for split grids, frozen panes or merged cells etc.  This control will be pretty basic.  Some stuff is in there as placeholders and hooks but I have not even tested to if it works.  The cell formats are a part of the wstring.

I have never venture past the ANSI world.  What I need is for someone of a Non-English language to put a font in the demos to see if it works as intended.  Look for the code below and put in your Font.  If it is not working as intended, check out the sub in the include file and give me some suggestions.  Thanks


   mywstr = "Arial"
   GRD_MakeStandardFont(hGrid,MyWstrPtr,10) 'Pick your standard font

Beyond getting the major bugs out and making in High DPI aware (my first attempt at that), I probably will not update the code.  When the code looks stable, I will post it on the Freebasic site.

Next I want to dive into Jose's Afx and maybe make a print control in the spirit of DDOC but with pdfs - boy that will be a learning.

Thanks to all
Jim

Update:
I made some improvements and bug fixes.  GRD_1 is my official release.  No formal documentation - you will have study the example source code.  Hopefully I used enough of the control to get you going.  I will let the Freebasic folk know where to find it.
« Last Edit: August 03, 2017, 08:02:16 PM by TechSupport »
Logged

Paul Squires

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 8090
  • Windows 10
    • PlanetSquires Software
Re: GRD Demo for Freebasic
« Reply #1 on: April 16, 2017, 11:01:37 AM »

Hi Jim, looking awesome! Great job and a very welcome addition to the FreeBasic toolbox. A grid control is sorely missing from FB tools as is a versatile print control. Very pleased to see this code today.  :)
Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

James Fuller

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 272
  • FF3 User
Re: GRD Demo for Freebasic
« Reply #2 on: April 17, 2017, 06:22:04 AM »

Jim,
  Does it provide multi-line column headings?

James

Logged

James Klutho

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 225
  • Petroleum Software Solutions
Re: GRD Demo for Freebasic
« Reply #3 on: April 17, 2017, 01:25:15 PM »

Yes.  The code is there but I have not tested yet.  Jim
Logged

James Klutho

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 225
  • Petroleum Software Solutions
Re: GRD for Freebasic (Windows only)
« Reply #4 on: April 20, 2017, 10:07:58 PM »

Just updated the Grid Control.  I guess this can be regarded as the release.  The original post has the updated download.

Jim
Logged