Search found 35 matches

by avatar
Sat Jun 12, 2010 2:54 am
Forum: Coding Questions
Topic: [SOLVED] How to set menu font size?
Replies: 3
Views: 1142

Re: How to set menu font size?

Thanks a lot.
by avatar
Fri Jun 11, 2010 3:44 am
Forum: Coding Questions
Topic: [SOLVED] How to set menu font size?
Replies: 3
Views: 1142

[SOLVED] How to set menu font size?

Does anybody know how to change the menu font size?
by avatar
Mon Apr 26, 2010 7:23 am
Forum: Coding Questions
Topic: Why I cannot REDIM?
Replies: 6
Views: 1383

Re: Why I cannot REDIM?

Thanks idle.
You are already very helpful.
May be I consider to better change to use structure list.
by avatar
Mon Apr 26, 2010 7:05 am
Forum: Tricks 'n' Tips
Topic: IIF functionality made simple
Replies: 39
Views: 14969

Re: IIF functionality made simple

This is my version of string handling in IIF
Procedure.s IIFEvalss(expr,y.s,n.s)
If expr
ProcedureReturn y
Else
ProcedureReturn n
EndIf
EndProcedure
Macro IIFSS(expr,y,n)
IIFEvalss((Not(expr)),n,y)
EndMacro

Debug iifss(1=0,"TRUE","FALSE")
Debug iifss(1=1,"TRUE","FALSE")
by avatar
Mon Apr 26, 2010 6:57 am
Forum: Coding Questions
Topic: Why I cannot REDIM?
Replies: 6
Views: 1383

Re: Why I cannot REDIM?

Not allow to REDIM the 1st dimension?
What will be the alternative to increase the dimension size?
by avatar
Mon Apr 26, 2010 6:55 am
Forum: Coding Questions
Topic: [SOLVED] Simple logic problem
Replies: 3
Views: 769

Re: Simple logic problem

Thanks idle, very tricky!
by avatar
Mon Apr 26, 2010 6:38 am
Forum: Coding Questions
Topic: Why I cannot REDIM?
Replies: 6
Views: 1383

Why I cannot REDIM?

Please help. I do not understand why I cannot REDIM my array

Dim GV.l(1,2)
GV(0,0) = 100
GV(0,1) = 200
GV(1,0) = 300
GV(1,1) = 400
ReDim GV(2,2) ; <------------------ ERROR
GV(2,0) = 1100
GV(2,1) = 1200
For Count = 0 To ArraySize(GV())
Debug Str(GV(Count,0))+","+Str(GV(Count,1))
Next

Error log ...
by avatar
Mon Apr 26, 2010 6:07 am
Forum: Coding Questions
Topic: [SOLVE]How to use the fifth parameter in SetWindowCallback()
Replies: 6
Views: 1315

Re: [SOLVE]How to use the fifth parameter in SetWindowCallba

Thanks Bullfrog

I am thinking similar method as yours
by avatar
Mon Apr 26, 2010 5:53 am
Forum: Coding Questions
Topic: [SOLVE]How to use the fifth parameter in SetWindowCallback()
Replies: 6
Views: 1315

Re: [SOLVE]How to use the fifth parameter in SetWindowCallba

Thanks netmeastro for the detailed explanation.

Yes, I want to have more than one window opened.

The window ID (in my example, 123) can be very helpful if I can identify it within the call back procedure.

When I pass the fifth parameter to the call back procedure, how can I retrieve it from ...
by avatar
Mon Apr 26, 2010 3:30 am
Forum: Coding Questions
Topic: [SOLVE]How to use the fifth parameter in SetWindowCallback()
Replies: 6
Views: 1315

[SOLVE]How to use the fifth parameter in SetWindowCallback()

From the manual, it is allowed to optionally set the fifth window call back parameter "#Window"
SetWindowCallback(@ProcedureName() [, #Window])

How can I retrieve this information from the Call back function?

Procedure WinCallback(hWnd, uMsg, wParam, lParam)
debug str(#Window ...
by avatar
Sat Apr 24, 2010 1:50 pm
Forum: Coding Questions
Topic: [SOLVED] How to get Text from a text pointer
Replies: 3
Views: 673

Re: How to get Text from a text pointer

Thank you for your help
by avatar
Sat Apr 24, 2010 1:45 pm
Forum: Coding Questions
Topic: [SOLVED] How to get Text from a text pointer
Replies: 3
Views: 673

[SOLVED] How to get Text from a text pointer

I refer to the manual about the pointer, my codes below cannot retrieve the text.
Please help

Example:
Text$ = "Hello"
*Text = @Text$ ; *Text store the address of the string in memory
*Pointer.String = @*Text ; *Pointer points on *Text
Debug *Pointer\s ; Display the string living at the ...
by avatar
Sat Apr 24, 2010 8:23 am
Forum: Coding Questions
Topic: [SOLVED] How to make optional parameter in procedure?
Replies: 2
Views: 630

[SOLVED] How to make optional parameter in procedure?

I see a lot of procedure/function in PB is having optional parameter
For example, Result = ButtonGadget(#Gadget, x, y, Width, Height, Text$ [, Flags])
The "Flags" is optional parameter

How can I create such procedure/function in PB with optional parameter?