Search found 275 matches

by es_91
Sat Jun 07, 2025 10:34 am
Forum: General Discussion
Topic: [Licence] Using later dll compile in older exe
Replies: 1
Views: 449

[Licence] Using later dll compile in older exe

I am unsure wheter it would be allowed to compile a dll from PB 6 and use it for a project written in PB 4. Since it could touch the "wrapper" idea somehow.

Actually i am dealing with a lot of old Windows PCs in the present days, and i was curious about using PB 4.00 to compile for Windows 95. Some ...
by es_91
Thu Jun 05, 2025 12:27 am
Forum: Bugs - Documentation
Topic: Confusing statements in $GrabImage
Replies: 3
Views: 582

Re: Confusing statements in $GrabImage

Oh, it can't be used again :idea: :mrgreen:

Thanks a lot Demivec :D
by es_91
Thu Jun 05, 2025 12:24 am
Forum: Coding Questions
Topic: LoadFont inside StartDrawing-block
Replies: 3
Views: 387

Re: LoadFont inside StartDrawing-block

Think Fred should make a decision on this.



;{

define *img
define *fnt

;}


*img = createImage ( #pb_any,
256,
256 )


if ( startDrawing ( imageOutput ( *img ) ) )

;{

; this line works when the debugger is disabled:

*fnt = loadFont ( #pb_any,
"Lucida Console",
12 )

if ...
by es_91
Wed Jun 04, 2025 9:16 pm
Forum: Coding Questions
Topic: The weak spot of EnableGraphicalConsole()
Replies: 2
Views: 690

The weak spot of EnableGraphicalConsole()

I tried implementing Ascii Art just to have a banner for a cli app.

Unlike just prompting, a 'graphical console' should know about the frame size of a cli client area. Just like the default may be 80x25 signs, the user, for example, can change that and enlarge or narrow down the cli output.

When ...
by es_91
Wed Jun 04, 2025 7:54 pm
Forum: Bugs - Documentation
Topic: Confusing statements in $GrabImage
Replies: 3
Views: 582

Confusing statements in $GrabImage

GrabImage copies a section from a source image into target image. The target can be #pb_any, but not a previously dynamically created image...

The help states:

#Image2 A number to identify the new image. #PB_Any can be specified to auto-generate this number.

Note: The number of an existing ...
by es_91
Wed Jun 04, 2025 7:47 pm
Forum: Coding Questions
Topic: LoadFont inside StartDrawing-block
Replies: 3
Views: 387

LoadFont inside StartDrawing-block

The debugger still complains about usings of LoadFont inside a StartDrawing/StopDrawing block.

Turning off the debugger, it works however. :|
by es_91
Wed Jun 04, 2025 8:20 am
Forum: The PureBasic Editor
Topic: Question to indentation sheme
Replies: 3
Views: 525

Re: Question to indentation sheme

Could be in correspondance to this one: viewtopic.php?p=630710
by es_91
Wed Jun 04, 2025 8:05 am
Forum: The PureBasic Editor
Topic: Question to indentation sheme
Replies: 3
Views: 525

Re: Question to indentation sheme


;{ and ;} are preset for folding functionality, I guess you have to remove them from there first (Preferences / Editor / Folding)


Using 6.20 x64 that didn't change anything. Besides i think that the 'curlies' really belong to the source line folding, since they can do blocks as well as any ...
by es_91
Wed Jun 04, 2025 7:07 am
Forum: Off Topic
Topic: What is the actual 50% gray hex?
Replies: 21
Views: 1573

Re: What is the actual 50% gray hex?

Despite the fact that Microsoft always used 128 and 191 for 4-shade gray support, the scale should better be:

0 (black)
$55555 (85, dark gray)
$AAAAAA (170, light gray)
$FFFFFF (255, white)
by es_91
Wed Jun 04, 2025 7:03 am
Forum: The PureBasic Editor
Topic: Question to indentation sheme
Replies: 3
Views: 525

Question to indentation sheme

The keyword sensitive indentation follows a ruleset wich can be changed to support curly brackets only. Personally i like the idea to use the curlies as indentors.

Trying to write a procedure with ;{;}-block inside however fails.

procedure test ()

;{
; first line after the bracket is indented ...
by es_91
Thu May 29, 2025 8:47 pm
Forum: The PureBasic Form Designer
Topic: Any designer to produce .xml dialog code?
Replies: 4
Views: 1142

Any designer to produce .xml dialog code?

Both SpiderBasic and PureBasic could deserve a dialog library ready .xml output.

Is there any third party solution for this?

Regards
by es_91
Thu May 29, 2025 1:30 pm
Forum: Off Topic
Topic: What is the actual 50% gray hex?
Replies: 21
Views: 1573

Re: What is the actual 50% gray hex?

I thought about it. I think a monitor that shows black is not pushing-through any energy, thus has no value (0).

The first amount of energy is '1', the last is '255'. THEIR mid is (255-1)/2+1 = 128. It's not the mid value of the 'values', but the mid of the 'energetic states'.

So perhaps the ...
by es_91
Wed May 28, 2025 12:01 pm
Forum: Coding Questions
Topic: Getting a dialog to have spacing='0'
Replies: 4
Views: 270

Re: Getting a dialog to have spacing='0'

@HeXOR:

Nice! 8)

I never knew the window would have an 8 px margin, it's propably because of the 8 px thick borders introduced with Windows 8.

Here your code in Fred's style:

xmlScript$ + "<window width='320' height='200' text='fill-out container!' flags='#PB_Window_SizeGadget|#PB_Window ...
by es_91
Tue May 27, 2025 6:25 pm
Forum: Coding Questions
Topic: Getting a dialog to have spacing='0'
Replies: 4
Views: 270

Re: Getting a dialog to have spacing='0'

Yep! It works. :mrgreen:

For some reason '-8' is the exact value needed (at my system).

xmlScript$ = "<window id='#pb_any' name='' x='0' y='0' width='320' height='200' text='fill-out container?' flags='#PB_Window_SizeGadget|#PB_Window_MaximizeGadget|#PB_Window_MinimizeGadget'>" +
"<singlebox ...