Fonts in gadgets ? fill arrays ? constants ?

Just starting out? Need help? Post your questions and find answers here.
willib
User
User
Posts: 39
Joined: Mon Sep 15, 2003 7:04 pm
Location: Bielefeld

Fonts in gadgets ? fill arrays ? constants ?

Post by willib »

Hi all :wink:

I ' m new here ( come from 16bit GFA-basic ) , so sorry for all my posting who are asked before ( and for my strange english too ;-) )
here are my first question :

How can I change the font in/of a gadget ? ( flags .. sendmessage .. ) ?

Can i fill an array with one command ( like arrayfill ? ) or must I do with for ... next ?

Where can i find a list with all #pb constands like #PB_CheckBox_Right ff. ?

any help is welcome !

regards to the world 8)
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Welcome.

gadget fonts:
Load a font with the LoadFont() command, and then use
SetGadgetFont(Gadget, FontID) to change the font of a gadget.
If you set 'Gadget' to #PB_Default, then all later created gadgets will
use that font.

arrayfill:
There's no command for that. Use For/Next for that.
btw: after a Dim, the whole array is initialized to 0, if that is what you want.

constants:
constants are explained in the section of the comands that use them.
for a compleete list, go here:
http://www.reelmediaproductions.com/cgi ... sNew&pass=

Timo
quidquid Latine dictum sit altum videtur
willib
User
User
Posts: 39
Joined: Mon Sep 15, 2003 7:04 pm
Location: Bielefeld

Post by willib »

many thanks for the quick and good answer !
Post Reply