How to test if StatusBar is defined in current window?
Posted: Sun Oct 18, 2009 10:03 am
i need to test if status bar is defined.
Do anybody know how to do it?
Do anybody know how to do it?
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://mail.hmgforum.com/
Hi,mol wrote:i need to test if status bar is defined.
Do anybody know how to do it?
Code: Select all
#include "minigui.ch"
Function Main
SET DATE GERMAN
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 640 ;
HEIGHT 400 ;
TITLE 'Statusbar Keyboard Demo' ;
MAIN
DEFINE STATUSBAR FONT 'Arial' SIZE 9
STATUSITEM "Statusbar Demo"
KEYBOARD
DATE
CLOCK
END STATUSBAR
END WINDOW
msginfo( Iif(IsControldefined( Statusbar, Form_1 ), "TRUE", "FALSE") )
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
Hi Marek,mol wrote:I've tried to go this way earlier, but I always got information that statusbar is not defined.
So, Grigori, your sample doesn't work
Code: Select all
IsControlDefined (cWindowName, "StatusBar")
Code: Select all
IsControlDefined (&cWindowName, StatusBar)