It is currently Thu Nov 26, 2020 2:11 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [Done] (PB 5.71 + PB v5.72b1) Big Font StringGadget Bug
PostPosted: Mon Aug 19, 2019 8:58 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
Example
Code:
If OpenWindow(0, 0, 0, 400, 200, "SetGadgetFont", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  StringGadget(0, 10, 10, 380, 180, "Text-Text-Text-Text-Text-Text-Text-Text")
  If LoadFont(0, "Arial", 48)
    SetGadgetFont(0, FontID(0))   ; Set the loaded Arial 16 font as new standard
  EndIf
   
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf


I go back to gadget library v5.70

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Last edited by mk-soft on Sun Feb 02, 2020 12:53 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71 Big Font StringGadget Bug
PostPosted: Mon Sep 09, 2019 5:12 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1171
Location: Portugal
Just noticed the same thing the text is never centered it just stays at the top of the gadget!

Please fix +1

CD

_________________
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71 Big Font StringGadget Bug
PostPosted: Tue Sep 24, 2019 12:02 am 
Offline
Addict
Addict

Joined: Mon Aug 04, 2008 10:56 pm
Posts: 1142
Location: Seattle, USA
Small text in small string gadget has the text slightly below the box. The bottom line of the text is on the string gadget box.

This is a change from 5.70LST

_________________
MacBook Pro-r, OSX 10.14.6 , PB 5.73b4


Last edited by WilliamL on Tue Oct 22, 2019 10:20 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71 Big Font StringGadget Bug
PostPosted: Thu Sep 26, 2019 5:47 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
You can also copy the gadget libray from PB v5.70 to PB v5.71.
The same with the PB-IDE, because it has a problem with history database.

Some many bugs are already fixed with PB v5.71.
So I built my own APP package and hope that there will be an update soon.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71 Big Font StringGadget Bug
PostPosted: Tue Oct 22, 2019 11:33 pm 
Offline
Addict
Addict

Joined: Mon Aug 04, 2008 10:56 pm
Posts: 1142
Location: Seattle, USA
I looked a little closer at the text positions in my string gadgets between 5.70LTS and 5.71LTS. Using the code below I find the text to be one pixel lower in 5.71 which makes it cut off the bottom line of the text. The odd thing is that, in my old (old) program the text has a background pixel between the text and the bottom of the string gadget box and it works fine in 5.70LTS. I can't explain it.

Code:
If OpenWindow(0, 0, 0, 400, 200, "SetGadgetFont", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  If LoadFont(1, "Geneva", 10)
      SetGadgetFont(0, FontID(1))
      StringGadget(0,10,10,60,17,"30647")
  EndIf
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

_________________
MacBook Pro-r, OSX 10.14.6 , PB 5.73b4


Top
 Profile  
Reply with quote  
 Post subject: Re: (PB 5.71 + PB v5.72b1) Big Font StringGadget Bug
PostPosted: Sun Feb 02, 2020 12:54 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
Please don't forget it :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: (PB 5.71 + PB v5.72b1) Big Font StringGadget Bug
PostPosted: Sun Feb 02, 2020 8:46 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14179
Location: France
It was because of this fix: viewtopic.php?f=24&t=72493

I reverted the change because it seems to be much worse now.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] (PB 5.71 + PB v5.72b1) Big Font StringGadget Bug
PostPosted: Mon Feb 03, 2020 6:02 pm 
Offline
Addict
Addict

Joined: Mon Aug 04, 2008 10:56 pm
Posts: 1142
Location: Seattle, USA
Ok, if I understand you correctly, the new positioning (lower) is permanent and we'll have to adjust to it. I find it so much easier to accept change when I have some explanation. Thanks Fred.

Multi-line string gadget was a nice idea though.

_________________
MacBook Pro-r, OSX 10.14.6 , PB 5.73b4


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye