PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: circular text  (Read 1176 times)

Robert Rioja

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 141
circular text
« on: August 31, 2016, 07:59:47 PM »

Does anyone know how to make text go around a circle?  I believe that RichEdit version 4 has the ability to specify an angle for text, so that might be helpful. But I don't know what version of RichEdit FireFly supports.  Any help would be appreciated.
Robert
Logged

Wilko Verweij

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 147
  • PB10 - FF3.7 User; Win 10
    • CHEAQS
Re: circular text
« Reply #1 on: September 04, 2016, 03:57:17 PM »

Hi Robert, I never tried this, but with the Powerbasic font statements you can specify a font angle. See FONT NEW, escapement. The other problem is to define where to print what.
Wilko
Logged

Robert Rioja

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 141
Re: circular text
« Reply #2 on: September 04, 2016, 05:05:03 PM »

Hi Wilko,
Thanks for the tip.  I tried it but have not been able to get FF to recognize the new font and assign it to the Rich Edit control.
Robert
Logged

Josť Roca

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2726
    • Josť Roca Software
Re: circular text
« Reply #3 on: September 04, 2016, 05:30:16 PM »

Of course not. FONT is a DDT only thingy.

Wilko Verweij

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 147
  • PB10 - FF3.7 User; Win 10
    • CHEAQS
Re: circular text
« Reply #4 on: September 05, 2016, 02:31:27 PM »

Robert, I have no experience with the Rich Edit Control but I doubt whether that is going to work. Without knowing the rest  of your program, wouldn't it be better to draw the text using GDI-commands? In that case, you can even use the SET FONT if you like.
Wilko
Logged

Robert Rioja

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 141
Re: circular text
« Reply #5 on: September 07, 2016, 05:29:06 PM »

That's too complicated for me.  I just want to be able to print text around a circle.  I thought that maybe someone had already done it.
Thanks any way.
Robert
Logged

Marc Pons

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 105
  • FF3 User
Re: circular text
« Reply #6 on: September 09, 2016, 01:08:03 PM »

Hi

a sample done in vb6 using draw with gdi, found some years ago on net

i've tried it, it works , can be translated to freebasic or powerbasic...
Logged

Robert Rioja

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 141
Re: circular text
« Reply #7 on: September 18, 2016, 07:50:59 PM »

Thank you Marc.  I will try it and if I can make it work, I will post a FF example.
Robert
Logged