Search found 233 matches
- Wed Mar 27, 2024 12:08 am
- Forum: Coding Questions
- Topic: Use one menu for multiple windows
- Replies: 9
- Views: 454
Re: Use one menu for multiple windows
Actually I do need the exact same menu for all screens other than the game screen where the 2 teams are playing against each other. If I have to I'll just copy and paste the same menu code into each window and set the correct window and menu numbers No, you don't need to do that, the procedure way ...
- Tue Mar 26, 2024 2:45 pm
- Forum: Coding Questions
- Topic: Use one menu for multiple windows
- Replies: 9
- Views: 454
Re: Use one menu for multiple windows
Maybe you don't really need the same menue but could instead create several alike menues via a procedure like this: EnableExplicit Enumeration Windows #Win_0 #Win_1 #Win_2 EndEnumeration Enumeration Menues #Menue_Close #Menue_Test EndEnumeration Procedure onCloseWindow() Protected.i winNr = EventWi...
- Sun Mar 24, 2024 5:47 pm
- Forum: Coding Questions
- Topic: Use one menu for multiple windows
- Replies: 9
- Views: 454
Re: Use one menu for multiple windows
You can conduct the tests yourself. Yes, as soon as you posted your example code I started to test things. Currently I have been trying to implement your example into my project and it is failing to show the menu in the second window. Currently I am using PureVision to create the interface of the g...
- Sun Mar 24, 2024 5:18 pm
- Forum: Coding Questions
- Topic: Use one menu for multiple windows
- Replies: 9
- Views: 454
Re: Use one menu for multiple windows
If OpenWindow(0, 200, 200, 200, 100, "Example Menu") If CreateMenu(0, WindowID(0)) MenuTitle("Project") MenuItem(1, "Open" + Chr(9) + "Ctrl+O") MenuItem(2, "Save" + Chr(9) + "Ctrl+S") MenuItem(3, "Save as" + Chr(9) + "Ctrl+A...
- Sun Mar 24, 2024 4:26 pm
- Forum: Coding Questions
- Topic: Use one menu for multiple windows
- Replies: 9
- Views: 454
Use one menu for multiple windows
Hi, Is it possible to use the same menu for multiple windows . I have searched for an answer, but have not found an answer for my specific question, all I have found is stuff about managing multiple windows and nothing about the same menu used across multiple windows. I want to use literally one men...
- Sun Dec 17, 2023 4:10 pm
- Forum: Coding Questions
- Topic: WindowsAPI ListIconGadget
- Replies: 9
- Views: 631
Re: WindowsAPI ListIconGadget
Everything that's possible with PureBasic you can do with API too, but some things are a piece of work, like colouring items. Also, for many simple tasks, like changing the text of a single cell, needs a bit more than just a single line. It's not hard, but you'd have to do a lot of "pre" ...
- Sun Dec 17, 2023 1:57 am
- Forum: Coding Questions
- Topic: WindowsAPI ListIconGadget
- Replies: 9
- Views: 631
Re: WindowsAPI ListIconGadget
What exactly do you need? I have the same project going in both AppGameKit and PureBasic. They both have their advantages and disadvantages toward each other. I find it easier to program in AGK when it pertains to 2D and 3D graphics, but when it comes to things like displaying information on screen...
- Sat Dec 16, 2023 2:32 am
- Forum: Coding Questions
- Topic: WindowsAPI ListIconGadget
- Replies: 9
- Views: 631
Re: WindowsAPI ListIconGadget
(On Windows) the ListIconGadget uses the List View control. You can find its API documentation at https://learn.microsoft.com/en-us/windows/win32/controls/list-view-control-reference While I was looking throught the API index online and couldn't find ListIconGadget any where, I started to think tha...
- Fri Dec 15, 2023 7:44 pm
- Forum: Coding Questions
- Topic: WindowsAPI ListIconGadget
- Replies: 9
- Views: 631
WindowsAPI ListIconGadget
Is there such thing as a WinAPI ListIconGadget command? I have searched the Windows API index online to all end and haven't found it if it does exist.
If it does, maybe I'm not looking in the right place
If it does, maybe I'm not looking in the right place
- Wed Nov 22, 2023 5:35 am
- Forum: Coding Questions
- Topic: Checking if linked list exists
- Replies: 18
- Views: 1342
Re: Checking if linked list exists
Yeah, sure. "English" is declared as "Define", so locally, by default if not declared otherwise. So it's not available in the procedure. But what's the link to finding out whether a linked list exists or not? Do you mean, like a local defined linked list not being available in a...
- Wed Nov 22, 2023 4:22 am
- Forum: Coding Questions
- Topic: Checking if linked list exists
- Replies: 18
- Views: 1342
Re: Checking if linked list exists
I...think I don't understand what you want to achieve. In your example, the list has to exist. SelectElement() creates an error or crashes if it can't be performed, but I would use ListSize() beforehand to prevent that. ListIndex() just tells us where the pointer is set to the list (the active elem...
- Wed Nov 22, 2023 1:09 am
- Forum: Coding Questions
- Topic: Checking if linked list exists
- Replies: 18
- Views: 1342
Re: Checking if linked list exists
It has been awhile for posts in this thread, but I happen to search for a way to detect if a list exists and found this thread. I worked on something for a bit and came up with the following. It doen't detect if it isn't there, but if it is and there is no elements in it, it returns a "-1 "...
- Sun Nov 05, 2023 4:02 am
- Forum: Coding Questions
- Topic: [Solved]Access a linked list from different include file
- Replies: 17
- Views: 1185
Re: [Solved]Access a linked list from different include file
One more question,
If you create the linked list in the main code file shouldn't you be able to add elements from a different file/IncludeFile?
I have been able to add elements from the same file/window I created the linked list in, but not from another file/IncludeFile yet.
If you create the linked list in the main code file shouldn't you be able to add elements from a different file/IncludeFile?
I have been able to add elements from the same file/window I created the linked list in, but not from another file/IncludeFile yet.
- Sun Nov 05, 2023 2:42 am
- Forum: Coding Questions
- Topic: [Solved]Access a linked list from different include file
- Replies: 17
- Views: 1185
Re: Access a linked list from different include file
Ok, I moved the statement below, above the XInclude statements and everything works now
Thank you Paul. and thank you all for your help
Thank you Paul. and thank you all for your help
Code: Select all
Declare LinkedList()
- Sun Nov 05, 2023 12:59 am
- Forum: Coding Questions
- Topic: [Solved]Access a linked list from different include file
- Replies: 17
- Views: 1185
Re: Access a linked list from different include file
Thank you Paul, I'll change that and try itPaul wrote: ↑Sat Nov 04, 2023 4:23 am You need to put declares in the right order in your Main file...
Code: Select all
Declare LinkedList() XIncludeFile "TwoScreenList_Constants.pb" XIncludeFile "TwoScreenList_Windows.pb" XIncludeFile "PlyrAcct.pb"