2000 look in apps

Just starting out? Need help? Post your questions and find answers here.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

2000 look in apps

Post by thefool »

Hi!

I wondered how to make a win2000 look.
Like this [its a screengrap of the memory map from CT, a memory search app]:

Image

These buttons arent just flat. Is there any way to make them with purebasic?
Also the list is in 2000style, and the scrollbar.

Thanks very much for reading :)


[thx 2 purestorage for hosting the image!]
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: 2000 look in apps

Post by PB »

What do you mean? All my PureBasic apps look like that, even when I had
Windows 98... what do your apps normally look like? Post a screenshot.

UPDATE: Do you use Windows XP? If so, turn off "Enable XP skin support" in
the Compiler Options for your app, and remove any ".manifest" file in the app's
folder. That will give XP the old-style look, if that's what you mean?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Post by Wolf »

Hi thefool.

I have your question too. i like this buttons but don't know how create these. i'm sure other PB users know this.

I create some topic like this some time ago but hav't any reply :cry:

viewtopic.php?p=75342#75342

Maybe my question is not clear or can't anybody understand what's my mean.

@PB

See my topic at top, maybe you understand what's we mean :wink:


@All
We waiting for any help :D

Thanks.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

@pb: wolf is right, its NOT the normal windows look!
Look at the buttons. Much lighter, not so deep. The scrollbar is flatterned out, and the list is also more light!
This is a normal window without XP style:
Image

@Wolf: Yeah i know what you mean. I also saw your post but sadly no one
answered. Its not the same styles, but in generel, how do you get these styles? The flat button that will raise, the nice light buttons etc?

@all: Now i hope you see what we mean!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> @pb: wolf is right, its NOT the normal windows look!

Hmm, looks normal to me... it's hard to tell from your small screenshot at top.
Can you post it again, this time without resizing it smaller? Or tell me where
to download the CT app so I can run it for myself? Thanks.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Sure!

http://www.anorak.nm.ru/

Choose Cheat Trickle under the "Releases" part.
Its a small memory searcher for cheating in games :P
[to find the memory addresses to change..]

There you can go download it.
I have seen more apps with this style, also with the Flat Button style.
[flat button: see the topic that Wolf posted a link to]
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> http://www.anorak.nm.ru/
> Choose Cheat Trickle under the "Releases" part.

Thanks, I see what you mean now... but that's not what a clean install of
Windows 2000 looks like... at least not in Australian releases of it. Maybe
it's different in your part of the world?

As for how it's done, why not ask the author himself? His contact page says
you can ask programming questions, so just go ahead and e-mail him:

http://www.anorak.nm.ru/contact_e.htm

If you don't, I will. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Ill try to ask him. Ill post here when i get a reply if i ever get it.
I know its not what win2k looks like, it was just the word the author used. But its more like an ms-office look.

But if anyone knows anything about how to do it, please post :D


edit: Mail is sent. Now lets see if he answers.. But i dont think the website has
been updated since 2003
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Looks like a visual basic gadget style add-on i once saw....

I think it was called Flat something.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

The app is coded in 100% assembler. Also the other i saw was in assembler.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Still no one knows?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

I've been searching MSDN for that, and i think it's a thing called Flat Property, that can be applied to form gadgets. It's been available since IE 4.0.

But i haven't seen a especific example on how to use it, and i suspect it's oo too, cause it's found on a OCX ...
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Well yeah i found a FlytStyle thingie.
But i cant figure out how to use it :S
Anyone here in this forum that can?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Well yeah i found a FlytStyle thingie.
> But i cant figure out how to use it :S
> Anyone here in this forum that can?

Not if you don't tell us where you found it! ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Same place as num3, the win32api :P
Btw i posted this question on Flatassembler forum and one came up with a pretty nice idea..

http://board.flatassembler.net/viewtopic.php?t=2759

Look there. He has an example too with source[an compiled EXE follows..]
So now im finding away to turn OFF flat button proberty for an button..
I know a procedure to turn it ON

Code: Select all

Procedure SetFlat(gadgetnr)  SetWindowLong_(GadgetID(gadgetnr),#gwl_style,GetWindowLong_(GadgetID(gadgetnr),#gwl_style) |$8000  )
EndProcedure
$8000 is the BS_FLAT value.. How to unflattern the button?
Post Reply