Enhancement of Gadget/Window libs

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Enhancement of Gadget/Window libs

Post by CSAUER »

Here is my actual wishlist for the next version:

- Compiler-Variable: XP-Skin activated
- Flag for coloring background of Panel-Gadgets as well as for coloring tab's background
- Flag for turning off ListView header
- Handling / Command for Z-Order of Gadgets (display z-order as well as catching events of overlaying gadgets)
- Platform independed Drag and Drop functionality (like BlitzMax)
- Gadget-Events "MouseOver", "MouseDownLeft", "MouseDownRight", "MouseWheelUp", "MouseWheelDown", "MouseWheelClick"
- Native autocomplete flag for entering list value into combo gadget
- Editable list icon gadget (with flag for column sorting)
- Native support (without ODBC) for SQLite commands (all platforms), maybe just a flag on "OpenDatabase" command

Hopefully I can see most of the stuff within next versions (on all platforms).
Last edited by CSAUER on Mon Apr 23, 2007 3:47 pm, edited 2 times in total.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: Enhancement of Gadget lib

Post by byo »

CSAUER wrote:- Compiler-Variable: XP-Skin activated
- Flag for coloring background of Panel-Gadgets as well as for coloring tab's background

- Native support (without ODBC) for SQLite commands (all platforms), maybe just a flag on "OpenDatabase" command.
The first two can be done in the current version, right? Or have I misundertood your request?

You can use SQLite3 natively with the PBOSL userlib. I'm making a program that uses it and it works like a charm. ;)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

No, they aren't available currently. He's referring to a constant testable via CompilerIF, #PB_Compiler_Themes or such. For now, you have to test for it thus:

Code: Select all

Procedure ThemesEnabled()
  dlv.DLLVERSIONINFO
  dlv\cbsize=SizeOf(DLLVERSIONINFO) 
  lib=OpenLibrary(#PB_Any,"comctl32.dll") 
  If lib 
    CallFunction(lib,"DllGetVersion",@dlv) 
    DLLVersion = dlv\dwMajorVersion 
    CloseLibrary(lib) 
  EndIf 
  If DLLVersion = 6
    ProcedureReturn 1
  Else
    ProcedureReturn 0
  EndIf
EndProcedure

Debug ThemesEnabled()
which is considerably more effort. I second this, it's a good idea.
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

The Sourcecode by netmaestro is usefull, but a compilerdirective is not
usefull. XP-Style should always enabled, in all windows applications!

Why test on compiletime. Only on runtime makes sense.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You make a good point, but it's main use would be for those creating userlibs, where it isn't known if the coder is going to be enabling themes or not.
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

UserLibs a compiled code, compilerdirectives works only on compiletime of
the lib. Only a runtime-function should work
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

*.pbi :wink:
BERESHEIT
Post Reply