Dear Sir,
I am a new user of PowerBasic and FireFly. I want to check the frame control visible property. How can I do that ? Where can I find more document and user guide of PowerBasic and Firefly ?
Thank you very much for your attention.
Roy Chan
Hi Roy,
The best way to find information are the help files and the forums. Powerbasic also has a printed manual you can buy.
Regards,
Marc
At the right side of FF's toolbar you have three important buttons, giving access to the help-file for FF, PB and the API in general â€" if you have that file and have told FF where to find it. Maybe someone, at the top of their heads, remember where it is to be found? Additionally, Dan Appleman's "Visual Basic Programmer's Guide to the Win32 API" book is quite useful for Basic coders. It even includes a helpfile one can use for the "extra" button in FF.
As for the control/window property, look up / try; IsWindowVisible( hWnd )
Dear Sir,
Thank you very much for your reply. But I am not a newbie of programming. I used VB6, VB.net and Realbasic for a long time. I found that it is not so easy to find the answer from the user manual, help files and forum. I just want to check some simple properties of control (textbox,label or combobox). I am begining to migrate my VB6 project to powerbasic. But these two programming language are totally different. So I want to find more material to help myself to understand powerbasic.
Thank you very much.
Roy Chan
You can use the IsWindowVisible api function.
If IsWindowVisible( HWND_FORM1_FRAME1 ) Then
' yup, I can see it
Else
' nope, I can't
End If
Quote
The IsWindowVisible function retrieves the visibility state of the specified window.
BOOL IsWindowVisible(
HWND hWnd // handle of window
);
Parameters
hWnd: Identifies the window.
Return Values
If the specified window and its parent window have the WS_VISIBLE style, the return value is nonzero.
If the specified window and its parent window do not have the WS_VISIBLE style, the return value is zero. Because the return value specifies whether the window has the WS_VISIBLE style, it may be nonzero even if the window is totally obscured by other windows.
Remarks
The visibility state of a window is indicated by the WS_VISIBLE style bit. When WS_VISIBLE is set, the window is displayed and subsequent drawing into it is displayed as long as the window has the WS_VISIBLE style.
Any drawing to a window with the WS_VISIBLE style will not be displayed if the window is obscured by other windows or is clipped by its parent window.
Dear Sir,
Thank you very much. I solved my problem by your answer.
Regards.
Roy Chan
No need to be so formal Roy, we're all friends/"family" in here. 8o)
Hopefully you'll find it a nice place to hang out and have your small and larger challenges with PowerBasic conquered.