It is currently Thu May 28, 2020 5:34 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Tue Feb 25, 2020 8:01 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1758
Location: Uttoxeter, UK
@Thorsten1867,

Works perfectly on my MacBook, as expected.
Thank you very much. :D

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Thu Mar 05, 2020 10:13 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1758
Location: Uttoxeter, UK
@Thorsten1867,
I didn't want to use a gradient colour but accidentally got one! I think there is a bug:

I specified a back colour to a TextEx gadget and later added the #Center flag to the Gadget definition. I got centred text but also the colour changed to a gradient :)

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Fri Mar 06, 2020 8:23 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1262
Location: Germany
Do you have a sample code?
I don't know how you could change the flag afterwards, as this is set when creating a gadget.

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Fri Mar 06, 2020 8:32 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1758
Location: Uttoxeter, UK
@Thorsten1867,

Sorry it was not my intention to confuse.
The code below tested on MacBook.
The code below shows the difference between the Gadget definitions in lines 17 & 18.

Code:
EnableExplicit


XIncludeFile "TextExModule.pbi"


#Window = 0
  #Text = 1
  #Font = 1
 
  Define Event.i
 
  LoadFont(#Font, "Arial", 11, #PB_Font_Bold)
 
  If OpenWindow(#Window, 0, 0, 180, 60, "Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
   
    TextEx::Gadget(111,10,10,160,18,"Some text")
    ;TextEx::Gadget(111,10,10,160,18,"Some text",TextEx::#Center)
    TextEx::SetColor(111,TextEx::#BackColor,$DDA0DD)
   
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
   
  EndIf

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Sat Mar 07, 2020 11:05 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1262
Location: Germany
Can't see the difference with me. :?:

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] TextEx - Extended TextGadget (All OS / DPI)
PostPosted: Sat Mar 07, 2020 5:12 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1758
Location: Uttoxeter, UK
@Thorsten1867,
I can assure you that the problem still exists on my MacBook.
I checked on one of my PC's. No problem, there.

_________________
DE AA EB


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 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