Search found 33 matches

by PB2004
Sat Mar 25, 2017 3:07 am
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Re: Controls "Blanking Out" [False Alarm by Noob]

Well I found the cause of the blanking. In all this processing I was packing and unpacking some files. One earlier problem I had with that was the persistence of intermediate files in those processes in Explorer even after the process deleted them. I added an explorer window refresh routine (at the ...
by PB2004
Fri Mar 24, 2017 6:09 pm
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Re: Controls "Blanking Out" or Disappearing

Fig, RASHAD I will try these tonight after work (in the interests of Science, ahem).

SRod I think we need to recreate the blanking if anybody is up to it. Having the user wait is not a problem. People are used to that. I could throw up a little "Processing..." window if I had to. They are not used ...
by PB2004
Fri Mar 24, 2017 4:13 pm
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Re: Controls "Blanking Out" or Disappearing

Wow. If I were a troll I could not be more pleased with the attention this is getting from our esteemed forum heavyweights and Bullfrogs!

A few thoughts. Infratec and NetMaestro schooled this tadpole http://www.purebasic.fr/english/viewtopic.php?f=13&t=65424 right after I emerged from my egg sac. I ...
by PB2004
Fri Mar 24, 2017 4:08 am
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Re: Controls "Blanking Out" or Disappearing

Thanks for the suggestions. Using BindEventGadget() did not change anything, though it was a good refresher for me. I looked again. There is some light controls loading in this procedure. So I commented out any line that affected the state of a control but still get the blanking. ~40 visible ...
by PB2004
Thu Mar 23, 2017 7:00 pm
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Re: Controls "Blanking Out" or Disappearing

I use a single loop of this form:

Repeat

event = WaitWindowEvent()

Select event

Case #PB_Event_CloseWindow
Select EventWindow()
Case #Window_mainForm
quitmainForm=1
EndSelect

Case #PB_Event_Gadget
Select EventGadget()
Case #do_btn
Select EventType()
Case #PB_EventType_LeftClick ...
by PB2004
Thu Mar 23, 2017 3:22 pm
Forum: Coding Questions
Topic: Controls "Blanking Out" [False Alarm by Noob]
Replies: 20
Views: 5304

Controls "Blanking Out" [False Alarm by Noob]

My 20,000-line program has a tabbed interface. On the first tab, a selected file is processed when a button is hit. A lot of processing then happens - many structures created, populated and sorted, files read and written etc. When this processing starts, all the buttons on this tab disappear and the ...
by PB2004
Tue Mar 21, 2017 1:17 am
Forum: Coding Questions
Topic: Mac OS Equivalence for RunProgram("Notepad.exe .....
Replies: 8
Views: 3745

Re: Mac OS Equivalence for RunProgram("Notepad.exe .....

That did the trick. In retrospect, Said was right about the Chr(34). You guys are awesome!

So for any noobs that come along, my working variant is:

RunProgram("open", Chr(34) + GetCurrentDirectory() + "my file.txt" + Chr(34),"")

The noob is curious though - this "open" syntax does not seem to ...
by PB2004
Mon Mar 20, 2017 9:09 pm
Forum: Coding Questions
Topic: Mac OS Equivalence for RunProgram("Notepad.exe .....
Replies: 8
Views: 3745

Re: Mac OS Equivalence for RunProgram("Notepad.exe .....

Thanks said but changing the directory seems needless and does not work.

I've come close with RunProgram("open",GetCurrentDirectory() + filename$,"") PROVIDED filename$ has no spaces in the name.

Thought I saw some kind of escaping about 200 screens back. Any suggestions would be appreciated.

The ...
by PB2004
Mon Mar 20, 2017 8:10 pm
Forum: Coding Questions
Topic: Mac OS Equivalence for RunProgram("Notepad.exe .....
Replies: 8
Views: 3745

Re: Mac OS Equivalence for RunProgram("Notepad.exe .....

I guess the "Simple PDF Viewer" topic begs to differ.
by PB2004
Mon Mar 20, 2017 7:22 pm
Forum: Coding Questions
Topic: Mac OS Equivalence for RunProgram("Notepad.exe .....
Replies: 8
Views: 3745

Re: Mac OS Equivalence for RunProgram("Notepad.exe .....

While we are at it, I need to do the same thing with a .pdf file. Both .txt and .pdfs preview easily in Finder. Hopefully this is also a runprogram solution?
by PB2004
Mon Mar 20, 2017 6:39 pm
Forum: Coding Questions
Topic: Mac OS Equivalence for RunProgram("Notepad.exe .....
Replies: 8
Views: 3745

Mac OS Equivalence for RunProgram("Notepad.exe .....

Brand new to Mac OS, and trying to port an existing PB program to it. Having syntactical trouble getting TextEdit.app to just open my pre-generated text file and sit there so the user can look at it and maybe close it it he wants to and continue on with the PB app.

In my PC version the code ...
by PB2004
Sat Mar 18, 2017 2:39 pm
Forum: Coding Questions
Topic: How to Get the Volume ID of a Hard Drive - Mac OSX
Replies: 2
Views: 2043

Re: How to Get the Volume ID of a Hard Drive - Mac OSX

FANTASTIC! Thank you so much.
by PB2004
Fri Mar 17, 2017 10:52 pm
Forum: Coding Questions
Topic: How to Get the Volume ID of a Hard Drive - Mac OSX
Replies: 2
Views: 2043

How to Get the Volume ID of a Hard Drive - Mac OSX

A few months ago I received some great help from Keya and TS-soft on getting the volume ID of a hard drive under Windows (see http://www.purebasic.fr/english/viewtopic.php?f=13&t=66647 ).

I am now trying to port my PB app to Mac but the windows-specific code of course bombs. I am brand spanking-new ...
by PB2004
Thu Dec 01, 2016 5:35 pm
Forum: Coding Questions
Topic: Embedded text file as a "Resource"
Replies: 3
Views: 1736

Re: Embedded text file as a "Resource"

Thanks Demivec. In spite of my readings, I'm easily confused on file formats but if I open in Notepad and do a Save As, "ANSI" is highlighted and the other encodings listed are Unicode, Unicode Big Endian, and UTF-8. If I open in Notepad++, UTF8 encoding is selected and there is no "convert to UTF ...
by PB2004
Thu Dec 01, 2016 3:14 am
Forum: Coding Questions
Topic: Embedded text file as a "Resource"
Replies: 3
Views: 1736

Embedded text file as a "Resource"

I'm a noob from a coddled DBPro background who would like to know if i can embed a simple text file in my PB executable as readable data instead of making 30,000 data statements or going to compiler resourcing (yet). This would be a large text file with chr(13) chr(10) lines of varying length that ...