Page 1 of 1
LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Mon Nov 30, 2020 3:03 am
by AUGE_OHR
hi,
it seems bot have no "Focus-Slot" when GETFocus or LOSTFocus, why
it does not crash when include GOTfocus ... but nothing happens
is there any "trick"

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Mon Nov 30, 2020 4:26 pm
by andyglezl
mmmm... HMG o MiniGuiEx
En HMG la sintaxis no menciona esos Eventos ?
*-----------------------------------------------------------
mmmm ... HMG or MiniGuiEx
In HMG the syntax does not mention those Events ?
https://www.hmgforum.com/viewtopic.php? ... ber#p61983
https://www.hmgforum.com/viewtopic.php? ... ber#p61963
@ <nRow> ,<nCol> IMAGE <ControlName> [ OF | PARENT <ParentWindowName> ] [ ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock> ] PICTURE <cPictureName> [ WIDTH <nWidth> ] [ HEIGHT <nHeight> ] [ STRETCH ] [ HELPID <nHelpId> ] [ INVISIBLE ] [ TRANSPARENT ]
[ BACKGROUNDCOLOR anBackgroundColor ] [ ADJUSTIMAGE ] [ TRANSPARENTCOLOR anTransparentColor ][ TOOLTIP <cToolTipText> ]
@ <nRow> ,<nCol> LABEL <ControlName> [ OF | PARENT <ParentWindowName> ] VALUE <cValue> [ ACTION | ONCLICK | ON CLICK
<ActionProcedureName> | <bBlock> ] [ WIDTH <nWidth> ] [ HEIGHT <nHeight> ] [ AUTOSIZE ] [ FONT <cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ] [ TOOLTIP <cToolTipText> ] [ BACKCOLOR <anBackColor> ] [ FONTCOLOR <anFontColor>]
[ TRANSPARENT ] [ RIGHTALIGN | CENTERALIGN ] [ HELPID <nHelpId> ] [ INVISIBLE ] [ ENDELLIPSES ] [ NOPREFIX ]
Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Mon Nov 30, 2020 5:28 pm
by mol
Try to find KDJ post. He was written solution when labels can get focus and tabstop
Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Mon Nov 30, 2020 8:08 pm
by danielmaximiliano
Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Mon Nov 30, 2020 9:48 pm
by serge_girard
Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Tue Dec 01, 2020 4:23 am
by AUGE_OHR
hi,
Thx for Answer.
i have read those link but all point to a "Workaroud" of Problem.
i talk about WM_KILLFOCUS and WM_SETFOCUS which will be fired by OS
WM_KILLFOCUS is not used "by Source" so how LOSTFOCUS work
WM_SETFOCUS is used in c:\hmg.3.4.4\SOURCE\h_windows.prg
Code: Select all
CASE nMsg == WM_SETFOCUS
i := ASCAN( _HMG_SYSDATA[ 67 ], hWnd )
but what is _HMG_SYSDATA[ 67 ]
---
it is more a general Question while i want to build "Own" Controls.
my Problem are Events so i have to figure out how it work in HMG / MiniGUI
under Xbase++ i got a "Super-CLASS" like XbpWindow() which handle all Property,Method and Events and have Callback Slot.
so when create a new CLASS i just inherit from XbpWindow() and must not "enhance" other Code like \SOURCE\h_windows.prg
Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?
Posted: Tue Dec 01, 2020 11:36 am
by srvet_claudio
Hi,
only controls that have keyboard interaction have focus, label and image do not have keyboard input.