PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: CWindow Release Candidate 27  (Read 510 times)

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2367
    • Josť Roca Software
CWindow Release Candidate 27
« on: March 19, 2017, 04:56:35 AM »

Added wrappers for the Rich Edit control.

Small modification in a couple of methods of the CTextStream class.

Modified the AfxAddTooltip, AfxSetTooltipText and AfxDeleteTooltip to check if the passed handle is a window or a child control.
« Last Edit: March 19, 2017, 05:00:16 AM by Josť Roca »
Logged
Forum: http://www.jose.it-berater.org/smfforum/index.php
Website: http://www.jose.it-berater.org/index.html
SED Editor, TypeLib Browser, headers and examples.

David Warner

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 110
Re: CWindow Release Candidate 27
« Reply #1 on: March 19, 2017, 05:21:33 PM »

Thank you Josť.  :)
Logged

TechSupport

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 7875
  • Windows 10
    • PlanetSquires Software
Re: CWindow Release Candidate 27
« Reply #2 on: March 21, 2017, 02:34:38 PM »

Thanks Josť! Appreciate it!
Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

Marc Giao

  • FireFly3 Registered User
  • Little Newbie FireFly
  • *
  • Posts: 34
Re: CWindow Release Candidate 27
« Reply #3 on: March 21, 2017, 03:07:26 PM »

Thank you very much Josť... What would we do without you ;)
Logged
Marc

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2367
    • Josť Roca Software
Re: CWindow Release Candidate 27
« Reply #4 on: March 23, 2017, 02:50:45 PM »

Weird. The code has been downloaded 22 times and the help file 60!
Logged
Forum: http://www.jose.it-berater.org/smfforum/index.php
Website: http://www.jose.it-berater.org/index.html
SED Editor, TypeLib Browser, headers and examples.

David Warner

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 110
Re: CWindow Release Candidate 27
« Reply #5 on: March 23, 2017, 04:41:25 PM »

When I downloaded the files the help file download failed and I needed to do it again. Perhaps this accounts for the disparity.
Logged

ganlinlao

  • FireFly3 User
  • Little Newbie FireFly
  • *
  • Posts: 11
Re: CWindow Release Candidate 27
« Reply #6 on: April 18, 2017, 11:07:33 AM »

hi,Josť Roca

I suggest renaming the afxmsg function to the Afxmsgbox function,and add a Title Parameter for non English speaking areas. would it be better than always showing "message" title?
The CWindow framework is a very powerful framework for freebasic use in Windows, you have done a great job, thank you very much!
Logged

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2367
    • Josť Roca Software
Re: CWindow Release Candidate 27
« Reply #7 on: April 18, 2017, 11:26:25 AM »

This function is intended as a quick way to display a message box, mainly for debugging purposes. This is why it uses a short name and only needs to pass the text to display. In production code, I always use the Windows API function MessageBox, that allows to specify the parent window, the text to display, the caption and the type.
Logged
Forum: http://www.jose.it-berater.org/smfforum/index.php
Website: http://www.jose.it-berater.org/index.html
SED Editor, TypeLib Browser, headers and examples.

Andrew Lindsay

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 62
Re: CWindow Release Candidate 27
« Reply #8 on: April 23, 2017, 09:10:56 PM »

Jose,

Thanks so much for this.  I have been mashing around my own RTF stuff for about 18 months.  I had a few glitches that seemed to be a memory leak from somewhere, but as is usually the case, your code bolts in with a minimal amount of work and just does what is says on the box.

Love your work.
Logged

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2367
    • Josť Roca Software
Re: CWindow Release Candidate 27
« Reply #9 on: April 23, 2017, 09:50:11 PM »

Thanks for your kind words. I have noticed that I forgot to add PRIVATE to the SUBs. I have added it in the attached file. Not very important, but it will save some bytes.

Logged
Forum: http://www.jose.it-berater.org/smfforum/index.php
Website: http://www.jose.it-berater.org/index.html
SED Editor, TypeLib Browser, headers and examples.