Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 3,790 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Menues with Windows API #385553
10/19/11 23:02
10/19/11 23:02
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Example taken from the manual:

Code:
long hMenu = CreateMenu();
	long hSubMenu = CreateMenu();
	InsertMenu(hSubMenu,1,MF_BYPOSITION|MF_STRING,1,"Function1");
	InsertMenu(hSubMenu,2,MF_BYPOSITION|MF_STRING,2,"Function2");
	InsertMenu(hMenu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"Submenu");



It completely wrecks the window on resolution change.
Is there just some action required on resolution change or what might be causing this?

Re: Menues with Windows API [Re: FBL] #385568
10/20/11 06:15
10/20/11 06:15
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
Try removing the menu before changing the resolution, and setting it again afterwards.

Although the Windows API theoretically supports DirectX windows, there are subtle incompatibilities. Experimenting is often required.



Re: Menues with Windows API [Re: jcl] #385573
10/20/11 08:30
10/20/11 08:30
Joined: Oct 2009
Posts: 90
WickWoody Offline
Junior Member
WickWoody  Offline
Junior Member

Joined: Oct 2009
Posts: 90
Or you can don't permission to change resolution. Do you need changing resolution ?

Re: Menues with Windows API [Re: WickWoody] #385594
10/20/11 17:32
10/20/11 17:32
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I need flexible adjustment of the window (minimizing, maximizing, any user desired size, no full screen).

Anyway I maybe will go for a DLL where I build up some skeleton MDI layout with Windows.forms and convince the engine on rendering into the MDI window. As far as I've figured out this should theoretically work.

Just that I'm not too much into Windows.forms... but we need to learn new stuff and building up entire GUIs with API calls is painful at least.

Re: Menues with Windows API [Re: FBL] #385596
10/20/11 17:42
10/20/11 17:42
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
or you could do the other way and use the C# wrapper. Allows you to work in a C# environment which means you wont need to write a dll.


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Menues with Windows API [Re: Rackscha] #385605
10/20/11 20:21
10/20/11 20:21
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I have core libraries in Lite-C and since Lite-C can't compile to DLL it is C++ which must go to DLL to get both combined.


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1