A couple command ideas...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by JetFireDX.

Some things I would like to see in PB so I don't have to muck with the Win32 API...
1. a GetDesktopID() or DesktopOutput() command to draw directly to, or put gadgets and such directly on the desktop.
2. a ability to direct sprites to any output, such as a window.
3. a WinID=GetSystemWindowID("window title") type command to grab control and input from other programs windows.
4. commands to load images into windows.
5. better support for WindowsXP window effect features, translucentcy settings and changing the alpha-channel map used in transparent effects. Skins or OK, but I don't use them. Transparent effects are much more usefull.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Some things I would like to see in PB so I don't have to muck with the Win32 API...

Why don't you like the API? If it's because you intend to port to Amiga/Linux
then your reasons are justified, but if authoring for Windows alone then there's
nothing wrong with using it, especially when a lot of API commands are very easy,
as I've shown in two of your questions here...

> 1. a GetDesktopID() or DesktopOutput() command to draw directly to, or put
> gadgets and such directly on the desktop.

I don't think it's possible to put gadgets on the Desktop -- it's not a "window"
in the way that you're referring to. However, you can get its ID with this API
command:

Code: Select all

DesktopID=GetDesktopWindow_()
> 3. a WinID=GetSystemWindowID("window title") type command to grab control and
> input from other programs windows.

Code: Select all

WinID=FindWindow_(0,"window title")
With the API, you don't have to wait for Fred to add commands to PureBasic, but
as mentioned, if authoring on Amiga/Linux then you can't use the API...

PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

@PB:
> I don't think it's possible to put gadgets on the Desktop

Code: Select all

mygadget = ButtonGadget(...
SetParent_(mygadget,GetDesktopWindow_()) ; or 0 for Desktop
cya,
...Danilo

(registered PureBasic user)
Post Reply