Search found 779 matches

by Saki
Sat May 16, 2020 12:32 pm
Forum: Tricks 'n' Tips
Topic: DrawTextBox and DrawVectorTextBox
Replies: 6
Views: 2448

Re: DrawTextBox und DrawVectorTextBox

Very nice
Can you change the output to DPI aware and scaling >100% ?

And maybe frames and transparency would be very nice 8)
by Saki
Sat May 16, 2020 11:09 am
Forum: Coding Questions
Topic: DrawVectorText() can also multiline output
Replies: 20
Views: 6122

Re: DrawVectorText() kann auch mehrzeilige Ausgabe

Many thanks Danielo.
Its a little but important new function

@MK-Soft:
This is a very nice work
Replacing the line breaks is also amazing
by Saki
Sat May 16, 2020 8:23 am
Forum: Coding Questions
Topic: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.72
Replies: 6
Views: 2783

Re: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.7

Ih Olliv,
Yes, multi font

Hi Danielo,
Thanks for the changed code
With StringField it is very elegant

Best regards Saki
by Saki
Sat May 16, 2020 12:16 am
Forum: Coding Questions
Topic: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.72
Replies: 6
Views: 2783

Re: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.7

@Freak
Thanks for the info.

Its not difficult to emulate this feature for Mac

Hi Olliv,
what you mean with multi font ?

Sorry all, i understand not good english

Regards Saki
by Saki
Fri May 15, 2020 3:16 pm
Forum: Coding Questions
Topic: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.72
Replies: 6
Views: 2783

VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.72

Hi all, it look, VectorTextWidth() fail with line break It is probably because DrawVectorText cannot do Multiline on Mac; which would have to be clarified, since it works on Linux and Windows But, it should work because VectorTextHeight works Regards Saki Define wID=OpenWindow(#PB_Any , 0 , 0 , 900 ...
by Saki
Tue May 12, 2020 4:30 pm
Forum: General Discussion
Topic: 32K Image limit, canvas and DPI aware ?
Replies: 3
Views: 1709

Re: 32K Bildlimit, Leinwand und DPI bewusst ?

Hello, thanks dear friends
Yeah, it's not as easy as I thought
A lot of work
by Saki
Tue May 12, 2020 2:53 pm
Forum: General Discussion
Topic: 32K Image limit, canvas and DPI aware ?
Replies: 3
Views: 1709

32K Image limit, canvas and DPI aware ?

Hello, everyone. I have a question once. I create in a ScrollAreaGadget a canvas in the size 32000*16000 to display and edit a satellite photo. I continue to create an image of this size and equivalent buffers. The software should also run under Windows and be DPI aware, because without DPI aware it...
by Saki
Mon May 11, 2020 3:29 pm
Forum: Coding Questions
Topic: DrawVectorText() can also multiline output
Replies: 20
Views: 6122

DrawVectorText() can also multiline output

Hello, everyone, I notice, DrawVectorText() can be multiline This is wrong in the documentary : "This function draws single lines of text only. Multiple calls must be made to draw multiple lines." Define window = OpenWindow(#PB_Any, 0, 0, 600, 300, "", #PB_Window_SystemMenu | #PB...
by Saki
Fri May 08, 2020 1:13 pm
Forum: Coding Questions
Topic: DrawVectorText
Replies: 3
Views: 1407

Re: DrawVectorText

Hello, You mean like this ? ; Vector text output, for image and canvas EnableExplicit Procedure VectorText(text$, output, output_x, output_y, font, color_text=#White, color_background=#Black, alpha_text=255, alpha_background=255) If IsGadget(output) Protected back_value = StartVectorDrawing(CanvasVe...
by Saki
Wed May 06, 2020 1:05 pm
Forum: Coding Questions
Topic: Why does this code always returns zero ?
Replies: 22
Views: 3244

Re: Warum gibt dieser Code immer Null zurück?

I just wrote that it is not wise to program without EnableExplicit, nothing else.
English is not easy for me, should I have offended you it makes me very sad.
by Saki
Wed May 06, 2020 12:30 pm
Forum: Coding Questions
Topic: Why does this code always returns zero ?
Replies: 22
Views: 3244

Re: Warum gibt dieser Code immer Null zurück?

Hi all, vmars316 is not an experienced programmer. His code is not beautiful and not elegant. But if only the global variable was the error, it doesn't matter if he uses Goto or ProcedureReturn without defined return parameters, both are no errors. Goto is very powerful and yet it is a part of PB. A...
by Saki
Tue May 05, 2020 11:58 pm
Forum: Coding Questions
Topic: Why does this code always returns zero ?
Replies: 22
Views: 3244

Re: Warum gibt dieser Code immer Null zurück?

Hi

Try simple :

Code: Select all

If FileNameText$ = ""
And make sure that you are never allowed to jump out of a Select - Endselect, this will cause trouble.
by Saki
Sun Apr 26, 2020 12:43 pm
Forum: General Discussion
Topic: FileSeek Bug 5.72
Replies: 2
Views: 1839

FileSeek Bug 5.72

; 負のオフセットのバグ - Negative offset bug - Positive works - Also error in doku ? file$ = GetTemporaryDirectory() + "日本の小花であるサキ" file = CreateFile(#PB_Any , file$) WriteString(file , "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDD" , #PB_UTF8) Debug FileSeek(file , Lof(file) -8 ) ; Give back 24 - OK...
by Saki
Wed Apr 22, 2020 8:48 am
Forum: Coding Questions
Topic: help with clearing part of a transparent image
Replies: 9
Views: 1737

Re: Hilfe beim Löschen eines Teils eines transparenten Bilde

Hello everyone
Problems with funky are mostly on Linux
Linux does not like it