Search found 19 matches

by Yewklid
Sat Apr 20, 2013 11:09 am
Forum: Coding Questions
Topic: GoScintilla line numbering
Replies: 2
Views: 651

Re: GoScintilla line numbering

Great. That's done it. I was looking in the wrong place. I thought it had something to do with SetAttribute.

Thanks.
by Yewklid
Tue Apr 16, 2013 8:40 am
Forum: Coding Questions
Topic: GoScintilla line numbering
Replies: 2
Views: 651

GoScintilla line numbering

I have been using the excellent GoScintilla for syntax highlighting and bookmarks but I'm not really sure I want line numbering. I've looked through the documentation but I can't see a way to turn line numbering off. Probably there but I've just missed it.
Can anyone point me in the right direction?
by Yewklid
Tue Apr 16, 2013 8:32 am
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

Excellent idea. I tried it and it works :D

Thanks for all your help in getting this sorted!
by Yewklid
Mon Apr 15, 2013 10:33 pm
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

Haven't managed to find a flag that works yet.
by Yewklid
Mon Apr 15, 2013 9:34 am
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

hmmm......I've just found one sneaky way round the problem. If I use your API code to create a window but don't actually show it then I can open a window using PB code in the normal way and use all the usual line drawing code provided by PB.
by Yewklid
Mon Apr 15, 2013 8:48 am
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

All I really need to do is be able to draw line segments to the window which has just been created. I'm guessing that can be done through the API as well although I will need to read up how to do that. That could be one way forward.

I haven't yet figured out your other suggestion. I know that it ...
by Yewklid
Sun Apr 14, 2013 6:14 pm
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

Fantastic. Creating a window through the API works. Thanks.
by Yewklid
Sat Apr 13, 2013 11:04 pm
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

Your suggestion about the common controls is the best clue I have so far. I'll have a look at your links and try some experiments.

Many thanks
by Yewklid
Sat Apr 13, 2013 10:12 pm
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

Re: DLL question

Hi Luiz,

I should have taken out Returnstring because it is not relevant. It can be replaced by a fixed string like this:
ProcedureDLL.s MyMessage()
MessageRequester("Hello", "This is a PureBasic DLL !", #PB_MessageRequester_YesNo )
If Result = #PB_MessageRequester_Yes
a$ + "Yes"
Else
a ...
by Yewklid
Sat Apr 13, 2013 1:32 pm
Forum: Coding Questions
Topic: DLL question
Replies: 13
Views: 2494

DLL question

I am learing how to write DLLs and have put togethet this very simple one.


ProcedureDLL.s MyMessage()
MessageRequester(Returnstring(), "This is a PureBasic DLL !", #PB_MessageRequester_YesNo )
If Result = #PB_MessageRequester_Yes
a$ + "Yes"
Else
a$ + "No"
EndIf
ProcedureReturn a ...
by Yewklid
Tue Mar 05, 2013 10:31 am
Forum: Coding Questions
Topic: GoScintilla Compile Problem
Replies: 2
Views: 795

Re: GoScintilla Compile Problem

Excellent! Thanks. Problem solved.
by Yewklid
Tue Mar 05, 2013 9:33 am
Forum: Coding Questions
Topic: GoScintilla Compile Problem
Replies: 2
Views: 795

GoScintilla Compile Problem

Various GoScintilla examples including Folding, Demo_Simple1 and Demo_Bookmarks1 all run correctly from the PB IDE but don't work when compiled. The window pops up but there is no Scintilla gadget, just a grey screen. In the case of the bookmark example, the menu doesn't appear. I've used them ...
by Yewklid
Mon Feb 04, 2013 10:32 pm
Forum: Coding Questions
Topic: RunProgram problem
Replies: 5
Views: 1013

Re: RunProgram problem

I'll try to find out. Thanks.
by Yewklid
Mon Feb 04, 2013 10:21 pm
Forum: Coding Questions
Topic: RunProgram problem
Replies: 5
Views: 1013

Re: RunProgram problem

Thank you both for your suggestions. Unfortunately no luck with either. (I tried them seperately and together)

The puzzling thing (in view of freak's comments) is that when I run the other program on its own from the command line it returns each input immediately.
by Yewklid
Mon Feb 04, 2013 6:08 pm
Forum: Coding Questions
Topic: RunProgram problem
Replies: 5
Views: 1013

RunProgram problem

I would like to use RunProgram to run a process and collect the output. The problem is that PureBasic seems to hold the output in a buffer and only releases it when the process ends.
These two PureBasic programmes show what I want:


;Prog1
If OpenConsole()

For i = 1 To 10
A$ = Input()
A ...