Looking for GUI tricks in Blitz+

Blitz3D Forums/Blitz3D Beginners Area/Looking for GUI tricks in Blitz+

Mimi(Posted 2004) [#1]
I have some questions about the GUI of BlitzPlus:

1) How can the width (and hight) in pixels of a textstring be determined, so that e.g. a button can be created in the correct width and hight automatically (i.e. for variable text lengths)? (The stringwidth-command does not seem to work for the GUI environment)

2) Is there any way to change the character settings for text in the GUI environment? (It seems to be possible for textareas only.)

3) Is there any way to initialize the directory/path-settings for the "RequestFile"-Command?

As I am new to the Blitz Community, I hope my questions are not too trivial. I'd be grateful for help!


skidracer(Posted 2004) [#2]
1. The stringwidth commands need a graphics buffer, you can use the desktopbuffer

SetBuffer DesktopBuffer()
Print StringWidth("hello")
Input

2. See the SetGadgetFont command.

3. The directory/path settings will be supported in next BlitzPlus update.


eBusiness(Posted 2004) [#3]
Removed


Wiebo(Posted 2004) [#4]
skid,

any idea of an ETA?