"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
??
Search found 24 matches
- Mon Oct 27, 2025 6:07 am
- Forum: Coding Questions
- Topic: IDE works - Compiler doesn't
- Replies: 3
- Views: 759
- 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
It's a shame that stuff is not supported. I shall press on regardless.
Cheers
Roger
- 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 ...
Error: Assembler
purebasic.asm [119]:
extrn SetCurrentDirectoryA
processed: extrn SetCurrentDirectoryA
error: symbol already defined.
..
that's a windows call (SetCurrentDirectoryA)
..
is there some ...
- 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 ...
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 ...
- 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.
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.
- 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 ...
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 ...
- 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 ...
- 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
I think it makes more sense syntactically to number it yourself, but maybe that's just me.
Thx again
- 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 ...
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 ...
- 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 ?
- 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 ...
"The specified gadget is not initialised ??
Enumeration Stuff
#G_Editor2
EndEnumeration
OpenWindow(0, 0, 0, 640, 240, "Demo", #PB_Window_ScreenCentered | #PB_Window ...
- 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 ...
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 ...
- 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 ?
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 ?
- 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 ...
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 ...
- 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 ...
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 ...