Search found 67 matches

by jonljacobi
Fri Mar 21, 2014 7:24 pm
Forum: General Discussion
Topic: How would you? Paned interface and objects
Replies: 0
Views: 1469

How would you? Paned interface and objects

I'm prototyping the interface and workflow for a paned application. I tried using the Canvas functions, but the inability to set the background color caused redraw ugliness so I opted for drawing directly on the Window surface. Currently, I'm using basic drawing of shapes and text plus a large array ...
by jonljacobi
Thu May 31, 2007 9:03 pm
Forum: Coding Questions
Topic: Anyone tried adding functionality to the Windows Shell?
Replies: 1
Views: 1090

Anyone tried adding functionality to the Windows Shell?

I basically want to add a "Paste only changed or new files" command, sort of one half of an ad hoc sync operation. The copy part's nothing, grabbing the selected file and directory objects and adding the command to the Windows context menu is what I need to know about.

I've read something about ...
by jonljacobi
Tue Nov 07, 2006 5:22 pm
Forum: Windows
Topic: Hide/remove MDI child window captions/system menu/icon?
Replies: 0
Views: 1574

Hide/remove MDI child window captions/system menu/icon?

I basically want to use MDI, but be able to reduce the space requirements by freezing windows in place with a minimal dialog style frame. Is this possible, or should I just give up and destroy/recreate the windows each way?

You can see an example of what I mean if you go to www.takenotesoftware.com ...
by jonljacobi
Tue Oct 10, 2006 10:12 pm
Forum: General Discussion
Topic: Backup file option?
Replies: 5
Views: 1184

Backup file option?

Is there an option to back up saved files, i.e., rename the old file code.pb to code.pbk or some such? I just lost a fair amount of work when the hard drive crapped out just as PC was saving the source code. Not tantrum amounts of work, but stuff I'd rather have back.

I can't seem to find anything ...
by jonljacobi
Tue Oct 03, 2006 8:48 pm
Forum: Coding Questions
Topic: Opening URL with Browser from within a dialog
Replies: 2
Views: 876

Thanks!!!

Cheers, Jon
by jonljacobi
Tue Oct 03, 2006 8:10 pm
Forum: Coding Questions
Topic: Opening URL with Browser from within a dialog
Replies: 2
Views: 876

Opening URL with Browser from within a dialog

I'd like to send users to a web site using a URL in and About dialog using the Windows default browser. I've seen it before. Anyone know how to do it?

Put another way, how do I invoke the default external browser and direct it to a Web page?

Cheers, Jon
by jonljacobi
Thu Sep 21, 2006 10:30 pm
Forum: Coding Questions
Topic: WriteData doesn't advance file pointer second time?
Replies: 6
Views: 1330

Hmmm, I was multipying the the byte count by 4 twice which made it write four times as much memory as it should have.

Cutting that back to the single multiplication, the routine now works.

Who knows what I was stepping on?

Cheers, Jon

sigh..
by jonljacobi
Thu Sep 21, 2006 10:06 pm
Forum: Coding Questions
Topic: WriteData doesn't advance file pointer second time?
Replies: 6
Views: 1330

Your example works, but I must be missing something because mine does not. Here's the actual code. Forgive the sloppiness as I'm porting it and hacking it up trying different stuff.


BytesToWrite = ArraySize(@AnswerCorrect()) * 4

If Logic = #FILE_SAVE
BackupFile(Globe\ScorePath, "scb")

If ...
by jonljacobi
Thu Sep 21, 2006 9:55 pm
Forum: Coding Questions
Topic: WriteData doesn't advance file pointer second time?
Replies: 6
Views: 1330

In the actual program, I write a string and Loc(1) comes back with 9. Then I write the 40608 bytes and the Loc(1) comes back with 40617. Then I write another 40608 bytes and Loc(1) comes back again with 40617.

I'm sorry, but I'm completely unable to fathom a reason for this.

Cheers, Jon
by jonljacobi
Thu Sep 21, 2006 9:40 pm
Forum: Coding Questions
Topic: WriteData doesn't advance file pointer second time?
Replies: 6
Views: 1330

Those are the addresses of arrays.

Cheers, Jon
by jonljacobi
Thu Sep 21, 2006 9:27 pm
Forum: Coding Questions
Topic: WriteData doesn't advance file pointer second time?
Replies: 6
Views: 1330

WriteData doesn't advance file pointer second time?

Code: Select all


WriteData(1, @AnswerCorrect(0, 0, 0, 0), BytesToWrite)
Debug Loc(1)
WriteData(1, @AnswerIncorrect(0, 0, 0, 0), BytesToWrite)
Debug Loc(1)

BytesToWrite = 40608

The first Debug reads 40608
The second debug reads 40608
Total file size is 40608

What am I missing?

Cheers, Jon :?:
by jonljacobi
Wed Sep 20, 2006 11:04 pm
Forum: Coding Questions
Topic: Fixed Strings Limit ?
Replies: 11
Views: 2542

No idea, but perhaps it's for the same reason that my program crashes with and invalid memory access while displaying status bar text using different strings when the following line is compiled in a totally different routine and location...

Globe\MessageBoxText = "File is not a Take Note 22 ...
by jonljacobi
Sat Jul 15, 2006 2:21 am
Forum: Coding Questions
Topic: Swap structure addresses?
Replies: 13
Views: 2228

Well, I must've been doing something wrong, because swapping the addresses of the structures now works like a charm. I'm being careful to make sure everything is swapped back before I DIM again, but it doesn't seem as if I have to. Had to go to this method because I was swapping a lot of variables a ...
by jonljacobi
Thu Jul 13, 2006 6:35 pm
Forum: Feature Requests and Wishlists
Topic: Aphabetical listing for watch list procedures
Replies: 0
Views: 818

Aphabetical listing for watch list procedures

I have about 250 to 300 procedures in my current project. Unfortunately, it's an port and I'm changing a lot of procedure names. It can be maddening to sift through all of them to find the one I want in the watch list procedure drop down.

There's an alpha sort option for the procedure window, it'd ...
by jonljacobi
Fri Jun 30, 2006 8:44 pm
Forum: Coding Questions
Topic: Swap structure addresses?
Replies: 13
Views: 2228


Structure Test
a.l
b.l
c.l
d.s
EndStructure

Global Dim Testa.Test(10)
Global Dim Testb.Test(10)

Testa(1)\a = 10
Testa(1)\d = "Varmint"
CopyMemory(@Testa(1), @Testb(1), SizeOf(Test))
Debug Testb(1)\a
Debug Testb(1)\d

Global Dim Testa.Test(10)
Global Dim Testb.Test(10)



Well, this doesn't ...