Search found 102 matches

by offsides
Sat Dec 16, 2023 5:19 am
Forum: Coding Questions
Topic: PureBasic 6.04 and 6/02 RTF "Issue"
Replies: 9
Views: 1400

Re: PureBasic 6.04 and 6/02 RTF "Issue"

Thanks, Jacdelad.

I'll likely use them both.
by offsides
Fri Dec 15, 2023 4:58 am
Forum: Coding Questions
Topic: PureBasic 6.04 and 6/02 RTF "Issue"
Replies: 9
Views: 1400

Re: PureBasic 6.04 and 6/02 RTF "Issue"

jacdelad

I just insert the SendMessage_ .... after creating the EditorGadget. PB 6.04 now works fine.

Thanks for your input on this.
Bill
by offsides
Fri Dec 15, 2023 4:38 am
Forum: Coding Questions
Topic: PureBasic 6.04 and 6/02 RTF "Issue"
Replies: 9
Views: 1400

Re: PureBasic 6.04 and 6/02 RTF "Issue"

Not wanting to beat a dead horse, at least not too much, I do ask:

Presumably the Linux and IOS PB editions are unchanged and automatically render rtf when they see it. If it takes an API call to fix the Windows version, can the call be built into the EditorGadget?

...and the Windows version is ...
by offsides
Thu Dec 14, 2023 5:33 am
Forum: Coding Questions
Topic: PureBasic 6.04 and 6/02 RTF "Issue"
Replies: 9
Views: 1400

Re: PureBasic 6.04 and 6/02 RTF "Issue"

Many thanks, jacdelad. I totally missed that.
Thanks also for the quick reply!

Bill
by offsides
Thu Dec 14, 2023 5:06 am
Forum: Coding Questions
Topic: PureBasic 6.04 and 6/02 RTF "Issue"
Replies: 9
Views: 1400

PureBasic 6.04 and 6/02 RTF "Issue"

With my track record, I am hesitant to call anything a bug, any more. But after a recent PB upgrade to 6.04 from 6.01, my RTF project suddenly stopped working. The problem is that 6.04 appears to not recognize the rtf prolog as being rtf, just text. Ordinarily, when the EditorGadget is handed text ...
by offsides
Wed Jan 18, 2023 1:50 am
Forum: Tricks 'n' Tips
Topic: A Simple Font/Size/Color Manager for the EditorGadget.
Replies: 10
Views: 1811

Re: A Simple Font/Size/Color Manager for the EditorGadget.

Axolotl,

Nope, you're right. You caught a little version drift in the docs, there.
The final (posted) syntax requires a ":" between a key letter and it's value. An earlier version didn't and the text discrepancy you found was from the earlier one.
Actually, the colon isn't necessary as long as the ...
by offsides
Fri Jan 13, 2023 11:36 pm
Forum: Coding Questions
Topic: FrameGadget backcolor problem ...
Replies: 13
Views: 1716

Re: FrameGadget backcolor problem ...

QB64 appears to be back:

https://qb64.com/
by offsides
Wed Dec 21, 2022 7:49 pm
Forum: Tricks 'n' Tips
Topic: A Simple Font/Size/Color Manager for the EditorGadget.
Replies: 10
Views: 1811

Re: A Simple Font/Size/Color Manager for the EditorGadget.

Thank YOU, RASHAD, for your many contributions to the PB forums over the years.
Bill
by offsides
Tue Dec 20, 2022 7:03 pm
Forum: Tricks 'n' Tips
Topic: A Simple Font/Size/Color Manager for the EditorGadget.
Replies: 10
Views: 1811

Re: A Simple Font/Size/Color Manager for the EditorGadget.

ebs, you're welcome. Glad it worked out.

Bill
by offsides
Mon Dec 19, 2022 7:28 pm
Forum: Tricks 'n' Tips
Topic: A Simple Font/Size/Color Manager for the EditorGadget.
Replies: 10
Views: 1811

Re: A Simple Font/Size/Color Manager for the EditorGadget.

Thanks, dcr3.

I didn't want to puff up the original post too much so I left off some notes that might be handy for those that want to play around with this:

; ===========================================================================================================
; Ver. 0.74 ...
by offsides
Mon Dec 19, 2022 3:55 am
Forum: Tricks 'n' Tips
Topic: A Simple Font/Size/Color Manager for the EditorGadget.
Replies: 10
Views: 1811

A Simple Font/Size/Color Manager for the EditorGadget.

This is one of those "Standing on the Shoulders of Giants" endeavors. Here, several examples posted over the years by Freak, tsSoft, RASHAD, and others on how to modify font text elements in the EditorGadget, are rolled into one. My only contribution is the parser.


; AltFont
; A simple program to ...
by offsides
Sun Nov 27, 2022 11:31 pm
Forum: Coding Questions
Topic: RTF Stylesheets
Replies: 2
Views: 433

Re: RTF Stylesheets

infratec,

The code is just a snippet from a much longer bit of test code, hence no "}". The code is either syntactically correct or not, I guess that was my question. Sorry.

The EditorGadget (or Edit Control) is described as rendering RTF if it sees any. It seems to handle all the standard ...
by offsides
Sun Nov 27, 2022 9:03 pm
Forum: Coding Questions
Topic: RTF Stylesheets
Replies: 2
Views: 433

RTF Stylesheets

Are stylesheets supported by the EditorGadget?

This does not work as written. It works fine if the stylesheet definitions are plugged directly into the text.


Txt$ = "{\rtf1\ansi\deflang1033\deff0" +
"{\fonttbl" +
"{\f0\fnil Arial;}" +
"{\f1\fnil Courier New;}" +
"{\f2\fnil Lucida Console ...
by offsides
Tue Aug 30, 2022 3:08 am
Forum: Coding Questions
Topic: Str(), StrF() Concatenation
Replies: 3
Views: 453

Re: Str(), StrF() Concatenation

Oh, man, this is beyond embarrassing, on both counts.

Thanks, Demivec, Allen.
by offsides
Tue Aug 30, 2022 1:29 am
Forum: Coding Questions
Topic: Str(), StrF() Concatenation
Replies: 3
Views: 453

Str(), StrF() Concatenation

Here's an elementary concatenation that has me stumped:

Code: Select all

Define.f Hr, Min, Sec 
Seconds = 3661

Hr = Int(Seconds/3600): Rem = Mod(Seconds,3600)
Min = Int(Rem/60)
Sec = Mod(Rem, 60)

Debug Hr
Debug Min
Debug Sec

Debug StrF(Hr) + ":" + StrF(Min) + ":" StrF(Sec)