It is currently Tue Aug 22, 2017 9:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: PureBasic logo in all my software
PostPosted: Fri Feb 17, 2017 3:18 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Feb 01, 2012 3:30 pm
Posts: 614
Location: Nottinghamshire UK
Update: Now have choice of 3 display gagdets string text or editor and can set widow and display gadget backcolor

Code:
about_purebasic(iParentWinID.i, sMsg.s , bGadgetType.b = 0, iWinColor.i =$6E7E94, iGadgetColor.i = $AEFBF7)


bGadgetType 0, 1, or 2 editor test string respectively, editor as default, and select colours from the color wheel.

ie:
Code:
PBAboutInfo::about_purebasic(Window_0, "hello world from Zebbudi.", 1, $FFFFE0, $6BB7BD)



Hi macroagpinto #ES_Centre yes windows only not sure about linux or OSX but sure someone else will know :)

Zebuddi.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic logo in all my software
PostPosted: Fri Feb 17, 2017 10:29 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 478
Location: Portugal
Well, from all the suggestions, I ended up with the following for my projects:

Image

I just don't know yet how to centre the text in Linux+Mac.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic logo in all my software
PostPosted: Fri Feb 17, 2017 11:02 am 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 821
marcoagpinto wrote:
I just don't know yet how to centre the text in Linux+Mac.


Use a canvasgadget or textgadgets with a framegadget ....

_________________
PureBasic 5.45 LTS / 5.60 (Windows x86/x64) | Windows10 Pro x64 | Z87-PLUS | i7 4770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language...


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic logo in all my software
PostPosted: Fri Feb 17, 2017 11:30 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 3:47 am
Posts: 1948
marcoagpinto wrote:
...how to centre the text in Linux+Mac.

On line 30 of Zebuddi's module, Module_PBAboutInfo.pbi, change #ES_Center to #PB_Text_Center:
Code:
Case 1
  iThisGadgetType = TextGadget(#PB_Any, 10, 145, 530, 95, "", #PB_Text_Center)

And in the calling code, ensure that the bGadgetType parameter to the about_purebasic() function is set to 1:
Code:
PBAboutInfo::about_purebasic(Window_0, "hello world from Zebbudi.", 1, $FFFFE0, $6BB7BD)

That should do it. :wink:

_________________
Texas Instruments 99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic logo in all my software
PostPosted: Fri Feb 17, 2017 12:40 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Feb 01, 2012 3:30 pm
Posts: 614
Location: Nottinghamshire UK
CanvasGadget() version with DrawVectorParagraph() should be cross platform

Zebuddi.

Image

https://www.dropbox.com/s/8acijsbh41roz92/Module_PBAboutInfo2.pbi?dl=0


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

All times are UTC + 1 hour


Who is online

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