Hi, I have just started using Xojo and I have a few questions about the programming and user interface and I’d be grateful for answers.
Firstly, how do I change the text size, font etc, of a Text label? I’ve worked out that I can code ‘me.TextSize=int’ but I would ideally like to see the text size as I would like it to be, when developin.
Secondly, is there a way to print to some sort of out output window?
[quote=142910:@Rami Hassan]Thanks for the reply.
My problem is I cannot see the properties like TextFont/Size on the Inspector.[/quote]
Click on the gear icon on top of the inspector, and you get to a second page where these properties are. You can also change them in code with the help of the link I posted.
I used to use Visual Basic 6 on a Windows OS and on that if I used the line, for example: ‘Print 1’, a 1 would be printed (written on the screen). It’s useful for seeing if parts of the code worked.
For example:
if then Print “worked” 'this shows me that returned true and my if statement worked.
end
Perhaps on Xojo it’s called something completely different; I’m still very new to this.
[quote=142944:@Rami Hassan]if then
Print “worked” 'this shows me that returned true and my if statement worked.
end[/quote]
I believe MsgBox will work fine for what you’re trying to do. You’ll find the details of usage in the Language Reference.