Page 1 of 2

PureBasic 3.92 Beta 2 Released

Posted: Wed Oct 20, 2004 11:24 am
by Fred
Hi there,

The new beta of the forthcoming 3.92 version is out, you can grab it on your personnal account. It irons out some more bugs and add the SwapElements() command. Please test it as much as you can, as the compiler has be partially rewritten to handle litteral string concatenation in a much powerful way. If all goes nicely, the final release should be done on next monday.

Have fun !

Fred.

Re: PureBasic 3.92 Beta 2 Released

Posted: Wed Oct 20, 2004 12:06 pm
by freedimension
Fred wrote:SwapElements()
A dream come true, now we can go for the sort of Linked Lists without any hacks.

*hugging fred*

Posted: Wed Oct 20, 2004 5:21 pm
by einander
Thanks Fred!
Only 0.08 to Pb 4 and counting down :P :P :P

Posted: Wed Oct 20, 2004 5:38 pm
by tinman
einander wrote:Thanks Fred!
Only 0.08 to Pb 4 and counting down :P :P :P
I guess you don't use version.revision numbering conventions then. Fred could go all the way up to PB 3.2147 before releasing v4 ;)

Posted: Wed Oct 20, 2004 6:28 pm
by vanleth
is it only me, or is the editor a little bugged since beta1.

F1 for help won't help out

Preferences are not probably stored/used.

else it works good

Posted: Wed Oct 20, 2004 6:31 pm
by Heis Spiter
vanleth wrote:F1 for help won't help out
I've got no problems with help. I've cursor on OpenScreen, I push F1, and help opens with OpenScreen command...
Perhaps, this is not this bug and I've bad understood...

Posted: Wed Oct 20, 2004 7:40 pm
by vanleth
K deleted the prefs files for the designer and editor. But it seems it was my shortcut that was wrong, the "Start In ..." shortcut proberty was empty.

Now it works as intended

Posted: Fri Oct 22, 2004 10:11 am
by Christian
Hi Fred!

Very nice that the ImageGadget does also allow gadgetEvents now, but I found a bug within it:

If I put any gadget (e.g. a ButtonGadget) over an ImageGadget the events of this gadget isn't recognized by this gadget. Instead the event goes to the ImageGadget.

Here a little example:

Code: Select all

OpenWindow(0, 0, 0, 400, 300, #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered, "Test") 

CreateGadgetList(WindowID()) 
ImageGadget(0, 0, 0, 200, 300,CreateImage(0, 200, 300)) 
ButtonGadget(1, 25, 50, 150, 25, "Testbutton 1")
ButtonGadget(2, 225, 50, 150, 25, "Testbutton 2")

Repeat 
 Select WaitWindowEvent()
   Case  #PB_Event_Gadget
     Select EventGadgetID()
       Case 0
         MessageRequester("Info","Click on ImageGadget!")

       Case 1
         MessageRequester("Info","Click on ButtonGadget 1!")

       Case 2
         MessageRequester("Info","Click on ButtonGadget 2!")
     EndSelect
    
    Case #PB_Event_CloseWindow
      Quit = #TRUE
 EndSelect 
Until Quit = #TRUE
End
Click on button 1 shows that their is no event for the button, but for the ImageGadget it is. Button 2 works fine ...

Regards,
Christian

Posted: Fri Oct 22, 2004 3:25 pm
by Fred
Overlapping gadgets are not supported in PB except if they are containers. Anyway, you can still remove the #SS_NOTIFY flags from the ImageGadget() style if you want to have the same behaviour than pre 3.92 version.

Posted: Fri Oct 22, 2004 4:17 pm
by HeX0R

Code: Select all

GetGadgetAttribute(#MDI, #PB_MDI_SizedItem)
always returns 0 , doesn't matter which child i resize.
With 3.91 anything went just smooth.

Posted: Fri Oct 22, 2004 8:28 pm
by Christian
Fred wrote:Overlapping gadgets are not supported in PB except if they are containers. Anyway, you can still remove the #SS_NOTIFY flags from the ImageGadget() style if you want to have the same behaviour than pre 3.92 version.
Oh ... what a pity. Would have been so useful. Why doesn't PB support the overlapping of gadgets? Is it too difficult to program?

I wanted to use the ImageGadget() to put a background-image for the whole window in it. What do you mean with: I still can remove the #SS_NOTIFY Flags from the ImageGadget()? Where/How can I do this and is it possible to do it for every ImageGadget() individual?

Thanks in advance,
Christian

Posted: Sat Oct 23, 2004 5:52 am
by Shannara
That brings up a Wishlist, a Zorder ability (like on VB), would love to see this implimented in PB by default like a few other languages :D Thanks for bringing this up :)


Reference: viewtopic.php?p=72348#72348

Posted: Sat Oct 23, 2004 11:07 am
by Fred
Christian wrote:
Fred wrote:Overlapping gadgets are not supported in PB except if they are containers. Anyway, you can still remove the #SS_NOTIFY flags from the ImageGadget() style if you want to have the same behaviour than pre 3.92 version.
Oh ... what a pity. Would have been so useful. Why doesn't PB support the overlapping of gadgets? Is it too difficult to program?
It's Windows which doesn't support gadget overlapping when the gadgets are on the same parent. But it's possible to put a gadget inside another, tough the results can be unexpected and you will have to work with sub-classed callback to get back the events. AFAIK no other langage on Windows supports such gadget overlapping.

To solve your problem you can use this:

Code: Select all

SetWindowLong_(GadgetID(#xxx), #GWL_STYLE, GetWindowLong_(GadgetID(#xxx), #GWL_STYLE) & ~#SS_NOTIFY)

Posted: Sat Oct 23, 2004 5:19 pm
by Shannara
Fred wrote:AFAIK no other langage on Windows supports such gadget overlapping.
I currently have Visual Basic 6 and Visual C 6 open, and they both support gadget overlapping. ;) Could anybody else verify?

Posted: Mon Oct 25, 2004 5:08 am
by griz
K deleted the prefs files for the designer and editor. But it seems it was my shortcut that was wrong, the "Start In ..." shortcut proberty was empty.
I experienced the same issue.