topic
stringlengths
1
63
text
stringlengths
1
577k
Bug in font management? [Solved]
Antonio, thank you. I will wait for the full btnbmp bugfix. EMG
Bug in font management? [Solved]
Antonio, [quote="Antonio Linares":1uqnklaa]Enrico, Please look for hOldFont in Class TBtnBmp where it is assigned and change it this way: hOldFont = SelectObject( ::hDC, ::oFont:hFont ) That solves it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1uqnklaa] I found two occurrences: [code=fw:1uqnklaa]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lBarBtn</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:1uqnklaa] and [code=fw:1uqnklaa]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// If( ::lBarBtn, ::oWnd:oWnd:oFont:hFont, ::oFont:hFont ) )</span></div>[/code:1uqnklaa] Do I have to change the first as it will look like the second? Please confirm. EMG
Bug in font management? [Solved]
I forgot to mention that I'm using the old btnbmp. EMG
Bug in font management? [Solved]
Enrico, I have emailed you the most recent version of the Class TBtnBmp, with the new Method Paint(), properly structured <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Have you received it ?
Bug in font management? [Solved]
Antonio, yes, I already answered: [url:sgcw7j0r]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=18&t=28499&start=45[/url:sgcw7j0r] EMG
Bug in fwerror.prg (Solved not a bug)
Antonio, please add the missing [color=#FF0000:2jukug59]r[/color:2jukug59]'s: [img:2jukug59]http&#58;//img28&#46;imageshack&#46;us/img28/158/fwerrorprg&#46;jpg[/img:2jukug59]
Bug in fwerror.prg (Solved not a bug)
Frank, That code was for Clipper, not for Harbour. In fact we can remove the Clipper part and leave it this way: function __LowMemError() return Eval( ErrorBlock(), _FWGenError( MEMORYLOW_ERROR ) ) //----------------------------------------------------------------------------// function _FWGenError( nError, cOperation )
Bug in fwerror.prg (Solved not a bug)
Antonio, ok, I agree. I was looking after the 'nExtMem()' crash and saw the missing r's, so at first I thought that was the reason, but obviously it wasn't! Thank you for clarification
Bug in labels
In the following sample the last character of the label is truncated: [code=fw:1cfjuy5h]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TRANSPARENT<br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Test"</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">CENTER</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1cfjuy5h] EMG
Bug in labels
Enrico, Fixed, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (uploaded to the repository) We may publish a revised version 11.03 with it
Bug in labels
Thank you, Antonio! EMG
Bug in labels
Dear Mr. Antonio, I re-download v11.03 then delete all obj/c and re-compile my project. Still having problem with redefine say.. [img:2tojycss]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/Say_bug_1103&#46;png[/img:2tojycss] Kind Regards, Frances
Bug in labels
Antonio , I have the same problem [url:2bw54xmy]http&#58;//img844&#46;imageshack&#46;us/i/immagineqc&#46;jpg/[/url:2bw54xmy] Regards MAurizio
Bug in labels
Hello, Please, when will Fivetech provide a fixed version. We need to update our FWH but there are many bugs they are not fixed and we need a stable product. Thank you.
Bug in labels
We have just published a revised FWH 11.03 build. It should be available to download in a few minutes, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug in latest FWH
The following sample bombs out with an error: [code:2u6rikcv]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oWnd, oBar DEFINE WINDOW oWnd DEFINE BUTTONBAR oBar OF oWnd 3D DEFINE BUTTON; OF oBar; FILE "C&#58;\FWH\BITMAPS\16x16\close&#46;bmp"; ACTION oWnd&#58;End&#40;&#41;; TOOLTIP "Close" ACTIVATE WINDOW oWnd RETURN NIL[/code:2u6rikcv] This is the error: [quote:2u6rikcv]Error BASE/1066 Argument error: conditional[/quote:2u6rikcv] This is the call stack: [quote:2u6rikcv]Stack Calls =========== Called from: BTNBMP.PRG => TBTNBMP:PAINT(0) Called from: BTNBMP.PRG => (b)TBTNBMP:TBTNBMP(0) Called from: BTNBMP.PRG => TBTNBMP:DISPLAY(0) Called from: CONTROL.PRG => TBTNBMP:HANDLEEVENT(0) Called from: WINDOW.PRG => _FWH(0) Called from: => UPDATEWINDOW(0) Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0) Called from: BUG3.prg => MAIN(18)[/quote:2u6rikcv] EMG
Bug in latest FWH
Enrico, Your sample works fine for me... fwh 2.8 + xHarbour builder oct. 2006
Bug in latest FWH
Yes, I know it was working fine with Oct 2006 build. The bug is in the latest, Nov 2006. EMG
Bug in latest FWH
Enrico, Please add this line: METHOD Paint() CLASS TBtnBmp ... DEFAULT ::lTransparent := .f. //this!
Bug in latest FWH
Antonio, I just found that if I copy/paste TBtnBmp class inside my sample PRG then it works fine without any changes. It seems that the source code is different from what it is in the LIB. EMG
Bug in latest FWH
Ok, it seems that your fix did the trick anyway. EMG
Bug in latest FWH
Enrico, Yes, you are right. Somehow the latest Class TBtnBmp didn't go into the LIB. We are going to publish the FWH build again. Thanks,
Bug in latest FWH
Thank you! EMG
Bug in mdichild menu [Fixed]
This bug is still there (ALT-1 does nothing, ALT-2 open Test&1, mdichild icon vanishes): [code=fw:295swjq1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />    <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">ENDMENU</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span>;<br />           <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Test"</span>;<br />           <span style="color: #0000ff;">MENU</span> oMenu<br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />             <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CREATECHILD<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CREATECHILD<span style="color: #000000;">&#40;</span> oMdi <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />    <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">ENDMENU</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oMdi;<br />           <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Child Test"</span>;<br />           <span style="color: #0000ff;">MENU</span> oMenu<br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />             <span style="color: #0000ff;">VALID</span> !GETKEYSTATE<span style="color: #000000;">&#40;</span> VK_ESCAPE <span style="color: #000000;">&#41;</span>;<br />             <span style="color: #0000ff;">MAXIMIZED</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:295swjq1] EMG
Bug in mdichild menu [Fixed]
[quote="Enrico Maria Giordano":15iukfwr]This bug is still there (ALT-1 does nothing, ALT-2 open Test&1, mdichild icon vanishes): [code=fw:15iukfwr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />    <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">ENDMENU</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span>;<br />           <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Test"</span>;<br />           <span style="color: #0000ff;">MENU</span> oMenu<br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />             <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CREATECHILD<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CREATECHILD<span style="color: #000000;">&#40;</span> oMdi <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />    <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">ENDMENU</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oMdi;<br />           <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Child Test"</span>;<br />           <span style="color: #0000ff;">MENU</span> oMenu<br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />             <span style="color: #0000ff;">VALID</span> !GETKEYSTATE<span style="color: #000000;">&#40;</span> VK_ESCAPE <span style="color: #000000;">&#41;</span>;<br />             <span style="color: #0000ff;">MAXIMIZED</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:15iukfwr] EMG[/quote:15iukfwr] Enrico, you are right This old bug is present for me I have not been forgotten You can see my first tests Remove characters of comment in lines 1412 at 1415 in menudraw.c [code=fw:15iukfwr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//if( bMdi ) //&& bPrev )</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// {</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//lpdis->rcItem.right -= 57;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// }</span><br />&nbsp;</div>[/code:15iukfwr]
Bug in mdichild menu [Fixed]
Any news? EMG
Bug in mdichild menu [Fixed]
Dear Enrico When MdiChild is created, locate the SYSMENU icon in the main menu bar. The items in the main menu are renumbered their order to (n + 1), but the menu has already been created before drawing. The order of creation and in the painting are different It is a problem that must be fixed in the creation of the table of accelerators At the moment [quote:1ovfrdf8] STATIC FUNCTION CREATECHILD( oMdi ) LOCAL oWnd, oMenu MENU oMenu 2007 MENUITEM "Changed&1" ACTION MSGINFO( "1" ) MENUITEM "Changed&2" ACTION MSGINFO( "2" ) MENUITEM "Changed&3" ACTION MSGINFO( "3" ) ENDMENU DEFINE WINDOW oWnd MDICHILD OF oMdi; TITLE "MDI Child Test"; MENU oMenu [b:1ovfrdf8]NOSYSMENU[/b:1ovfrdf8] ACTIVATE WINDOW oWnd; VALID !GETKEYSTATE( VK_ESCAPE ); MAXIMIZED RETURN NIL [/quote:1ovfrdf8]
Bug in mdichild menu [Fixed]
If I understood correctly, this is not possible as MDICHILDs are dinamically created after the creation of the main MDI window. EMG
Bug in mdichild menu [Fixed]
[quote="Enrico Maria Giordano":3fghboc2]If I understood correctly, this is not possible as MDICHILDs are dinamically created after the creation of the main MDI window. EMG[/quote:3fghboc2] NO The problem is with menu and SYSMENU ( locate ) of mdichild Table of accelerators is created with ( ALT + 1 ) as the first item As the MENUSYS icon is inserted ( now SYSMENU is first item ), the first item defined in the menu is now the second one (the accelerator table has not been modified), so it appears when you press ALT + 1, the SYSMENU and not the action of item & 1 If you add clausule NOSYSMENU, run OK
Bug in mdichild menu [Fixed]
Undestood. But with NOSYSMENU we don't have the three button on the right (minimize, restore and close) anymore. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Bug in mdichild menu [Fixed]
I know That's what needs to be solved
Bug in mdichild menu [Fixed]
Ok, thank you. EMG
Bug in mdichild menu [Fixed]
Fixed for next version
Bug in mdichild menu [Fixed]
Great! Many thanks! EMG
Bug in mdichild menu [Fixed]
Unfortunately the bug has moved here (note: MAXIMIZED is commented out): [code=fw:kzd41ffv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Test"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CREATECHILD<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CREATECHILD<span style="color: #000000;">&#40;</span> oMdi <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oWnd, oMenu<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Changed&3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MSGINFO</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oMdi;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MDI Child Test"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> !GETKEYSTATE<span style="color: #000000;">&#40;</span> VK_ESCAPE <span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MAXIMIZED</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:kzd41ffv] EMG
Bug in mdichild menu [Fixed]
Enrico, Explain your problem better with this example I have tried it and I think it works correctly
Bug in mdichild menu [Fixed]
With MAXIMIZED commented out, try pressing ALT-1 and you will see a message with 2 instead of 1. EMG
Bug in mdichild menu [Fixed]
Ok As I said in previous posts, it is not a problem of the menus, it's of the METHOD Menuchar CLASS TWindow, try with this modification [code=fw:w8ws8uoo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />                  <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span> oMenu:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TMDIFRAME"</span><br />                     <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span> oMenu:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWndActive</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TMDICHILD"</span> .and. ;<br />                        lAnd<span style="color: #000000;">&#40;</span> oMenu:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWndActive</span>:<span style="color: #000000;">nStyle</span>, WS_SYSMENU <span style="color: #000000;">&#41;</span><br />                        <span style="color: #00C800;">if</span> IsZoomed<span style="color: #000000;">&#40;</span> oMenu:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWndActive</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />                           nPos := n<br />                        <span style="color: #00C800;">else</span><br />                           nPos := n - <span style="color: #000000;">1</span><br />                        <span style="color: #00C800;">endif</span><br />                     <span style="color: #00C800;">else</span><br />                        nPos := n - <span style="color: #000000;">1</span><br />                     <span style="color: #00C800;">endif</span><br />                  <span style="color: #00C800;">else</span><br />                     nPos := n - <span style="color: #000000;">1</span><br />                  <span style="color: #00C800;">endif</span><br />                  <span style="color: #00C800;">return</span> nMakeLong<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:w8ws8uoo]
Bug in mdichild menu [Fixed]
Yes, it works, thank you. I look forward for a FWH update. EMG
Bug in message bar
In the following sample, the text "CHECKLIST" is not centered and the item background is not red: [code:yb3eexr7]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oWnd DEFINE WINDOW oWnd SET MESSAGE OF oWnd 2007 DEFINE MSGITEM OF oWnd&#58;oMsgBar; SIZE 70; COLOR CLR_BLACK, CLR_HRED; PROMPT "CHECKLIST" oWnd&#58;oMsgBar&#58;KeybOn&#40;&#41; oWnd&#58;oMsgBar&#58;DateOn&#40;&#41; oWnd&#58;oMsgBar&#58;ClockOn&#40;&#41; ACTIVATE WINDOW oWnd RETURN NIL[/code:yb3eexr7] EMG
Bug in message bar
Enrico, The item background color is not used if 2007 is specified (at least, not yet) Regarding the center of the text, we are using GetTextWidth() to calculate its position when painting it. But it seems that GetTextWidth() does not work fine or we are doing something wrong...
Bug in message bar
[quote="Antonio Linares":1z807snq]Enrico, The item background color is not used if 2007 is specified (at least, not yet)[/quote:1z807snq] Ok. [quote="Antonio Linares":1z807snq]Regarding the center of the text, we are using GetTextWidth() to calculate its position when painting it. But it seems that GetTextWidth() does not work fine or we are doing something wrong...[/quote:1z807snq] Ok, thank you. EMG
Bug in message bar
This is a possible fix: [code:310bmhww] if &#58;&#58;oMsgBar&#58;l2007 &#58;&#58;oMsgBar&#58;Say&#40; &#58;&#58;oMsgBar&#58;nHeight / 4 - 2,; nLeft - 1 + &#40; &#58;&#58;nWidth - GetTextWidth&#40; hDC, AllTrim&#40; &#58;&#58;cMsg &#41;, &#58;&#58;oFont&#58;hFont &#41; &#41; / 2,; AllTrim&#40; &#58;&#58;cMsg &#41;, If&#40; &#58;&#58;lActive, &#58;&#58;nClrText, &#58;&#58;nClrDisabled &#41;,; &#58;&#58;nClrPane, &#58;&#58;oFont, &#46;T&#46;, &#46;T&#46; &#41; WndBoxIn&#40; hDC, 2, nLeft - 4, &#58;&#58;oMsgBar&#58;nHeight - 2, nLeft - 3 &#41; else[/code:310bmhww] EMG
Bug in message bar
Possible fix with BitMap: if ::oMsgBar:l2007 ::oMsgBar:Say( ::oMsgBar:nHeight / 4 - 2,; nLeft + nBmpWidth - iif(nBmpWidth>0,7,1) + ( ::nWidth - GetTextWidth( hDC, AllTrim( ::cMsg ), ::oFont:hFont ) ) / 2,; AllTrim( ::cMsg ), If( ::lActive, ::nClrText, ::nClrDisabled ),; ::nClrPane, ::oFont, .T., .T. ) // nLeft - 1 + ( ::nWidth - GetTextWidth( hDC, AllTrim( ::cMsg ), ::oFont:hFont ) ) / 2,; WndBoxIn( hDC, 2, nLeft - 4, ::oMsgBar:nHeight - 2, nLeft - 3 ) elseRegards,Carlos Gallego
Bug in modal dialog
Please run the following test and click on the window: you will see that the normal highlight color of the selection bar of the browse is not shown anymore (it was in the previous FWH release). It is gray instead: [code=fw:3jo6r5o7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oWnd<br /><br />&nbsp; &nbsp; USE CUSTOMER<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> TEST<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; CLOSE<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> TEST<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">LISTBOX</span> FIELDS<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">CENTER</span> NOMODAL<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3jo6r5o7] EMG
Bug in modal dialog
It seems, that in a nomodal-dialog the first control looses the background color!?
Bug in modal dialog
Enrico, This change is required in Class TDialog. Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:yfkobems]http&#58;//img31&#46;imageshack&#46;us/img31/6739/captureufd&#46;png[/img:yfkobems]
Bug in modal dialog
This code seems to be the right one: [code=fw:2dmn3zez]<div class="fw" id="{CB}" style="font-family: monospace;">         <span style="color: #00C800;">if</span> ::<span style="color: #000000;">Initiate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> >= <span style="color: #000000;">1</span><br />               ::<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">PostMsg</span><span style="color: #000000;">&#40;</span> WM_SETFOCUS <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">endif</span><br />               <br />         ::<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <br />         ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// needed for resource dialogs </span><br /> </div>[/code:2dmn3zez]
Bug in modal dialog
Antonio, thats not a good way. You see, the focus-color are not gone if leaving the get. And also the focus goes always return to the first control of the folderpage if i return from another folderpage. As I say, this problem is only on NOWAIT-Dialogs!! The problem of the bolded say on transparent dialogs is also visible in this testdialog! [code=fw:3l3p0co3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> oDlg, oFld, oGet, cCombo, cTest := <span style="color: #ff0000;">"Hello world"</span>, cAnother := <span style="color: #ff0000;">"Another GET"</span><br /><br />SetGetColorFocus<span style="color: #000000;">&#40;</span> CLR_BLUE <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Antonio Test"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">300</span> TRANSPARENT<br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">19</span> <span style="color: #0000ff;">GET</span> cTest <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> CLR_HRED,CLR_GRAY<br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">5</span> FOLDEREX_ST oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&One"</span>, <span style="color: #ff0000;">"&Two"</span>, <span style="color: #ff0000;">"&Three"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>,<span style="color: #000000;">120</span><br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cTest <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">COLOR</span> CLR_HRED,CLR_GRAY<br />   @ <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">COMBOBOX</span> cCombo <span style="color: #0000ff;">PROMPTS</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"A"</span>,<span style="color: #ff0000;">"B"</span>,<span style="color: #ff0000;">"C"</span><span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />   @ <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> cAnother <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">COLOR</span> CLR_HRED,CLR_GRAY<br />   @ <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Bolder.. , when TAB changes the focus goes in-/outside the folder"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />   @ <span style="color: #000000;">7.2</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Ok"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>;<br />   <span style="color: #ff0000;">"BG-Color Get 1: "</span>+str<span style="color: #000000;">&#40;</span>oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrpane</span><span style="color: #000000;">&#41;</span>+CRLF+CRLF+;<br />   <span style="color: #ff0000;">"BG-Color Get 2: "</span>+str<span style="color: #000000;">&#40;</span>oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrpane</span><span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #B900B9;">//NOWAIT</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3l3p0co3]
Bug in modal dialog
Günther, This code satisfies Enrico's example and your example also: [code=fw:3v8nj8vs]<div class="fw" id="{CB}" style="font-family: monospace;">         <span style="color: #00C800;">if</span> ::<span style="color: #000000;">Initiate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            ::<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br /> </div>[/code:3v8nj8vs] Still we need to find why the first control is not getting the right color. Still I have to check the FixSays()
Bug in modal dialog
Antonio, thanks! I found, the bolder-effect on says are ONLY on TfolderEx NOT on Tfolder and ONLY on the first change outside from the folderex. If i change once from one folderdialog to another, the ugly effect is gone!
Bug in modal dialog
[quote:14f03z5b]Still we need to find why the first control is not getting the right color. Still I have to check the FixSays()[/quote:14f03z5b] Any results, Antonio?
Bug in modal dialog
Günther, We are doing more tests to solve the pending issues
Bug in modal dialog
[quote="Antonio Linares":3p3x428l]Günther, We are doing more tests to solve the pending issues[/quote:3p3x428l] Antonio , I really don't know is that related , but in folderex created on dialog aren't working other languages , russian as sample . With folderex on windows it's working , but on dialogs not . So if I let prompts for folderex on dialog : DEFINE DIALOG oDlg RESOURCE "DIALOG1" REDEFINE FOLDEREX oFld1 ID 110 OF oDlg; PROMPT "&Clipper", "&???????" DIALOGS "Sub1", "Sub2" It not will work ( second tab - in russian "Windows" ). Please , turn attention for that . With best regards !
Bug in nDbl2Flt()
This is the fixed line: [code:1zd0rvdg]ui = &#40; &#40; short * &#41;&#40; &d &#41; &#41;&#91;3&#93; & 0xfff0; // Get exponent[/code:1zd0rvdg] Note short type instead of int. EMG
Bug in nDbl2Flt()
Enrico, Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug in navigation key VK_ENTER
In the following sample, please click on the checkbox and then hit Enter on the keyboard. The focus doesn't go to the button. It works fine without a TFolder. I'm using FWH 11.11 and have the manifest file in the resources. [code=fw:39e8yi73]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oDlg, oFld, oBtn<br /><br />    <span style="color: #00C800;">LOCAL</span> lVar := .F.<br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />           <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"FOLDER"</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">FOLDER</span> oFld;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg;<br />             <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"Test"</span>;<br />             <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"TEST"</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span>;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>;<br />             FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen.bmp"</span>;<br />             NOBORDER<br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> lVar;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Close"</span>;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>;<br />             <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span>;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg;<br />             FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen.bmp"</span>;<br />             NOBORDER<br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span>;<br />             <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg;<br />             <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />             <span style="color: #0000ff;">CENTER</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:39e8yi73] [code=fw:39e8yi73]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">FOLDER</span> <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">49</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">365</span>, <span style="color: #000000;">295</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Folder test"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br /><span style="color: #000000;">&#123;</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">101</span>, <span style="color: #ff0000;">"SysTabControl32"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">265</span>, <span style="color: #000000;">195</span><br /> PUSHBUTTON <span style="color: #ff0000;">"&Close"</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">275</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">15</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">102</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">280</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">25</span><br /><span style="color: #000000;">&#125;</span><br /><br />TEST <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">49</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">365</span>, <span style="color: #000000;">295</span><br /><span style="color: #0000ff;">STYLE</span> WS_CHILD<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br /><span style="color: #000000;">&#123;</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">101</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">25</span><br /> AUTOCHECKBOX <span style="color: #ff0000;">"Checkbox"</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">97</span>, <span style="color: #000000;">74</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">12</span><br /> PUSHBUTTON <span style="color: #ff0000;">"Button"</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">103</span>, <span style="color: #000000;">134</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br /><span style="color: #000000;">&#125;</span></div>[/code:39e8yi73] EMG
Bug in navigation key VK_ENTER
enrico 11.12 it work ok. click in the checkbox and press enter, the button Close have the focus. the only bad thing is what press tab many time, and only controls out of folder have focus, only press a control inside the folder and the chckbox have focus. salu2
Bug in navigation key VK_ENTER
hi have this mod in tcheckbox [code=fw:2gqzyhn6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> KeyChar<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TCheckbox<br /><br />   <span style="color: #00C800;">IF</span> nKey == VK_RETURN<br />      ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyChar</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TCheckbox<br /><br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />   <span style="color: #00C800;">CASE</span> nKey == VK_UP<br />      <span style="color: #00C800;">IF</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />         ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoPrevCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">CASE</span> nKey == VK_DOWN<br />      <span style="color: #00C800;">IF</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />         ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyDown</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br /> </div>[/code:2gqzyhn6] and in tbutton [code=fw:2gqzyhn6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> GetDlgCode<span style="color: #000000;">&#40;</span> nLastKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TButton<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nLastKey</span> := nLastKey<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span> != <span style="color: #00C800;">nil</span> .and. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TFOLDER"</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TFOLDEREX"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> DLGC_WANTALLKEYS<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:2gqzyhn6]
Bug in navigation key VK_ENTER
Thank you Carlos! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Bug in navigation key VK_ENTER
Carlos, METHOD KeyDown( nKey, nFlags ) CLASS TCheckbox added for 12.02, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug in navigation key VK_ENTER
gracias antonio por considerar mis fix. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> estoy realizando una validacion del correcto movimiento de foco en radiobuttons en folders, los cuales de momento me estan fallando, preparare un demo de esto pronto. salu2 carlos vargas
Bug in navigation key VK_ENTER
antonio, look this fix. [code=fw:29qwp1pp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">CLASS</span> TRadioFROM TControl<br />&nbsp; &nbsp; ....<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> KeyChar<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;....<br /><span style="color: #00C800;">endclass</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> KeyChar<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRadio<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nKey == VK_RETURN<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyChar</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;<br />&nbsp;</div>[/code:29qwp1pp]
Bug in navigation key VK_ENTER
Antonio, please run this code, the second page in folder, look the jump of focus in radioitems. in first radioitem if you use the left or right keys the focus junmp in radioitem is is corrects. but if you use up or down key jump to first gets. salu2 [code=fw:3lq7vf3w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />        <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />        <span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />           <span style="color: #00C800;">local</span> oDlg, oFnt, oFld, lVal := .T., cVar := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#41;</span>, cVar2 := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#41;</span>, nNivel:=<span style="color: #000000;">1</span>, lVar1:=.f., lVar2:=.t., lVar3:=.f.<br /><br />           <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br />           <br />           <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">FONT</span> oFnt<br /><br />           @ <span style="color: #000000;">0.5</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">120</span><br /><br />           @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Hola1"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />           <br />           @ <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span>      cVar                <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />           <br />           @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">CHECKBOX</span> lVal <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Test"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br />           @ <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Hola2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />           @ <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span>      cVar2               <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>      <br /><br />          @ <span style="color: #000000;">1</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"&Name:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />          @ <span style="color: #000000;">1</span>,  <span style="color: #000000;">6</span> <span style="color: #0000ff;">GET</span> cVar <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />          @ <span style="color: #000000;">2</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"&Address:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />          @ <span style="color: #000000;">2</span>,  <span style="color: #000000;">6</span> <span style="color: #0000ff;">GET</span> cVar2 <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>  <br /><br />          @ <span style="color: #000000;">4</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">CHECKBOX</span> lVar1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&FivePro"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">11</span><br />          @ <span style="color: #000000;">5</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">CHECKBOX</span> lVar2  <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Dialog"</span>  <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">11</span><br />          @ <span style="color: #000000;">6</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">CHECKBOX</span> lVar3 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Objects"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">11</span><br /><br />          @ <span style="color: #000000;">4</span>,  <span style="color: #000000;">9</span> <span style="color: #0000ff;">RADIO</span> nNivel <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Novice"</span>, <span style="color: #ff0000;">"A&vanced"</span>, <span style="color: #ff0000;">"&Expert"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />       <br />           @ <span style="color: #000000;">7.3</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />           <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />        <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />     <br /> </div>[/code:3lq7vf3w]
Bug in navigation key VK_ENTER
umm the code is the same, but the efect is diferent. <!-- s:-o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":-o" title="Surprised" /><!-- s:-o --> [code=fw:3u2sqi63]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRadio<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> nKey == VK_DOWN .or. nKey == VK_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">GoNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">nOption</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> nKey == VK_UP .or. nKey == VK_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">GoPrev</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">nOption</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyDown</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3u2sqi63]
Bug in navigation key VK_ENTER
[quote="carlos vargas":1hq0duob]antonio, look this fix. [code=fw:1hq0duob]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">CLASS</span> TRadioFROM TControl<br />    ....<br />   <span style="color: #00C800;">METHOD</span> KeyChar<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br />   ....<br /><span style="color: #00C800;">endclass</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> KeyChar<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRadio<br /><br />   <span style="color: #00C800;">IF</span> nKey == VK_RETURN<br />      ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyChar</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /> </div>[/code:1hq0duob][/quote:1hq0duob] Carlos, Implementado, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug in navigation key VK_ENTER
Carlos, Tu ejemplo aqui va bien con FWH 12.01. No hay diferencia entre flecha izq, der, arr, aba y luego pulsar enter
Bug in navigation key VK_ENTER
aca me falla, el movimiento entre items de un radio group, funciona bien con las teclas izq y der, hacen el ciclo entre los items, pero usando arriba o abajo, al llegar al ultimo item, el foco salta hacia el primer get del dialogo contenedor. esto en folder. salu2 carlos vargas
Bug in navigation key VK_ENTER
Carlos, Con que versión de FWH estás probando ?
Bug in navigation key VK_ENTER
11.12 salu2 carlos vargas
Bug in navigation key VK_ENTER
Carlos, Aqui tienes tu ejemplo construido con las librerias más recientes: [url:3twb5w6x]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=carlos2&#46;zip&can=2&q=[/url:3twb5w6x] por favor pruébalo y me comentas, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug in navigation key VK_ENTER
lo mismo antonio, se da el mismo problema. preparare un video para que observes el error. salu2
Bug in oDlg:bGotFocus
Running the following sample you can hear a beep only when the dialog is closed but not when it gets the focus: [code:1yh8ig11]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oDlg LOCAL cVar &#58;= SPACE&#40; 30 &#41; DEFINE DIALOG oDlg oDlg&#58;bGotFocus = &#123; || Tone&#40; 440, 1 &#41; &#125; @ 1, 1 GET cVar ACTIVATE DIALOG oDlg; CENTER RETURN NIL[/code:1yh8ig11] EMG
Bug in oDlg:bGotFocus
Enrico, It does not look as a bug, as the dialog never gets the focus, just momentary when it is going to be closed. All the time a control has the focus.
Bug in oDlg:bGotFocus
Ok, but this is not consistent with the behavior of bLostFocus. Why? EMG
Bug in oDlg:bGotFocus
Enrico, Do you mean with oDlg:bLostFocus ?
Bug in oDlg:bGotFocus
Yes. oDlg:bLostFocus is evaluated when a dialog losts the focus even if there are controls on it while oDlg:bGotFocus isn't. EMG
Bug in oDlg:bGotFocus
Enrico, I have been reviewing the way the Windows msgs are routed by FWH internals, and we don't make any distinction from GotFocus and LostFocus(), so it seems its a Windows behavior for dialogboxes, as Class TDialog code just does this: [code:3i3fvwkx] METHOD GotFocus&#40;&#41; INLINE &#58;&#58;lFocused &#58;= &#46;t&#46;,; If&#40; &#58;&#58;bGotFocus != nil, Eval&#40; &#58;&#58;bGotFocus &#41;, nil &#41; &#46;&#46;&#46; METHOD LostFocus&#40;&#41; INLINE &#58;&#58;lFocused &#58;= &#46;f&#46;,; If&#40; &#58;&#58;bLostFocus != nil, Eval&#40; &#58;&#58;bLostFocus &#41;, nil &#41; [/code:3i3fvwkx]
Bug in oDlg:bGotFocus
Ok, no problems. Thank you. EMG
Bug in oDlg:bGotFocus
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25706&start=30#p143679">viewtopic.php?f=3&t=25706&start=30#p143679</a><!-- l -->
Bug in piccolo testar.prg 32/bit
Vi allego questo piccolo test che mi va in 16bit ma non mi va in 32bit (harbour): *------------------ #include "FiveWin.ch" //----------------------------------------------------------------------------// function Main() local oDlg, oBrw local aData := { { "1", "Cliente", "=", "123456" },; { "2", "Direccion", "$", "Spain" },; { "3", "Telefono", "<>", "889977665" } } DEFINE DIALOG oDlg FROM 0, 0 TO 30, 100 @ 1, 1 LISTBOX oBrw FIELDS aData[ oBrw:nAt ][ 1 ],; aData[ oBrw:nAt ][ 2 ],; aData[ oBrw:nAt ][ 3 ],; aData[ oBrw:nAt ][ 4 ] OF oDlg ; SIZE 150, 100 oBrw:SetArray( aData ) @ 9 , 9 BUTTON "&End" OF oDlg ACTION oDlg:End() ACTIVATE DIALOG oDlg CENTERED return nil *------- In 32 bit mi da questo errore: Application =========== Path and name: C:\FWH24\SAMPLES\testar.exe (32 bits) Size: 951,296 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 05/15/06, 21:54:07 Error description: Error BASE/1002 Alias does not exist Mentre in fw24 tutto ok! Grazie Piscicelli/Zingoni
Bug in piccolo testar.prg 32/bit
Confermato. Se vuoi segnala il problema ad Antonio nel forum in inglese. EMG
Bug in preview modal
In the sample testpre2.prg, if you build a preview and then close the main window, the preview is frozen and you have to kill it using Task Manager. EMG
Bug in preview modal
I try now. on the xp professional not made this error. Perhaps you use w7 or Vista?
Bug in preview modal
[quote="Enrico Maria Giordano":2l0smmu3]In the sample testpre2.prg, if you build a preview and then close the main window, the preview is frozen and you have to kill it using Task Manager. EMG[/quote:2l0smmu3] Sorry, I messed up the real problem. This is a correct description (there are two): 1. The sample testpre2.prg should show a non-modal preview but it shows a modal one instead (ie. it's possible to put the focus back to the main window). 2. Adding the MODAL clause to the PRINT command, the preview freezes when the main window is closed. EMG
Bug in print preview (fixed)
Running the following sample I can see no bitmaps on the toolbar, only empty buttons: [code:2zficzhu]#include "Fivewin&#46;ch" #include "Report&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oRpt USE C&#58;\XHARBOUR\TEST REPORT oRpt PREVIEW COLUMN TITLE "FIRST"; DATA FIELD -> first COLUMN TITLE "LAST"; DATA FIELD -> last COLUMN TITLE "STREET"; DATA FIELD -> street COLUMN TITLE "CITY"; DATA FIELD -> city END REPORT ACTIVATE REPORT oRpt CLOSE RETURN NIL[/code:2zficzhu] EMG
Bug in print preview (fixed)
Enrico, Please download FWH again and test it again. It was a last minute bug that got on the build but has been already fixed.
Bug in print preview (fixed)
All ok, bug solved, thank you! EMG
Bug in radio button transparence
In the following sample the SAY is transparent while the RADIO isn't: [code:2p7n0stg]#include "Fivewin&#46;ch" FUNCTION MAIN() LOCAL oDlg LOCAL nVar LOCAL hBmp &#58;= READBITMAP( 0, "c&#58;\fwh\bitmaps\fivewin&#46;bmp" ) DEFINE DIALOG oDlg; TRANSPARENT @ 1, 5 SAY "This is a test" @ 2, 5 RADIO nVar; PROMPT "Test1", "Test2" ACTIVATE DIALOG oDlg; ON PAINT PALBMPDRAW( hDC, 0, 0, hBmp ); CENTER DELETEOBJECT( hBmp ) RETURN NIL[/code:2p7n0stg] EMG
Bug in radio button transparence
Enrico, Transparency has to be used with brushes. It is a Windows API limitation, not a bug. This is the right way to do it: [code:32gox351] #include "Fivewin&#46;ch" FUNCTION MAIN() LOCAL oDlg, oBrush LOCAL nVar DEFINE BRUSH oBrush FILENAME "c&#58;\fwh\bitmaps\fivewin&#46;bmp" DEFINE DIALOG oDlg; TRANSPARENT BRUSH oBrush @ 1, 5 SAY "This is a test" @ 2, 5 RADIO nVar; PROMPT "Test1", "Test2" ACTIVATE DIALOG oDlg oBrush&#58;End() RETURN NIL [/code:32gox351] [url=http&#58;//imageshack&#46;us:32gox351][img:32gox351]http&#58;//img49&#46;imageshack&#46;us/img49/367/captureev1&#46;png[/img:32gox351][/url:32gox351]
Bug in radio button transparence
Ok, thank you. EMG
Bug in text control after TXBrowse() mouse wheel scrolling??
I recently noticed in my application that if I scroll to the bottom of a TXBrowse() display with the mouse wheel, then edit one of the text controls in ANY form, the SPACE bar results in a "2" being typed.The mallorca.prg sample program shows exactly the same problem. If you launch it, spin the mouse wheel to move the browse cursor to the last row, double click on a data row of the Description column, and press the SPACE bar, you should see "2's" typed.Note that it is only the mouse wheel which causes this. Getting to the last TXBrowse() row using the down arrow does not cause the problem.I have the latest FiveWin and Harbour builds.Can anyone else reproduce this or is there a problem with my environment? Thanks!
Bug in text control after TXBrowse() mouse wheel scrolling??
Patrick,I remember another message thread where 2's were mysteriously appearing, but I think it was under different circumstances. Try searching the forum (this section).Regards,James
Bug in text control after TXBrowse() mouse wheel scrolling??
Yes I had the same problem. Difference it was a 3. The number of spaces the scroll skips is entered in the get. Got redi of it with this function[code:160lanfh] function WheelScroll&#40;&#41; return nil //ScrLines[/code:160lanfh]The code will set the scroll to one line at a time. It is a bug and needs to be fixed.Harvey
Bug in text control after TXBrowse() mouse wheel scrolling??
Hey thanks Harvey, that worked great!-Patrick
Bug in text control after TXBrowse() mouse wheel scrolling??
Somehow this code in source\function\valblank.prg is related with the bug:[code:gmt04jgt] // oReg&#58;= TReg32&#40;&#41;&#58;New&#40; HKEY_CURRENT_USER, "Control Panel\Desktop" &#41; // nScrLines &#58;= oReg&#58;Get&#40; "WheelScrollLines" &#41; // oReg&#58;Close&#40;&#41; [/code:gmt04jgt]Until we discover what exactly happens with it, we have to comment them.
Bug in text control after TXBrowse() mouse wheel scrolling??
Antonio,I am guessing the value of nScrLines is somehow ending up in the GET.James
Bug in the new 2007 clause
This is the sample. If you uncomment the 2007 clause the bitmap will be shifted up. [code:2m22kxux]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oWnd, oBar DEFINE WINDOW oWnd DEFINE BUTTONBAR oBar OF oWnd //2007 DEFINE BUTTON OF oBar; FILE "C&#58;\FWH\BITMAPS\CLIENT&#46;BMP" ACTIVATE WINDOW oWnd RETURN NIL[/code:2m22kxux] EMG
Bug in the new 2007 clause
Enrico, Fixed: TransBmp( ::hBitmap1, nBmpWidth( ::hBitmap1 ), nBmpHeight( ::hBitmap1 ), nZeroZeroClr, ::hDC,; ( ::nWidth / 2 ) - ( nBmpWidth( ::hBitmap1 ) / 2 ) + If( ::lPressed, 2, 1 ),; Max( 0, ( ::nHeight / 3 ) - ( nBmpHeight( ::hBitmap1 ) / 2 ) + If( ::lPressed, 2, 1 ) ),; nBmpWidth( ::hBitmap1 ), nBmpHeight( ::hBitmap1 ) ) many thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We plan to publish a modified 7.10 build this same week with late-changes on Class TBtnBmp
Bug in the new 2007 clause
Thank you! EMG