PureBasic 3.92 Beta 2 Released
PureBasic 3.92 Beta 2 Released
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.
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.
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
Re: PureBasic 3.92 Beta 2 Released
A dream come true, now we can go for the sort of Linked Lists without any hacks.Fred wrote:SwapElements()
*hugging fred*
- tinman
- PureBasic Expert
- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
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 ;)einander wrote:Thanks Fred!
Only 0.08 to Pb 4 and counting down :P :P :P
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
-
- User
- Posts: 41
- Joined: Fri Aug 22, 2003 7:10 pm
- Location: 76 (FRANCE)
- Contact:
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:
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
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
Regards,
Christian
Code: Select all
GetGadgetAttribute(#MDI, #PB_MDI_SizedItem)
With 3.91 anything went just smooth.
Oh ... what a pity. Would have been so useful. Why doesn't PB support the overlapping of gadgets? Is it too difficult to program?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.
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
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
Thanks for bringing this up 
Reference: viewtopic.php?p=72348#72348


Reference: viewtopic.php?p=72348#72348
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.Christian wrote:Oh ... what a pity. Would have been so useful. Why doesn't PB support the overlapping of gadgets? Is it too difficult to program?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.
To solve your problem you can use this:
Code: Select all
SetWindowLong_(GadgetID(#xxx), #GWL_STYLE, GetWindowLong_(GadgetID(#xxx), #GWL_STYLE) & ~#SS_NOTIFY)