Search found 21 matches

by bmcs
Thu Aug 30, 2018 8:19 pm
Forum: Coding Questions
Topic: Read from PDF
Replies: 26
Views: 17654

Re: Read from PDF

I have been looking for something like this for a while. Unfortunately, when I try either of the examples by fabulouspaul or verleihnix InitLibrary() generates an "Invalid memory access. (write error at address 0)" error.
PB 5.70 on Win 7 Ult X64
Any thoughts or pointers would be welcome.
Best ...
by bmcs
Sat Jul 08, 2017 3:32 pm
Forum: Coding Questions
Topic: Problem setting gadgets with delay [SOLVED]
Replies: 7
Views: 2050

Re: Problem setting gadgets with delay

Yet again I thank you RASHAD. I had already started down the wrong road with timers in this program and you have pointed me in the right direction.
by bmcs
Sat Jul 08, 2017 3:01 pm
Forum: Coding Questions
Topic: Problem setting gadgets with delay [SOLVED]
Replies: 7
Views: 2050

Re: Problem setting gadgets with delay

RASHAD wrote:Hi
skywalk post the first method
Next the second one
Thanks for your always helpful input RASHAD, but my example was misleading in that it omitted the AddWindowTimer, which exists in the real program.
by bmcs
Sat Jul 08, 2017 2:53 pm
Forum: Coding Questions
Topic: Problem setting gadgets with delay [SOLVED]
Replies: 7
Views: 2050

Re: Problem setting gadgets with delay

skywalk wrote:Your code dominated the event loop.
Thanks skywalk, your help is much appreciated. Like so may things in my coding (in)ability, I overlooked the need for threading. I can now see the need for threading in other parts of this little program.
by bmcs
Sat Jul 08, 2017 12:11 pm
Forum: Coding Questions
Topic: Problem setting gadgets with delay [SOLVED]
Replies: 7
Views: 2050

Problem setting gadgets with delay [SOLVED]

Hi Folks,
I am writing a small, relatively simple, program to interface with an external control board via a DLL. The DLL functions are working perfectly and I have no issue there. My problem is with setting the gadget sates in the GUI in one case. Rather than generating a load of "red herrings", by ...
by bmcs
Wed Jul 05, 2017 9:51 am
Forum: Coding Questions
Topic: Independent groups of radio buttons? [SOLVED]
Replies: 14
Views: 3921

Re: Independent groups of radio buttons?

Thanks Marc56us,
Your example made it abundantly clear where I was going wrong in my original attempt.
I always try to use Enumeration, but in some instances it makes coding a bit more cumbersome & clunky. For example accessing gadget IDs in a For loop.
Noted your tip about EnableExplicit to help ...
by bmcs
Tue Jul 04, 2017 7:43 pm
Forum: Coding Questions
Topic: Independent groups of radio buttons? [SOLVED]
Replies: 14
Views: 3921

Re: Independent groups of radio buttons?

Thanks Shardik. My target for this exercise is both Windows & Linux, but I will definitely keep a note of this for future reference.
Regards Dave
by bmcs
Tue Jul 04, 2017 2:57 pm
Forum: Coding Questions
Topic: Independent groups of radio buttons? [SOLVED]
Replies: 14
Views: 3921

Re: Independent groups of radio buttons?

Thanks again Rashid. Very nice. Lots of possibilities here.
What I like about this forum is you get real help, not just RTFM!
Dave
by bmcs
Tue Jul 04, 2017 12:51 pm
Forum: Coding Questions
Topic: Independent groups of radio buttons? [SOLVED]
Replies: 14
Views: 3921

Re: Independent groups of radio buttons?

Thanks Rashad,
The ContainerGadget is the facility I expected to find, but again overlooked it in the manual.
Obviously there is a lot more me to find on my PB voyage of discovery.
Regards
Dave
by bmcs
Tue Jul 04, 2017 11:58 am
Forum: Coding Questions
Topic: Independent groups of radio buttons? [SOLVED]
Replies: 14
Views: 3921

Independent groups of radio buttons? [SOLVED]

I need to create 2 independent groups of radio buttons (OptionGadget) in the same window.
For example:
_______________________
|-- Group A -|-- Group B -|
|_____________________|
| o Option 1 | o Option 1 |
| o Option 2 | o Option 2 |
| o Option 3 | o Option 3 ...
by bmcs
Mon Jun 05, 2017 2:07 pm
Forum: Coding Questions
Topic: Problem with GetFileDate() [SOLVED]
Replies: 4
Views: 1623

Re: Problem with GetFileDate() [SOLVED]

Thanks Kenmo, that clarified the whole issue for me.
Dave
by bmcs
Mon Jun 05, 2017 1:36 pm
Forum: Coding Questions
Topic: Problem with GetFileDate() [SOLVED]
Replies: 4
Views: 1623

Re: Problem with GetFileDate()

GetFileDate() returns 0 for a missing file or wrong path:
Debug FormatDate("%yyyy/%mm/%dd - %hh:%ii:%ss", GetFileDate("missing", #PB_Date_Modified))

OK! That explains the 1970 (0) result, but not the reason.

You're passing a relative file path (just its name), so GetFileDate() is looking in ...
by bmcs
Mon Jun 05, 2017 12:30 pm
Forum: Coding Questions
Topic: Problem with GetFileDate() [SOLVED]
Replies: 4
Views: 1623

Problem with GetFileDate() [SOLVED]

I am trying to learn how to use PB's file system commands.
Using the help file example FileSystem.pb I have added a simple Else statement:
FileName$ = DirectoryEntryName(0)
If DirectoryEntryType(0) = #PB_DirectoryEntry_Directory
FileName$ = "[DIR] " + FileName$
Else
; D$ is not rquired, only ...
by bmcs
Mon Apr 10, 2017 9:44 pm
Forum: Coding Questions
Topic: Back On ShadowText
Replies: 3
Views: 1381

Re: Back On ShadowText

Thanks to you both, I now have the pointer for the direction I wanted to go.
Much appreciated.
Dave
by bmcs
Mon Apr 10, 2017 8:38 pm
Forum: Coding Questions
Topic: Back On ShadowText
Replies: 3
Views: 1381

Back On ShadowText

I am back trying to expand my knowledge of PB.

The following (highly condensed) code snippet draws shadowed text under Windows, but doesn't utilize the loaded font.
Questions:
1. I got an excellent answer from RASHAD in another thread, but can this this be done without using an API callback?
2. Can ...