LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post 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" :idea:
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post 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 ]
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post by mol »

Try to find KDJ post. He was written solution when labels can get focus and tabstop
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post by danielmaximiliano »

*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post by serge_girard »

There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post 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
have fun
Jimmy
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: LABEL and IMAGE : no GOTFOCUS / LOSTFOCUS ?

Post by srvet_claudio »

Hi,
only controls that have keyboard interaction have focus, label and image do not have keyboard input.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply