Search found 24 matches

by RogerTunnicliffe
Mon Oct 27, 2025 6:07 am
Forum: Coding Questions
Topic: IDE works - Compiler doesn't
Replies: 3
Views: 759

Re: IDE works - Compiler doesn't

"PureBasic-CLI.cmd" This is not in my install directories of PureBasic

RunProgram("cmd", "/K SET", "") and sorry I don't know what this means. Is this to be coded in the program, because when i do it does nothing.
I just get

Error: Line 1 - Syntax error

??
by RogerTunnicliffe
Mon Oct 27, 2025 5:55 am
Forum: Coding Questions
Topic: Scintilla with Dialog
Replies: 5
Views: 937

Re: Scintilla with Dialog

Thx HeXOR

It's a shame that stuff is not supported. I shall press on regardless.

Cheers
Roger
by RogerTunnicliffe
Sun Oct 26, 2025 6:51 am
Forum: Coding Questions
Topic: IDE works - Compiler doesn't
Replies: 3
Views: 759

IDE works - Compiler doesn't

If compile my code in the IDE it works fine but if i use pbcompiler I get the following message:-

Error: Assembler
purebasic.asm [119]:
extrn SetCurrentDirectoryA
processed: extrn SetCurrentDirectoryA
error: symbol already defined.
..
that's a windows call (SetCurrentDirectoryA)
..

is there some ...
by RogerTunnicliffe
Sun Oct 26, 2025 12:22 am
Forum: Coding Questions
Topic: Scintilla with Dialog
Replies: 5
Views: 937

Re: Scintilla with Dialog

Hi HeXOR

I've tried this morning and of course you were right. UseDialogScintillaGadget() does the trick..

and... the more I use DialogDesignOr and get to know it the more I like it. Really good job man. :D

it seems that Dialog doco is hard to find so I wonder if you could help me...

1]
Is ...
by RogerTunnicliffe
Sat Oct 25, 2025 8:36 am
Forum: Coding Questions
Topic: Scintilla with Dialog
Replies: 5
Views: 937

Re: Scintilla with Dialog

Your absolutely right. Did not know about that.
I'll give it a shot tomorrow morning.
Thx.

Been using DialogDesignOr most of today. Not a bad piece of work. Probably better than any of the other Form designers I have searched out for Purebasic. Well done man.
by RogerTunnicliffe
Sat Oct 25, 2025 2:15 am
Forum: Coding Questions
Topic: Scintilla with Dialog
Replies: 5
Views: 937

Scintilla with Dialog

This might be an old question but I have searched and cant find it.

I am trying to use Scintilla with Dialog but every time I add it the dialog will no longer load.
I originally created the *.xml using DialogDesignOr but what it produced would not load and it took me a while to figure out it was ...
by RogerTunnicliffe
Thu Oct 23, 2025 9:54 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??


Your EditorGadget coordinates are far away from visible, so you can not see and do anything.
The Gadget is inside of the container, which is 23 pixel high, but you place the Editor Gadget at WindowHeight() - 28


Yeah, your right. I've changed the code so many times now trying to get it right ...
by RogerTunnicliffe
Thu Oct 23, 2025 8:39 am
Forum: Coding Questions
Topic: Only #PB_Any works
Replies: 4
Views: 651

Re: Only #PB_Any works

Oh I see, thx

I think it makes more sense syntactically to number it yourself, but maybe that's just me.

Thx again
by RogerTunnicliffe
Thu Oct 23, 2025 8:28 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??

Ok, so that does work...but does that mean that everywhere the UI is messed up I have to code that work-around.
also ... How do I have the colors in my editor gadget

OpenWindow(0, 0, 0, 640, 240, "Demo", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)

If StartDrawing(WindowOutput(0))
Color ...
by RogerTunnicliffe
Thu Oct 23, 2025 6:29 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??

and..... How does that help me ?
by RogerTunnicliffe
Thu Oct 23, 2025 4:43 am
Forum: Coding Questions
Topic: Only #PB_Any works
Replies: 4
Views: 651

Only #PB_Any works

Why does #PB_Any used for Editor_1 work while the SetGadgetColor for Editor_2 (#G_Editor2) and Editor_3 (1) fail with the error
"The specified gadget is not initialised ??


Enumeration Stuff
#G_Editor2
EndEnumeration

OpenWindow(0, 0, 0, 640, 240, "Demo", #PB_Window_ScreenCentered | #PB_Window ...
by RogerTunnicliffe
Thu Oct 23, 2025 4:09 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??

Thanks for that quick response.
I think your example shows exactly what I am talking about.

and yes... "#PB_Container_BorderLess" and yet we have a border

To further complicate things....
I ask for Editor_2 to have a height of 2px, it reports it as 2 pixels but it's certainly a lot bigger than ...
by RogerTunnicliffe
Thu Oct 23, 2025 3:51 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??

The latest version (6.21)
Debian 11
and... You want me to post 300 lines of code ? (Happy to do it if that is what you want)

Here's another example

Editor_2 = EditorGadget(#PB_Any, 1, FullGadgetHeight-27, 592, 2)

although the editor height is 2px it overflows thru the bottom of the Form ?
by RogerTunnicliffe
Thu Oct 23, 2025 3:31 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Re: Counting pixels ??

Not sure what you expect here.

I delete this line : - Container_ExplorerButtons = ContainerGadget(#PB_Any, 1, FullGadgetHeight-28, 300, 28, #PB_Container_BorderLess)
and all the buttons move to the top of the screen (1 px down) the container disappears leaving no way to tell if it has overflowed ...
by RogerTunnicliffe
Thu Oct 23, 2025 1:44 am
Forum: Coding Questions
Topic: Counting pixels ??
Replies: 16
Views: 1613

Counting pixels ??

This code places 5 buttons inside a container that has a height of 28px
The buttons have a height of 26px and are located 1 pixel down from the top of the container

and yet...

they overlap the container at the bottom unless I make the container 30px deep.

What am I doing wrong ...