[Coming soon] GLBasic WinApi menu... Wow... :)

Previous topic - Next topic

Hemlos

headers.rar is unpacked in E:\Program Files\GLBasic\Compiler

What else needs to be done?
Bing ChatGpt is pretty smart :O

Hemlos

K i had to redownload the headers...first round didnt work for some reason.



Schranz0r, here is a help messgae popup box...the popupflag=32 is the help icon type.

If you roll the flag number and post it to the screen, you can see all the different types of popup menus.
The flags can make also the kind that says "ignore" "continue" etc with the red x icon blah blah..

Code (glbasic) Select

popupflag=32
IMPORT "C" int __stdcall MessageBoxA(int hwnd, const char* text, char* caption, int flags)
MessageBoxA(0, " This is another line.\n this is another line\n ", "Help",popupflag)
Bing ChatGpt is pretty smart :O

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hemlos

Hey i found a bug with this..

In a windowed mode program, the mousestate and systempointer are not aligned.

This is what i have to do to correct the difference:

Code (glbasic) Select
MOUSESTATE MX,MY,MB1,MB2
MY=MY+20


In fullscreen, there is no menu.
Also in fullscreen, the mouse is correct.

Any idea how to fix this?
Bing ChatGpt is pretty smart :O

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hemlos

In fullscreen, no menu, but the mouse is aligned properly.
Bing ChatGpt is pretty smart :O

Hemlos

Its not a big deal, ill just shift everything down.
Would be nice to use this in fullscreen mode though.
Bing ChatGpt is pretty smart :O

Schranz0r

dosent work on fullscreen!
Its a Window-Feature ;)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard