Page 2 of 2

Re: PureBasic logo in all my software

Posted: Fri Feb 17, 2017 3:18 am
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.

Re: PureBasic logo in all my software

Posted: Fri Feb 17, 2017 10:29 am
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.

Re: PureBasic logo in all my software

Posted: Fri Feb 17, 2017 11:02 am
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 ....

Re: PureBasic logo in all my software

Posted: Fri Feb 17, 2017 11:30 am
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:

Re: PureBasic logo in all my software

Posted: Fri Feb 17, 2017 12:40 pm
by Zebuddi123
CanvasGadget() version with DrawVectorParagraph() should be cross platform

Zebuddi.

Image

https://www.dropbox.com/s/8acijsbh41roz ... 2.pbi?dl=0