PureBasic 5.44 LTS is available !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
macros
User
User
Posts: 80
Joined: Wed Mar 15, 2006 1:47 pm
Location: Munich

Re: PureBasic 5.44 LTS is available !

Post by macros »

Thank you very much!

I didn't see the topic for it,
but I am incredible happy that the tabs now behave like they should under Linux and do no longer stick to the mouse at random times.
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: PureBasic 5.44 LTS is available !

Post by djes »

Great ! Thank you :)
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: PureBasic 5.44 LTS is available !

Post by kenmo »

Thank you all!!
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.44 LTS is available !

Post by Fred »

macros wrote:Thank you very much!

I didn't see the topic for it,
but I am incredible happy that the tabs now behave like they should under Linux and do no longer stick to the mouse at random times.
That's strange because we didn't specifically changed something about it, may be another bug fix ? :)
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: PureBasic 5.44 LTS is available !

Post by Joris »

Just installed 5.51 version started PB and the toolbar in my own coded program (not PB) just appears with a black background color !?
I ran that just before the upgrade too and the color was ok, didn't change or do anything else then install 5.51.
(I'm on XP32 SP3)

Thanks.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.44 LTS is available !

Post by Fred »

I don't think PB can change other program toolbar color..
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: PureBasic 5.44 LTS is available !

Post by Joris »

Fred wrote:I don't think PB can change other program toolbar color..
It is a (very big) PB-code that I build. Running it, it has a toolbar in the main window, but now ... after the PB 5.51 upgrade that toolbar becomes black colored, while nothing else is changed.

I'll switch back to the previous PB version PB 5.50.

[EDIT]Just did that and everything is back normal : toolbar has it's unchangeble grey color.[/EDIT]
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
MarkOtt
User
User
Posts: 28
Joined: Sat Feb 11, 2017 8:33 pm
Location: Switzerland

Re: PureBasic 5.44 LTS is available !

Post by MarkOtt »

I also think there is a toolbar error in PB 5.44 which wasn't in PB 5.42

A TOOLBAR with "ToolBarImageButton()" shows black icons and black background if the underlaying window has a background color set with "SetWindowColor()".

Code: Select all

;
; ------------------------------------------------------------
;
;   PureBasic - ToolBar example file
;
;    (c) Fantaisie Software
;
; ------------------------------------------------------------
;

UsePNGImageDecoder()

If OpenWindow(0, 100, 200, 195, 260, "ToolBar example", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
  
  SetWindowColor(0,  $FEFAB6)    ; <-------------------
  
  If CreateToolBar(0, WindowID(0))
    ToolBarImageButton(0, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/New.png"))
    ToolBarImageButton(1, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Open.png"))
    ToolBarImageButton(2, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Save.png"))
    
    ToolBarSeparator()

    ToolBarImageButton(3, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Cut.png"))
    ToolBarToolTip(0, 3, "Cut")
    
    ToolBarImageButton(4, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Copy.png"))
    ToolBarToolTip(0, 4, "Copy")
    
    ToolBarImageButton(5, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Paste.png"))
    ToolBarToolTip(0, 5, "Paste")
    
    ToolBarSeparator()

    ToolBarImageButton(6, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Find.png"))
    ToolBarToolTip(0, 6, "Find a document")
  EndIf


  If CreateMenu(0, WindowID(0))
    MenuTitle("Project")
      MenuItem(0, "New")
      MenuItem(1, "Open")
      MenuItem(2, "Save")
  EndIf
  
  DisableToolBarButton(0, 2, 1) ; Disable the button '2'
  
  ;
  ; The event loop. A ToolBar event is like a Menu event (as tools are shortcut for menu the most
  ; of the time). This is handy, as if the ToolBar buttons and the MenuItem have the same ID, then
  ; the same operation can be done on both action without any adds..
  ;
  
  Repeat
    Event = WaitWindowEvent()

    Select Event
    
      Case #PB_Event_Menu
        MessageRequester("Information", "ToolBar or Menu ID: "+Str(EventMenu()), 0)
      
      Case #PB_Event_CloseWindow  ; If the user has pressed on the close button
        Quit = 1
        
    EndSelect

  Until Quit = 1
  
EndIf

End   ; All resources are automatically freed

Thanks. Markus


UPDATE: 11 Aug 2017

The bug is corrected in version 5.45 beta 1

Thank you very much, Fred :D

Regards. Markus
Last edited by MarkOtt on Fri Aug 11, 2017 9:36 pm, edited 1 time in total.
akee
Enthusiast
Enthusiast
Posts: 475
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 5.44 LTS is available !

Post by akee »

it seems that the structure DEVMODE has changed.

It is missing dmOrientation.

DevMode.DEVMODE
DevMode\dmOrientation ; 5.43_x86_LTS (ok) / 5.44_x86_LTS (missing)
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: PureBasic 5.44 LTS is available !

Post by nco2k »

If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PureBasic 5.44 LTS is available !

Post by Thunder93 »

Not the place to report missing or wrong structures. Should be posting these under the bugs forum in the topic ' Requested API Structure and constants '. :wink:

dmOrientation exists but you need to supply \Printer\

DevMode.DEVMODE\Printer\dmOrientation
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kukulkan
Addict
Addict
Posts: 1352
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: PureBasic 5.44 LTS is available !

Post by Kukulkan »

Is there a chance to get a new LTS release soon that fixes the annoying Prototype.q bug?

http://www.purebasic.fr/english/viewtop ... =4&t=68074
http://www.purebasic.fr/english/viewtop ... =4&t=67150
http://www.purebasic.fr/english/viewtop ... =4&t=67361

Currently, we need to stay at 5.42 LTS (some report 5.43 is also working) for all our programs. Would be great to get this fixed again.
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: PureBasic 5.44 LTS is available !

Post by Niffo »

To try to reproduce an annoying bug, i am looking for PB 5.44 LTS x86 for Windows. Sadly, it is not in the "Museum" (https://www.purebasic.com/securedownload/Museum.php)
Can someone do something for me ? (Fred ?)
Niffo
Offin
User
User
Posts: 34
Joined: Mon May 04, 2009 10:53 am
Location: France

Re: PureBasic 5.44 LTS is available !

Post by Offin »

Answered via PM.
Post Reply