Search found 11 matches

by fabio
Sun Apr 11, 2010 6:58 am
Forum: Windows
Topic: Explorer Combo in Callback Function
Replies: 4
Views: 2076

Re: Explorer Combo in Callback Function

Solved. It works using GetDlgCtrlID_(lParam).
But I still don't understand (like Arctic Fox detected) why LOWORD(wParam) does not return the ID of the combo.
Thank you very much guys for the help provided.

Fabio
by fabio
Sun Apr 11, 2010 4:41 am
Forum: Windows
Topic: Explorer Combo in Callback Function
Replies: 4
Views: 2076

Re: Explorer Combo in Callback Function

I forgot to add SetWindowCallback (...), Arctic Fox, thanks for the correction :).
ts-soft: Your code works, but only when #ExplorerComb_0 is zero. With any other value fails, here is the code again (using #ExplorerComb_0 = 10):



;- Window Constants
;
Enumeration
#Window_0
EndEnumeration ...
by fabio
Sun Apr 11, 2010 12:35 am
Forum: Windows
Topic: Explorer Combo in Callback Function
Replies: 4
Views: 2076

Explorer Combo in Callback Function

Hello, I need some 'winapi' help. How can I get the messages of the Explorer Combo in the Callback Function?
I cannot get any message in the callback...



;- Window Constants
;
Enumeration
#Window_0
EndEnumeration

;- Gadget Constants
;
Enumeration
#ExplorerComb_0
EndEnumeration

Macro LOWORD ...
by fabio
Sat Jan 23, 2010 6:56 pm
Forum: Coding Questions
Topic: WindowID
Replies: 9
Views: 1441

Re: WindowID

Hi, a few days ago I was just trying to imitate the behavior of a modal dialog box.
This was the result:


; DIALOG EMULATION

;- Window Constants
;
Enumeration
#Window_0 = 1
#Window_1
#Window_2
EndEnumeration

;- Gadget Constants
;
Enumeration
#Button_0
#Button_1
#Button_2
#Button_3 ...
by fabio
Sat Jan 23, 2010 10:31 am
Forum: Coding Questions
Topic: WindowID
Replies: 9
Views: 1441

Re: WindowID

I'm not sure what do you mean, I gess you want to disable #Window_1 while #Window_2 is running. That's your question?

Fabio
by fabio
Sat Jan 23, 2010 9:35 am
Forum: Coding Questions
Topic: WindowID
Replies: 9
Views: 1441

Re: WindowID

Something like this:

Code: Select all

Repeat
  EventID = WaitWindowEvent()
  Window = EventWindow()
  
  Select EventID
    Case #PB_Event_CloseWindow
      Select Window
        Case #Window_1 : Quit = 1
        Case #Window_2 : CloseWindow(#Window_2)
      EndSelect
  EndSelect 
Until Quit = 1
Fabio
by fabio
Thu Jan 21, 2010 1:52 am
Forum: Off Topic
Topic: a
Replies: 24
Views: 3437

Re: a

This is by far the best topic I've seen in my life.
by fabio
Sat Jan 16, 2010 7:46 pm
Forum: Coding Questions
Topic: toolbar question
Replies: 8
Views: 1333

Re: toolbar question

Thanks again, Kaeru. Time to code :lol:

Fabio
by fabio
Sat Jan 16, 2010 4:37 pm
Forum: Coding Questions
Topic: toolbar question
Replies: 8
Views: 1333

Re: toolbar question

OK, thank you very much for the info, Kaeru.
I need to make one last question, the version of Purebasic on either Linux and Mac comes with its own api too? Just like the win version comes with the winapi?

Fabio
by fabio
Sat Jan 16, 2010 5:17 am
Forum: Coding Questions
Topic: toolbar question
Replies: 8
Views: 1333

Re: toolbar question

Container was the magic word 8). The example works great, thank you very much for your help.
I have a few more questions, please.

If I am right, SetWindowLong_ only works in win, what happens if I try to run this function in other OS? Maybe a crash?

And a more general question, when I compile this ...
by fabio
Sat Jan 16, 2010 12:38 am
Forum: Coding Questions
Topic: toolbar question
Replies: 8
Views: 1333

toolbar question

Hello, I am making my first steps and would like to know how to use more than one toolbar in a window.
I have been based in toolbar.pb, but after adding a second toolbar, the first disappear.
Thank you in advance.

Fabio