Search found 19 matches

by toledo
Tue Mar 23, 2010 10:11 pm
Forum: Coding Questions
Topic: Copying Images
Replies: 13
Views: 2494

Re: Copying Images

Thankyou very much everybody, especially netmaestro. With your help, I was able to get the screen to redraw. Works like magic.

There are still some problems that I'll have try to tackle later. Like the buttons and other gadgets don't redraw after the window is covered and then uncovered. And all of ...
by toledo
Tue Mar 23, 2010 12:07 am
Forum: Coding Questions
Topic: Copying Images
Replies: 13
Views: 2494

Re: Copying Images

So ImageID should be changed to #Back (from the code example I posted)?
And that's the only change I need to make?
by toledo
Mon Mar 22, 2010 10:02 pm
Forum: Coding Questions
Topic: Copying Images
Replies: 13
Views: 2494

Re: Copying Images

Code: Select all

  hBrush = CreatePatternBrush_(ImageID(<>)
  SetClassLongPtr_(WindowID(<>), #GCL_HBRBACKGROUND, hBrush)
  InvalidateRect_(WindowID(<>), 0, 1)
Where do I put this code? And do I have to change ImageID to #Back or anything like that?
by toledo
Mon Mar 22, 2010 9:42 am
Forum: Coding Questions
Topic: ButtonGadget's Grey Frame Color
Replies: 1
Views: 658

ButtonGadget's Grey Frame Color

Has anybody ever noticed that if you use a non-grey background image, any buttons you place on top of that will have a grey frame around it? Is there any way to change that color or make it transparent so the button doesn't look so square and rough?
by toledo
Mon Mar 22, 2010 9:36 am
Forum: Coding Questions
Topic: Copying Images
Replies: 13
Views: 2494

Re: Copying Images

use an ImageGadget and deactivate it, then the ImageGadget is a background. If I do that, will my controls be hidden everytime part of the window is covered and then uncovered?

Also, is it better to use a deactivated imagegadget for a background than it is to use the window background? I'll do it ...
by toledo
Sat Mar 20, 2010 11:48 pm
Forum: Coding Questions
Topic: Copying Images
Replies: 13
Views: 2494

Copying Images

I have been reading through this forum for the last month and also the help topics in the program and I am so stuck. I can't even get started.
I want to:
- write a program that lets you include a bitmap pic in the compiled program
- copy that pic to a hidden buffer so that changes can be made to ...
by toledo
Thu Jan 21, 2010 6:22 pm
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

This is insane. I think I need to stay away from this forum.
by toledo
Thu Jan 21, 2010 10:24 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

ehem... excuse me ..(please don't shoot me.. if i'm way off the mark but) don't VB programs require VBruntime dll's .. isn't that a rather major difference between writting for ANY opf the VB's through out the years.. eg:VB1 run time another for vb2 and another for vb3 etc.. etc...

C++ and ...
by toledo
Thu Jan 21, 2010 9:36 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

A compiler don't have to produce machine code. The PB compiler generats assembly code. Very close to machine code but it's not exaclty machine code. Java compiles to Java bytecode. Even translating a .ini like textfile to a binary format is called compiling. ^^

If you have VB6 installed, just take ...
by toledo
Thu Jan 21, 2010 12:18 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

Sorry about being wrong. It turns VB6 has two different compilers, one that compiles to p-code (and has nothing in common in MS VC++) and one that compiles to native code (which I didn't know about). I bloopered twice in this thread, that's my fault, and I'm sorry.
You say you were wrong and then ...
by toledo
Wed Jan 20, 2010 1:24 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

I switched when I found out that MS VB6 and MS VC++ uses the exact same compiler. No, this couldn't be wronger. You should check your facts before you correct somebody. I got mine from Microsoft. Where did you get yours?
Also your post about reverse engineering is misinformed (as pointed out by ...
by toledo
Tue Jan 19, 2010 2:36 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

Is it worth the effort? I don't see any sense in doing this.
Imho some people are afraid to admit they are using basic, c++ is so much cooler and looks more professional, especially if the exe is big with a lot of DLLs and .NET dependency.
That is exactly it! I don't want people to know I am ...
by toledo
Mon Jan 18, 2010 4:17 am
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

UserOfPure wrote:Just do a search/replace of all "pb_" bytes in the executable then. The exe will still run (I just tried) and there won't be any obvious references to PureBasic.
Thankyou very much. That exactly what I'm going to do. Does that also work with words like "Gadget"?
by toledo
Sat Jan 16, 2010 6:55 pm
Forum: Coding Questions
Topic: Does PureBasic insert an identifier in your executables?
Replies: 68
Views: 11757

Re: Does PureBasic insert an identifier in your executables?

The reason I asked if PureBasic inserts an identifier is because people who reverse engineer software first find out what compiler was used to build the program. Then they write functions to extrapolate which source code would produce the compiled code. Without identifiers, it's much harder to ...
by toledo
Sat Jan 16, 2010 3:28 am
Forum: Coding Questions
Topic: Should I switch to PureBasic?
Replies: 20
Views: 5637

Re: Should I switch to PureBasic?

Kale's free book is great. I read it and then I bookmarked it. It's a well written primer.
you can put an inactive ImageGadget that covers [the windows background] Do I have to make the ImageGadget inactive? I would like to click on the window and read the X and Y location of each click. Is that ...