PureBasic 3.92 Beta 2 Released

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

PureBasic 3.92 Beta 2 Released

Post 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.
Last edited by Fred on Mon Oct 25, 2004 12:37 am, edited 1 time in total.
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Re: PureBasic 3.92 Beta 2 Released

Post by freedimension »

Fred wrote:SwapElements()
A dream come true, now we can go for the sort of Linked Lists without any hacks.

*hugging fred*
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Thanks Fred!
Only 0.08 to Pb 4 and counting down :P :P :P
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post 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 ;)
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
vanleth
User
User
Posts: 79
Joined: Sat Jun 28, 2003 4:39 am
Location: Denmark - Valby

Post 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
Heis Spiter
User
User
Posts: 41
Joined: Fri Aug 22, 2003 7:10 pm
Location: 76 (FRANCE)
Contact:

Post 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...
vanleth
User
User
Posts: 79
Joined: Sat Jun 28, 2003 4:39 am
Location: Denmark - Valby

Post 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
Christian
Enthusiast
Enthusiast
Posts: 154
Joined: Mon Dec 08, 2003 7:50 pm
Location: Germany

Post 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
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Post 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.
Christian
Enthusiast
Enthusiast
Posts: 154
Joined: Mon Dec 08, 2003 7:50 pm
Location: Germany

Post 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
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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?
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post 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.
Post Reply