Search found 67 matches

by Andesdaf
Sat Oct 04, 2025 5:48 pm
Forum: Bugs - Windows
Topic: [Done] Dialog onevent binding doesn't work for ContainerGadget
Replies: 1
Views: 815

[Done] Dialog onevent binding doesn't work for ContainerGadget

#Dialog = 0
#Xml = 0

Runtime Procedure containerEvent()
Debug "abcd"
EndProcedure

Runtime Procedure remoteEvent()
PostEvent(#PB_Event_Gadget, 0, DialogGadget(#Dialog, "cont1"))
EndProcedure

XML$ = "<window id='0' name='test' text='test' minwidth='auto' minheight='auto' flags='#PB ...
by Andesdaf
Tue Sep 02, 2025 8:52 pm
Forum: Coding Questions
Topic: PurePDF module
Replies: 1
Views: 446

Re: PurePDF module

That should be possible. Is the problem where to get the toto variable from? Try using a global variable or call another procedure that returns it.
by Andesdaf
Mon Sep 01, 2025 9:11 pm
Forum: Announcement
Topic: PureBasic 6.30 beta 4 is ready !
Replies: 105
Views: 17303

Re: PureBasic 6.30 beta 1 is ready !

Some nice additions, thank you!
by Andesdaf
Thu Apr 24, 2025 8:58 pm
Forum: Coding Questions
Topic: How to avoid empty array elements when making JSON out of structures?
Replies: 3
Views: 775

Re: How to avoid empty array elements when making JSON out of structures?

Yes it's because ReDim(Size) creates Size+1 elements. You could ReDim with Size-1 in the end or do the first ReDim only in the second iteration of the ForEach loop:

Define j.JSON, Size.i
Size = ArraySize(j\Test$())
ForEach Names$()
If ListIndex(Names$()) > 0
Size + 1
ReDim j\Test$(Size)
EndIf ...
by Andesdaf
Fri Apr 18, 2025 8:18 am
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 16
Views: 8260

Re: VecVi - Create and output documents using VectorDrawing lib

Sorry, but I don't see any IDE config lines in the code or config files in the git repository.
by Andesdaf
Sat Mar 29, 2025 4:18 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 16
Views: 8260

Re: VecVi - Create and output documents using VectorDrawing lib

skywalk wrote: Fri Mar 28, 2025 9:53 pm Side note: the git PB files have config info at the bottom of the files AND separate config files. Did you set gitignore on the config files?
I configured my IDE to not write any config to files or append it to the code. Is that what you mean?
by Andesdaf
Fri Mar 28, 2025 7:18 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 16
Views: 8260

Re: VecVi - Create and output documents using VectorDrawing lib

new version 1.20


- added ReplaceHeader(), ReplaceFooter(), AppendHeader(), AppendFooter()
- added variable support with GetVariable(), SetVariable(), RemoveVariable()
- added named position support with GetNamedPos(), SetNamedPos(), UseNamedPos()
- added LoadFile()/SaveFile()
- added pzName ...
by Andesdaf
Tue Mar 11, 2025 7:46 pm
Forum: Bugs - IDE
Topic: Add/Remove Marker with function key doesn't work.
Replies: 4
Views: 2348

Re: Add/Remove Marker with function key doesn't work.

Works normally under Windows, can't test with Linux.
by Andesdaf
Sat Mar 01, 2025 10:39 pm
Forum: Coding Questions
Topic: Printing in PB, Dante's 7 circles of Hell!!!
Replies: 6
Views: 753

Re: Printing in PB, Dante's 7 circles of Hell!!!

True, I updated my above code.
by Andesdaf
Sat Mar 01, 2025 12:11 pm
Forum: Coding Questions
Topic: Printing in PB, Dante's 7 circles of Hell!!!
Replies: 6
Views: 753

Re: Printing in PB, Dante's 7 circles of Hell!!!

quick&dirty

Procedure eventPrintHandler()
If Not PrintRequester()
ProcedureReturn
EndIf

If StartPrinting("Test")
iFont = LoadFont(#PB_Any, "Arial", 12)
If IsFont(iFont)
If StartVectorDrawing(PrinterVectorOutput(#PB_Unit_Point))

VectorFont(FontID(iFont), 12)

DrawVectorParagraph ...
by Andesdaf
Wed Nov 27, 2024 10:03 am
Forum: Coding Questions
Topic: Confusion around macros and variable expansion
Replies: 8
Views: 1378

Re: Confusion around macros and variable expansion

no, the macro replaces the parameter by the given expression in the call without expanding it. See the second example in https://www.purebasic.com/documentation ... acros.html

You could try to get the shortcut value by using the runtime library.
by Andesdaf
Mon Aug 12, 2024 9:16 pm
Forum: Off Topic
Topic: Account Outlook.com Hack
Replies: 12
Views: 4837

Re: Account Outlook.com Hack

For outlook.com it could be useful to create a secondary alias email address that is not public and then transfer the login privilege only to this address. You can still use your normal email address, but login to the microsoft account then is only possible through the alias.
by Andesdaf
Sat May 04, 2024 10:57 pm
Forum: Coding Questions
Topic: ? Need Help with Regular Expression
Replies: 4
Views: 749

Re: ? Need Help with Regular Expression

Use MatchRegularExpression() instead
by Andesdaf
Tue Apr 16, 2024 3:09 pm
Forum: Coding Questions
Topic: date format for SetMailAttribute()?
Replies: 2
Views: 611

Re: date format for SetMailAttribute()?

I'd say it's the format specified in RFC 5322: https://www.rfc-editor.org/rfc/rfc5322.html#section-3.3, so for example: Sat, 13 Apr 2024 11:45:15 +0200
by Andesdaf
Tue Apr 09, 2024 7:05 pm
Forum: Coding Questions
Topic: Vector Drawing
Replies: 6
Views: 1518

Re: Vector Drawing

StopVectorDrawing() is needed to finish and display the drawing operation, so maybe moving StartVectorDrawing() and StopVectorDrawing() into the loop helps. MouseButton() and the Mouse library are used on screens, better use the event types the CanvasGadget provides for mouse keys.