TextEditGadgetEx PB 4.60

Share your advanced PureBasic knowledge/code with the community.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: TextEditGadgetEx resize scaling zoom

Post by Kwai chang caine »

Waoouuuhh !!! cool effect 8)
That's works on XP Pro, just a little flikering when i resize the windows, but the size of the text follow the size of windows :shock:

Great great job IDLE, thanks a lot for this magical code 8)

Edit:
I have try again more your jewel
I have disabled the *tg2 and *tg3 for just keep the *tg1 (My favorite :mrgreen: )
I have always a little flikering at the resize and i have another little problem
The resizing don't respect the primary size of the character.

1/ If i choose a size 10 at the beginning (for exampler)
2/ i resize very very little and the resizing of the character stop at a moment, the resizing of windows continue but the characters it is not little little like just a point
3/ And when i resize the windows more biggest, the characters is very very big, not return to the original size for the original windows size :(

It's difficult to explain to you, i hope you have understanding :oops:
ImageThe happiness is a road...
Not a destination
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom

Post by idle »

Thanks, I've just fixed the text scale bug will repost the code in a moment

Also fixed the start of line bug. if you deleted back to the start of the line it would print the return char on windows or garbage on linux
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom

Post by idle »

Think I've got rid of the bugs now.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: TextEditGadgetEx resize scaling zoom

Post by Kwai chang caine »

Furthermore of the old bugs i have found an error line

Code: Select all

 If StartDrawing(ImageOutput(*this\textimg))  
when i resize the windows at the minimum (size zero)

you say to me, it's sure the characters is not readable at this size :lol: :lol:
ImageThe happiness is a road...
Not a destination
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom

Post by idle »

Done will repost
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom

Post by idle »

v 0.55
Changed navigation to single letters
Added delete key
Changed font sizing
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom select copy paste

Post by idle »

v.56a
tab
mouse selection
clipboard function for text only copies and pastes unformatted text to from external apps
copies and pastes formated text internally between gadgets
Select all ctrl+ A
Copy ctrl + C
Paste ctrl + V

Please report any bugs, I can only test the code on Linux and XP
Windows 11, Manjaro, Raspberry Pi OS
Image
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: TextEditGadgetEx resize scaling zoom select copy paste

Post by c4s »

I get an IMA on line 932 (Box(*this\ltype()...) when auto-scrolling of the right text was activated and then clicked on close.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx resize scaling zoom select copy paste

Post by idle »

Thanks, I've got no idea why it would do that at the moment
have added a sanity check to the ClearSelection, should fix it.

What OS version were you running?
Windows 11, Manjaro, Raspberry Pi OS
Image
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: TextEditGadgetEx resize scaling zoom select copy paste

Post by c4s »

I tested it with 4.51 x86 on XP SP3.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx PB 4.60

Post by idle »

Changed it to use the Canvas Gadget PB 4.60 only
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx PB 4.60

Post by idle »

Added a glyph cache to speed up resizing.
fixed reverse selection copy.

Next update will include a user configurable syntax highlighter, though it's a couple of days away.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx PB 4.60

Post by idle »

fixed Tab key input on windows
if something doesn't work please take a moment to say it doesn't work, it won't get fixed otherwise :evil:
Windows 11, Manjaro, Raspberry Pi OS
Image
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: TextEditGadgetEx PB 4.60

Post by X »

I see the background image. Any chance on regular images? Insert image at a certain location? * emoticons come to mind *
User avatar
idle
Always Here
Always Here
Posts: 5890
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TextEditGadgetEx PB 4.60

Post by idle »

X look at Graph100's custom gadget it may support images by now.

http://www.purebasic.fr/french/viewtopi ... =6&t=12125

It'd be fairly simple to add static emoticons inline, if I get the chance, I'll look at it later in the week.
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply