Search found 142 matches

by takis76
Sun Dec 30, 2012 1:08 am
Forum: Game Programming
Topic: 2d Game lib
Replies: 6
Views: 5819

Re: 2d Game lib

I saw the video too, and my jaw dropped. :shock:

How did you created the GUI? Which library did you use for GUI or you created from scratch. Are you selling the GUI library? I am very interesting.
by takis76
Wed Oct 10, 2012 10:57 pm
Forum: Coding Questions
Topic: About changing the icon of executable generated file.
Replies: 11
Views: 2857

Re: About changing the icon of executable generated file.

There are some icon changer programs which do this, but sometimes icon changers will mess up all your applications icons.

I think, when you compile your program, PureBasic changes the main icon of your application. I don't thing there is a problem about the .exe file icon.

I had posted this and ...
by takis76
Wed Oct 10, 2012 9:12 am
Forum: Coding Questions
Topic: About changing the icon of executable generated file.
Replies: 11
Views: 2857

Re: About changing the icon of executable generated file.

Yes the fullscreen window don't have any icon.
If the game is in window it will have icon.

But yet changing the application .exe file icon.

I will test this, thank you very very much.
by takis76
Mon Jun 25, 2012 12:21 am
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

I have uploaded what I have created so far , as I saw , and I have already download all example from the first day I used this ProGui library and I am reading and the help manual , but there are a lots of things that I don't understand even with the help , because there are a lots of fundumental ...
by takis76
Sun Jun 24, 2012 11:09 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

I have uploaded what I have created so far.

https://www.box.com/s/1ef699486154dd82ad68

I found some way to capture the buttons , menus and toolbox events.


Now I am looking how to take the state of the toolbar buttons.

I tried GetMenuExItemState(#TOOLBAR_0, #Wall_Tool) and doesn't seems to work ...
by takis76
Sun Jun 24, 2012 8:16 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

If you are speaking about the Buttons not toolbars and menus , so far I don't found how to capture the button events.
And now I would ask about the button events , the menu events are ok.

This kind of code is not worked as worked with menus


Enumeration

#Null_Object
;Button Variables
#Test ...
by takis76
Sun Jun 24, 2012 8:03 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

if you want to see the results of the debug window always just put the debug code in the main loop just under the
MenuItem = EventMenu()

You will see the debug window and the results always , in fact you will have a flood of events in the debug window.



debug MenuItem ;<----- Put the debug ...
by takis76
Sun Jun 24, 2012 7:00 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

Nice I created one enumeration for all menu and toolbar kind gadgets with names

Like this:


Enumeration

#Null_Object

#New_Adventure_Menu
#Load_Adventure_Menu
#Save_Adventure_Menu
#Adventure_Properties_Menu
#Quit_Editor_Menu

#Wall_Tool
#Door_Tool
#Wall_Decoration_Tool
#Fake_Wall ...
by takis76
Sun Jun 24, 2012 4:36 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

If I will extend the experiment I will try this code:


If EventWindow()=main_window
If EventGadget()=program_menu
Debug EventGadget()
End
EndIf
EndIf


Suppose the EventGadget returns the ID of the gadget in my case is my program_menu the menu adventure.
So if just select the adventure ...
by takis76
Sun Jun 24, 2012 4:27 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Re: Understanding how the events works

New discovery:

There are 3 event emitters

EventGadget()
EventMenu()
EventWindow()

EventGadgets returns numbers of what gadget I have action to.
EventMenu returns numbers of what items on menus I have action to.
And EventWindow returns the window number which the event occurs.

The experiment ...
by takis76
Sun Jun 24, 2012 4:09 pm
Forum: Coding Questions
Topic: Toolbar problem - Giving a try to window commands AGAIN
Replies: 17
Views: 3422

Re: Toolbar problem - Giving a try to window commands AGAIN

I opened one new thread about the events here:

http://www.purebasic.fr/english/viewtopic.php?f=13&t=50339

The examples are very huge and complex to understand them and the documentation is not helpful at all.
If the community wasn't exists and you were total newbie , you can't do nothing.

This ...
by takis76
Sun Jun 24, 2012 3:54 pm
Forum: Coding Questions
Topic: Understanding how the events works
Replies: 16
Views: 2723

Understanding how the events works

I opened one new thread about how the events of ProGUI or generic PureBasic Gadgets works.

I have created one simple menu and one simple toolbar.

How to capture the events from menu and the toolbar?

About events the only thing I know is:


Repeat
Event = WaitWindowEvent()
If Event = #PB_Event ...
by takis76
Sun Jun 24, 2012 1:29 pm
Forum: Coding Questions
Topic: Toolbar problem - Giving a try to window commands AGAIN
Replies: 17
Views: 3422

Re: Toolbar problem - Giving a try to window commands AGAIN

Like some Visual Basic forms you load a lots of gadgets and you see them slowly appear on the screen. Yes I had always this problem when I was programmed with M$ Visual Basic 6 in the past , when my program had a lots of gadgets , I saw them appear one by one and the effect wasn't so nice , complete ...
by takis76
Sun Jun 24, 2012 12:10 pm
Forum: Coding Questions
Topic: Toolbar problem - Giving a try to window commands AGAIN
Replies: 17
Views: 3422

Re: Toolbar problem - Giving a try to window commands AGAIN

The problem was fixed using Enumerations for each gadget , each gadget is unique and the enumeration increase the order
of the list of variables inside the enumeration nest by one.
Is similar to say


#MENU_0=0
#REBAR_0=1
#TOOLBAR_0=2


As I understood , if you have 0 in all gadget creation ...
by takis76
Sun Jun 24, 2012 11:01 am
Forum: Coding Questions
Topic: Toolbar problem - Giving a try to window commands AGAIN
Replies: 17
Views: 3422

Re: Toolbar problem - Giving a try to window commands AGAIN

Why are you complexing things up again?

If I will use a structure for images the menu with toolbar will not overlap?


As I understand all the game is on the CreateRebar function , if I copy and paste your programm is pointless because I can't understand what all means above.

Why are you create ...