PureBasic logo in all my software

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 794
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: PureBasic logo in all my software

Post by Zebuddi123 »

Update: Now have choice of 3 display gagdets string text or editor and can set widow and display gadget backcolor

Code: Select all

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: Select all

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.
malleo, caput, bang. Ego, comprehendunt in tempore
User avatar
marcoagpinto
Addict
Addict
Posts: 939
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic logo in all my software

Post by marcoagpinto »

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.
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: PureBasic logo in all my software

Post by Bisonte »

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 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: PureBasic logo in all my software

Post by TI-994A »

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: Select all

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: Select all

PBAboutInfo::about_purebasic(Window_0, "hello world from Zebbudi.", 1, $FFFFE0, $6BB7BD)
That should do it. :wink:
Texas Instruments TI-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! Please visit my YouTube Channel :D
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 794
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: PureBasic logo in all my software

Post by Zebuddi123 »

CanvasGadget() version with DrawVectorParagraph() should be cross platform

Zebuddi.

Image

https://www.dropbox.com/s/8acijsbh41roz ... 2.pbi?dl=0
malleo, caput, bang. Ego, comprehendunt in tempore
Post Reply