Search found 36 matches

by Dr_Pixel
Thu Aug 26, 2004 1:38 pm
Forum: Coding Questions
Topic: Math Experts Question
Replies: 3
Views: 1369

Math Experts Question

I am trying to convert some files from binary, to plain text.

I have no documentation on the file format of the binary files, but I do have examples to use of both the binary file, and it's text equavalent.

OK, the first filetype went fine - by comparing the two files, I was able to work out the ...
by Dr_Pixel
Tue Aug 17, 2004 12:42 am
Forum: Coding Questions
Topic: Window Resize Values?
Replies: 4
Views: 1390

The flickering is caused because windows repeatedly sends the "resized" message the whole time the window is being resized.

What I do is use the callback to set a shared "flag" variable to show that a window was resized, and which window it was.

Then I check for this flag at the top of my main ...
by Dr_Pixel
Wed Aug 04, 2004 12:55 am
Forum: Coding Questions
Topic: OK/Cancel in user's language
Replies: 3
Views: 1602

Yes, good point -

If they can read the message itself in the language your program is written in, they can read the buttons too.

And if they can't read the message, how would they know if they want to cancel or ok?
by Dr_Pixel
Wed Aug 04, 2004 12:45 am
Forum: Coding Questions
Topic: Constant(s) Values
Replies: 5
Views: 1642

I find the API veiwer quite handy for that:

http://www.activevb.de/rubriken/apiview ... ereng.html
by Dr_Pixel
Mon Jul 19, 2004 1:34 pm
Forum: Announcement
Topic: jaPBe beta 2
Replies: 27
Views: 7824

I tried the newest version, but it has a bug -

When I compile the exe, my program's icon isn't used.

With the earlier version (1.4.1.1) it works ok

I have the latest PB, and the JAPBE version 1.4.1.1 seems to work fine with it.
by Dr_Pixel
Sat Jul 17, 2004 8:51 pm
Forum: Coding Questions
Topic: VB 'Simple' Combobox?
Replies: 16
Views: 4291

I'm not picturing what you mean - maybe a ListView gadget?

If you look in the PB manual, it shows previews of what the different gadgets look like
by Dr_Pixel
Sat Jul 17, 2004 8:42 pm
Forum: Coding Questions
Topic: AllocateMemory: what changed?
Replies: 3
Views: 1517

And after the allocating, it is a good idea to check the pointer you specified, to be sure it is not 0

If the pointer is 0, the memory could not be allocated, and attempting to use it or free it will cause a crash.

So:



*Adr=AllocateMemory(Length)

If *Adr

;use the memory here

FreeMemory ...
by Dr_Pixel
Sat Jul 17, 2004 12:31 am
Forum: Coding Questions
Topic: Help with WindowCallback
Replies: 4
Views: 1813

Here is a very simple example - I use the callback only to prevent my window from being resized too small.

All other events are processed in the main loop, in the standard PB way.


Global MinWinX,MinWinY

MinWinX=300 ;minimum desired width
MinWinY=300 ;minimum desired height

Procedure ...
by Dr_Pixel
Sat Jul 17, 2004 12:09 am
Forum: Coding Questions
Topic: window minimizes after inputrequester
Replies: 6
Views: 1696

I've had somewhat similar problems a couple of times, but in my case it has been the PathRequester appearing in back of my program's window(s)

In these cases, clicking on my program's window would give the "error" sound, and pop the PathRequester to the front where it should have been.

Is this ...
by Dr_Pixel
Fri Jul 02, 2004 12:39 am
Forum: Coding Questions
Topic: Path Requester and Windows 98
Replies: 0
Views: 812

Path Requester and Windows 98

In the PB manual, the WindowsXP path requester is show - it has a button on it so the user could create a new folder.

On my Windows98SE, the Path Requester does not have this button - although there is an empty space where it could be.

Is it possible somehow to get this button on the Windows98 ...
by Dr_Pixel
Mon Jun 28, 2004 9:25 am
Forum: Coding Questions
Topic: Adding file version info to PB DLLs and EXEs. How?
Replies: 7
Views: 1944

Great! Thanks
by Dr_Pixel
Mon Jun 28, 2004 3:29 am
Forum: Coding Questions
Topic: Adding file version info to PB DLLs and EXEs. How?
Replies: 7
Views: 1944

How would you do that with Japbe ?

I have it, and it is a very nice editor.

But, the help doesn't work, so i don't know what a lot of the options do....
by Dr_Pixel
Mon Jun 28, 2004 3:17 am
Forum: Coding Questions
Topic: Problem with Second Toolbar
Replies: 2
Views: 970

Problem with Second Toolbar

My program has a main window, plus several child windows

The main window has a toolbar created with the standard PB toolbar commands - it works with no problems

But, I tried adding a second toolbar, to one of the child windows.
It seems to work properly too, except for this:

If I try to use a ...
by Dr_Pixel
Thu Jun 17, 2004 7:54 am
Forum: Coding Questions
Topic: ListView flags
Replies: 4
Views: 1606

Thanks
by Dr_Pixel
Thu Jun 17, 2004 1:35 am
Forum: Coding Questions
Topic: ListView flags
Replies: 4
Views: 1606

I had tried that, but ran into two problems -

First, the "Listview" in the Windows API guide seems to be what we call the ListIcon, and I can't find anything that seems to be similar to our ListView

So, I decided I would try the API flags anyway, to see what would happen....

But for some reason ...