WinAPI Library (1163 example codes)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: WinAPI Library (1.108)

Post by Lunasole »

Bisonte wrote:@Lunasole: You can choose your language ;)
I meant code: comments, variable names, etc in deutsch. I didn't used UI at all ^^
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

Re: WinAPI Library (1.138)

Post by HanPBF »

This library is really apreciated!
Great You keep it... and up to date!

Thanks a lot!
User avatar
microdevweb
Enthusiast
Enthusiast
Posts: 179
Joined: Fri Jun 13, 2014 9:38 am
Location: Belgique

Re: WinAPI Library (1.138)

Post by microdevweb »

Hello RsBasic,

Thanks for your good work, but i've a question for you. It is possible to change by code the vertical scrollbar of a listicon.

For example, i want add 10 items to the list but i want setting its vertical scrollbar with the max value to 1000 and minimum value to 0. And manage the scrollbar events after of course.

my target is of link a list icon at a database.

But for a faster work of cpu . I don't want display all records.

Thanks for advance.
Use Pb 5.73 lst and Windows 10

my mother-language isn't english, in advance excuse my mistakes.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: WinAPI Library (1.138)

Post by RSBasic »

Hello microdevweb,

you can use the ScrollBarGadget for own manage of scroll value. I hope I understand you correctly.
Image
Image
User avatar
microdevweb
Enthusiast
Enthusiast
Posts: 179
Joined: Fri Jun 13, 2014 9:38 am
Location: Belgique

Re: WinAPI Library (1.138)

Post by microdevweb »

Hello RSBasic,
Thanks for yours answered, I thought a its soluce, but with this i have to manage also the horizontal scrollbar.
Use Pb 5.73 lst and Windows 10

my mother-language isn't english, in advance excuse my mistakes.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: WinAPI Library (1.138)

Post by RSBasic »

WinAPI Library 1.4.7 was released

Changelog:
  • Bugfix: Updater: Updating via https is now supported.
Updating is not possible due to the new version of the updater. Please download the complete version: https://www.rsbasic.de/download/#Programmierung
Image
Image
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: WinAPI Library (1.052)

Post by BarryG »

I love this tool, RSBasic! I just installed it and discovered how to do something that I've needed for years. Thank you.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: WinAPI Library (1.163)

Post by RSBasic »

WinAPI Library 1.4.8 was published (25 new sample code)

Added:


Benutzer: ButtonGadget: ComboBoxGadget: Datum und Uhrzeit: EditorGadget: ExplorerTreeGadget: Konsole: Laufwerke: ProgressBarGadget: Prozesse: ScrollAreaGadget: Starten und Herunterfahren: StatusBar: StringGadget: TreeGadget: WebGadget:
Online: http://www.rsbasic.de/winapi-library
Offline: Update ;)


All texts have been translated by machine.
Image
Image
AZJIO
Addict
Addict
Posts: 1312
Joined: Sun May 14, 2017 1:48 am

Re: WinAPI Library (1.163)

Post by AZJIO »

I made a script to convert this to snippet
Templates.prefs.7z (Russian)
added examples "registry" (RegRead2, RegExistsKey, RegExistsName, RegExists)
TextGadget - all styles
AssocQueryString

Laufwerke:
Find the text #FILE_ATTRIBUTE_NORMAL (example to get the disk number)
"Erkennen, ob externer DatentrДger angeschlossen wurde.pb" - "Determine if an external storage medium has been connected" - Find the text #DBT_DEVICEREMOVECOMPLETE in my archive. Example improved
GetVolumeInformation.pb - example contains many flags
Find the text GetLogicalDrives_
"DatentrДger entfernbar-БberprБfen.pb" - in your example, GetDriveType_ iterates over all the letters of the A-Z drives. You must use GetLogicalDrives_ to get mapped drives.

Prozesse:
"Text unter Maus ermitteln.pb" - returns unreadable characters. Find the text "TextFromWindowPosition" in my archive, where I fixed the code.
Fenstertitel ermitteln.pb

Code: Select all

ProcedureReturn PeekS(*Buffer)
FreeMemory(*Buffer) ; Is this possible after calling ProcedureReturn
ListIconGadget:
GroupView.pb - does not work

Code: Select all

; lvg\pszHeader = @text_uc
lvg\pszHeader = @text
------------------
Make the file names English. At the moment, the program cannot view some files, because the program uses Unicode, and the file names are in ANSI. There are problems with the translation, because some letters in the file names are Russian. In us with such a character code have other letters.
You can make a list for yourself to rename files and at any time convert names for yourself. That is, you will have a truly multilingual interface.

------------------
Check out these examples: WM_HSCROLL, WM_NCHITTEST, WM_NOTIFY, WM_SETCURSOR

Gadgets:
Gadgetnummer ermitteln.pb - Find in my archive #WM_SETCURSOR. This reduces the number of lines in the debugger.
Last edited by AZJIO on Thu Jun 04, 2020 7:22 pm, edited 9 times in total.
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: WinAPI Library (1.163)

Post by gurj »

thanks RSBasic!
Your Menu and Popupmenu's folders and file names are bad. As long as a long time.

In addition, the program conversion code documentation name should be your local ANSI -> Unicode -> user local ANSI is right?
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: WinAPI Library (1.163)

Post by gurj »

my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: WinAPI Library (1.163)

Post by gurj »

and, should chang 'Frame3DGadget' to 'FrameGadget'
my pb for chinese:
http://ataorj.ys168.com
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: WinAPI Library (1.163)

Post by BarryG »

Just got this today from Windows Defender -> https://i.imgur.com/vXzAPqY.png

A false-positive most likely, so maybe you'll need to submit it to the anti-virus companies for white-listing.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: WinAPI Library (1.163)

Post by Josh »

Be careful, this site has been victim of an attack before, which resulted in a new operating system for me.
sorry for my bad english
Post Reply