topic
stringlengths
1
63
text
stringlengths
1
577k
Bcc72 Prsht.h resource compile error
Antonio This is the only error I get when I compile my .rc files [code=fw:339jotpz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WORKORD.RC<br />WORKRPT.RC<br />WORKTECH.RC<br />WORKVEH.RC<br />WOTIRE.RC<br />WRKADD.RC<br />xplook.rc<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> file<span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span> copied.<br />Borland <span style="color: #0000ff;">Resource</span> Compiler &nbsp;Version <span style="color: #000000;">5.40</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1990</span>, <span style="color: #000000;">1999</span> Inprise Corporation. &nbsp;All rights reserved.<br /><br />Error combaseapi.h <span style="color: #000000;">283</span> <span style="color: #000000;">9</span>: <span style="color: #000000;">Symbol</span> PURE is already defined. Redefinition is not the same<br />done!<br />&nbsp;</div>[/code:339jotpz] In order to eliminate this error I just rem'd out line 283 [code=fw:339jotpz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#if !defined<span style="color: #000000;">&#40;</span>BEGIN_INTERFACE<span style="color: #000000;">&#41;</span><br /><br />#if defined<span style="color: #000000;">&#40;</span>_MPPC_<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> BEGIN_INTERFACE &nbsp; &nbsp; &nbsp; void &nbsp; &nbsp;*b;<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> END_INTERFACE<br />#else<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> BEGIN_INTERFACE<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> END_INTERFACE<br />#endif<br />#endif<br /><br /><br /><span style="color: #B900B9;">// #define PURE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// <------ line 283</span><br /><span style="color: #00D7D7;">#define</span> THIS_ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INTERFACE</span> FAR* This,<br /><span style="color: #00D7D7;">#define</span> THIS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INTERFACE</span> FAR* This<br />#ifdef CONST_VTABLE<br />#undef CONST_VTBL<br /><span style="color: #00D7D7;">#define</span> CONST_VTBL const<br />&nbsp;</div>[/code:339jotpz] Thanks Rick Lipkin
Bcc72 Prsht.h resource compile error
Can I have the RC file to test here? EMG
Bcc72 Prsht.h resource compile error
Enrico The e-mail is on its way to you .. I included both header files and have marked the locations I rem'd out. Rick Lipkin
Bcc72 Prsht.h resource compile error
Sorry Rick, I need the .RC file not the .H files (that I already have in my BCC72, of course). EMG
Bcc72 Prsht.h resource compile error
Enrico I have sent you my contribution sample AdoRick.prg and AdoRick.rc and have added the Resedit include files to the .rc .. see below. Rick Lipkin [code=fw:2wplzzw7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Generated by ResEdit 1.6.6</span><br /><span style="color: #B900B9;">// Copyright (C) 2006-2015</span><br /><span style="color: #B900B9;">// <!-- m --><a class="postlink" href="http://www.resedit.net">http://www.resedit.net</a><!-- m --></span><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><span style="color: #00D7D7;">#include</span> <richedit.h><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"resource.h"</span><br /><br />CUSTOMER <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">13</span>, <span style="color: #000000;">538</span>, <span style="color: #000000;">356</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;">"Arial"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">109</span>, <span style="color: #ff0000;">"TFolderex"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">524</span>, <span style="color: #000000;">308</span><br /><span style="color: #000000;">&#125;</span><br />CUSTVIEW <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">513</span>, <span style="color: #000000;">311</span><br /><span style="color: #0000ff;">STYLE</span> WS_CHILD<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;LTEXT <span style="color: #ff0000;">"Customer Type"</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">22</span>, SS_NOPREFIX | WS_GROUP<br />&nbsp;CONTROL <span style="color: #ff0000;">" &nbsp;Individual &nbsp; "</span>, <span style="color: #000000;">150</span>, <span style="color: #ff0000;">"BUTTON"</span>, BS_AUTORADIOBUTTON, <span style="color: #000000;">46</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">12</span><br />&nbsp;CONTROL <span style="color: #ff0000;">" &nbsp;Commercial"</span>, <span style="color: #000000;">151</span>, <span style="color: #ff0000;">"BUTTON"</span>, BS_AUTORADIOBUTTON, <span style="color: #000000;">46</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">63</span>, <span style="color: #000000;">12</span><br />&nbsp;CONTROL <span style="color: #ff0000;">"Customer Id"</span>, <span style="color: #000000;">111</span>, <span style="color: #ff0000;">"STATIC"</span>, SS_CENTER | SS_NOPREFIX | WS_BORDER | WS_GROUP, <span style="color: #000000;">112</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">94</span>, <span style="color: #000000;">10</span><br />&nbsp;EDITTEXT <span style="color: #000000;">152</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">94</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | NOT WS_TABSTOP | WS_BORDER<br />&nbsp;LTEXT <span style="color: #ff0000;">"Company or Last Name"</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">10</span>, SS_NOPREFIX | WS_GROUP<br />&nbsp;LTEXT <span style="color: #ff0000;">"First Name"</span>, <span style="color: #000000;">113</span>, <span style="color: #000000;">119</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">73</span>, <span style="color: #000000;">10</span>, SS_NOPREFIX | WS_GROUP<br />&nbsp;EDITTEXT <span style="color: #000000;">153</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br />&nbsp;EDITTEXT <span style="color: #000000;">154</span>, <span style="color: #000000;">117</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">76</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br />&nbsp;GROUPBOX <span style="color: #ff0000;">""</span>, <span style="color: #000000;">196</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">-2</span>, <span style="color: #000000;">213</span>, <span style="color: #000000;">304</span>, BS_GROUPBOX<br />&nbsp;CONTROL <span style="color: #ff0000;">"Customer Info"</span>, <span style="color: #000000;">172</span>, <span style="color: #ff0000;">"TXBrowse"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, <span style="color: #000000;">221</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">290</span>, <span style="color: #000000;">215</span><br /><span style="color: #000000;">&#125;</span><br />SERVVIEW <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">436</span>, <span style="color: #000000;">311</span><br /><span style="color: #0000ff;">STYLE</span> WS_CHILD<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;LTEXT <span style="color: #ff0000;">"Company or Last Name"</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">10</span>, SS_NOPREFIX | WS_GROUP<br />&nbsp;EDITTEXT <span style="color: #000000;">120</span>, <span style="color: #000000;">24</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">12</span>, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2wplzzw7]
Bcc72 Prsht.h resource compile error
I simply commented out these lines from the .RC: [code=fw:361sha1q]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//#include <windows.h></span><br /><span style="color: #B900B9;">//#include <commctrl.h></span><br /><span style="color: #B900B9;">//#include <richedit.h></span><br /><span style="color: #B900B9;">//#include "resource.h"</span></div>[/code:361sha1q] And now your sample compiles and runs fine here. EMG
Bcc72 Prsht.h resource compile error
Enrico I realize that you can take out the include files and I wish I had a 32\64 bit resource editor like Resource Workshop .. but unfortunately, for Resedit to work properly, Resedit needs to see those include files in the .rc. I have hundreds of .rc's configured to open under Resedit .. I wish I have a better resource editor choice. Rick Lipkin
Bcc72 Prsht.h resource compile error
Ok, understood. EMG
Bcc72 Prsht.h resource compile error
[quote="Rick Lipkin":1oreb9hy]To fix in line 283 of Combaseapi.h rem out the entire line // #define PURE[/quote:1oreb9hy] Severe warning! With this change BCC no longer compiles C modules! So, never ever modify the include files of your C compiler! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Bcc72 Prsht.h resource compile error
Enrico I have been searching for another Resource Editor other than Resedit that has no Include dependencies .. On a side note .. the ResEdit.net website has been hacked and has been blacklisted. I downloaded a new verson of Resedit last week and I ended up getting a terrible virus that wrecked my laptop. Needless to say I had to backup and re-format my laptop. I have downloaded Resource builder which does not seem to have any Include dependencies .. however I did not like the layout of the interface so I removed it. I could download Pelles C, but I just hate to install another full IDE and C++ compiler just to get the resource editor. If you know of another Resource Editor you can recommend, I would be grateful! Thanks Rick Lipkin
Bcc72 Prsht.h resource compile error
[quote="Rick Lipkin":2hlav0r9]Enrico I have been searching for another Resource Editor other than Resedit that has no Include dependencies .. On a side note .. the ResEdit.net website has been hacked and has been blacklisted. I downloaded a new verson of Resedit last week and I ended up getting a terrible virus that wrecked my laptop. Needless to say I had to backup and re-format my laptop.[/quote:2hlav0r9] <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> [quote="Rick Lipkin":2hlav0r9]If you know of another Resource Editor you can recommend, I would be grateful![/quote:2hlav0r9] I wrote my own resource editor but it's in Italian language and it's tailored on my needs: [url:2hlav0r9]http&#58;//www&#46;emagsoftware&#46;it/EmagRe154&#46;zip[/url:2hlav0r9] EMG
Bcc72 Prsht.h resource compile error
Enrico Thank you VERY much! I will check it out. Rick Lipkin
Bcc72 Prsht.h resource compile error
Enrico, great work, congratulations <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> An english version would be very useful
Bcc72 Prsht.h resource compile error
Thank you. I'll think about it. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Bcc72 Prsht.h resource compile error
Enrico, thanks What do I do wrong? I am not allowed to use it [img:3i6tw3df]https&#58;//s22&#46;postimg&#46;org/wcybaa9kh/emag01&#46;png[/img:3i6tw3df]
Bcc72 Prsht.h resource compile error
Can you send me the offending RC file? Keep in mind that my resource editor is currently compatible with CONTROL type statements only. EMG
Bcc73
To All Just downloaded Bcc73 32 bit and I am pleased to let everyone know there is only one issue ( like bcc72 ) .. which only occurs if you Compile .rc's in your link script .. Like Bcc72 the same modification needs to be made to \bcc73\include\windows\sdk\Prsht.h by removing the trailing backslash on line 184. [quote:1w1kqhmg] To fix in line 184 of Prsht.h remove the trailing / LPFNPSPCALLBACKW pfnCallback; \ UINT *pcRefParent; // \ <--- remove trailing backslash line 184 [/quote:1w1kqhmg] You can use Bcc32.Cfg and Ilink32.cfg from your Bcc72 setup .. just edit the new path to Bcc73. Rick Lipkin
Bcc73
Sr. Rick, Compiling... Harbour 3.2.0dev (r1601050904) Copyright (c) 1999-2015, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Compiling 'testdlg.prg' and generating preprocessed output to 'testdlg.ppo'... Lines 4708, Functions/Procedures 1 Generating C source output to 'testdlg.c'... Done. Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc. testdlg.c: Error E2209 c:\harbour\include\hbdefs.h 52: Unable to open include file 'stdarg. h' Error E2209 c:\harbour\include\hbdefs.h 53: Unable to open include file 'stdio.h ' Error E2209 c:\harbour\include\hbdefs.h 54: Unable to open include file 'stdlib. h' Error E2209 c:\harbour\include\hbdefs.h 55: Unable to open include file 'string. h' Error E2209 c:\harbour\include\hbdefs.h 56: Unable to open include file 'limits. h' Error E2209 c:\harbour\include\hbdefs.h 75: Unable to open include file 'stdint. h' Warning W8017 c:\harbour\include\hbdefs.h 526: Redefinition of 'HB_LONG_LENGTH' is not identical Error E2257 c:\harbour\include\hbdefs.h 557: , expected Error E2257 c:\harbour\include\hbdefs.h 619: , expected Error E2451 testdlg.c 25: Undefined symbol 'NULL' Error E2141 testdlg.c 25: Declaration syntax error Error E2190 testdlg.c 25: Unexpected } Error E2040 testdlg.c 25: Declaration terminated incorrectly Error E2190 testdlg.c 43: Unexpected } Error E2109 testdlg.c 43: Not an allowed type in function hb_vm_SymbolInit_TESTD LG *** 14 errors in Compile *** * Linking errors *
Bcc73
please review bcc32.cfg, and modify the path.
Bcc73
Obrigado Carlos.
Bcc73
Carlos, ao usar HB_COMPILER() Me retorna Borland/Embarcadero c++ 7.0 (32 bit) não deveria ser 7.3? gracias!
Bcc73
[img:1klrzvb6]http&#58;//i&#46;imgur&#46;com/GOPdqX6&#46;png[/img:1klrzvb6] [code=fw:1klrzvb6]<div class="fw" id="{CB}" style="font-family: monospace;">?HB_Compiler<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,OS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,HB_BuildInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span></div>[/code:1klrzvb6]
Bcc73
i build my harbour and xharbour compilers. [code=fw:dimjmqgu]<div class="fw" id="{CB}" style="font-family: monospace;">?HB_Compiler<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:dimjmqgu] return the c compiler used for build the compiler not the exe.
Bcc73
To All In order for HB_Compiler() to work properly .. you have to use the matching xHarbor build for Bcc73. You can go to xHarbour.org <!-- m --><a class="postlink" href="http://xharbour.org/index.asp?page=download/windows/binaries_win">http://xharbour.org/index.asp?page=down ... naries_win</a><!-- m --> Look for 10194 Bcc7.30 or you can send Mel Smith a note to allow you to access his site for Harbour and xHarbour <!-- m --><a class="postlink" href="http://whosaway.com/">http://whosaway.com/</a><!-- m --> Rick Lipkin
Bcc73
After: <!-- m --><a class="postlink" href="http://whosaway.com/">http://whosaway.com/</a><!-- m --> Worked perfect <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Rick, Carlos: Would you know which improvements to use BCC73?
Bcc73
Hi Carlos. I had just download an evaluation versión from Embarcadero. (for evaluation only) The message still show Versión 7.0 an the Windows versión it's tha same of yours. Any suggestion? Regards Ruben Fernandez
Bcc73
[url:3v91a64g]http&#58;//www&#46;xharbour&#46;org[/url:3v91a64g] EMG
Bcc73
Thank you Enrico. Regards Ruben Dario Fernandez
Bcc73
Master Enrico, porquê me muestra BCC7.2 ? Estoy con la versión correcta. [code=fw:3d7xjxwd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />I<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\c</span>rtl"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\d</span>inkumware"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\r</span>tl"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>dk"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>dk<span style="color: #000000;">\a</span>tl"</span><br />-L<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\l</span>ib"</span>;<span style="color: #ff0000;">"C:<span style="color: #000000;">\B</span>CC73<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\p</span>sdk"</span><br />-g0<br />&nbsp;</div>[/code:3d7xjxwd] [img:3d7xjxwd]https&#58;//i&#46;imgur&#46;com/Gi4ho4n&#46;png[/img:3d7xjxwd] Regards, saludos.
Bcc73
No comprendo, [img:1v5myvnu]https&#58;//i&#46;imgur&#46;com/eKdyWzy&#46;png[/img:1v5myvnu] Regards, saludos.
Bcc73
Con Harbour muestra 7.0 ??? No comprendo, [img:14p0t3o7]https&#58;//i&#46;imgur&#46;com/8N2RzGI&#46;png[/img:14p0t3o7] Regards, saludos.
Bcc73
Resuelto, mi xHarbour en la versión incorrecto. [img:2m40fsp8]https&#58;//i&#46;imgur&#46;com/H99kKs6&#46;png[/img:2m40fsp8] Mil desculpas. Many thanks. Regards, saludos.
Bcc73
Can I see the source code you are using? EMG
Bcc73
C:\FWH..\SAMPLES\MNU02.PRG [code=fw:ruhbv6g2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Test inicial: Menu standard non style</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oFont<br /><span style="color: #00C800;">Static</span> nHFont<br /><span style="color: #00C800;">Static</span> cFont<br /><span style="color: #00C800;">Static</span> nWFont<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: #B900B9;">// MsgInfo( BorlandVersion() )</span><br /><br />&nbsp; &nbsp;? HB_Compiler<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,OS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,HB_BuildInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cFont &nbsp; &nbsp;:= <span style="color: #ff0000;">"Verdana"</span><br />&nbsp; &nbsp;nHFont &nbsp; := <span style="color: #000000;">14</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, -nHFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test Menu"</span> + <span style="color: #ff0000;">" - Ver.: "</span> + FWVERSION + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> IsExe64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">" &nbsp;( 64"</span>, <span style="color: #ff0000;">" &nbsp;( 32"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" bits ) - "</span> + FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"User"</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">": "</span> + WNetGetUser<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" - "</span> + hb_Compiler<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> MenuSal<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_WHITE, METRO_STEEL<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MenuSal<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oMnu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMnu <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2013</span> <span style="color: #0000ff;">ADJUST</span> ;<br />&nbsp; &nbsp; &nbsp; NOBORDER ; <span style="color: #B900B9;">//UPPERMNU ;</span><br />&nbsp; &nbsp; &nbsp; COLORSEPARATOR CLR_RED ;<br />&nbsp; &nbsp; &nbsp; COLORMENU CLR_HGRAY, CLR_BLUE ;<br />&nbsp; &nbsp; &nbsp; COLORSELECT METRO_STEEL, METRO_STEEL, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; COLORLEFT CLR_WHITE ;<br />&nbsp; &nbsp; &nbsp; COLORRIGHT CLR_HGRAY ; &nbsp;<span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;NOINHERIT ; &nbsp; // &nbsp; &nbsp; &nbsp;FACTOR 4 ;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">1</span> ; &nbsp;<span style="color: #B900B9;">//5 &nbsp; // &nbsp; &nbsp; &nbsp;RIGHTSPACE 10 ;</span><br />&nbsp; &nbsp; &nbsp; HEIGHT <span style="color: #000000;">1.0</span> * <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datos &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Proveedores"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Proveedores"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Clientes"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Clientes"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Articulos"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Articulos"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Fichero de Zonas"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Fichero de Zonas"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Ficheros Auxiliares"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Agentes"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Formas de Pago"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Entidades Bancarias"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tools"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Copia de Seguridad"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Herramientas"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Otros"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Otros Items"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 1"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_3"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 4"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_4"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 5"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_5"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 51"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_51"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 52"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_52"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 53"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_53"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 54"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_54"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 55"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_55"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 6"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_6"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 7"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Item_7"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Salir"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Abandonar Test"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Historico"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Simbolo Sistema"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #00C800;">Return</span> oMnu<br />&nbsp;</div>[/code:ruhbv6g2] Regards, saludos.
Bcc73
This is what I get: [code=fw:26esj2o9]<div class="fw" id="{CB}" style="font-family: monospace;">Borland/Embarcadero C++ <span style="color: #000000;">7.3</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span> Windows <span style="color: #000000;">8</span> <span style="color: #000000;">6.2</span><span style="color: #000000;">.9200</span> Borland/Embarcadero C++ <span style="color: #000000;">7.3</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span></div>[/code:26esj2o9] EMG
Beacon
[b:2gghhk5m][u:2gghhk5m][size=150:2gghhk5m]BEACON[/size:2gghhk5m][/u:2gghhk5m][/b:2gghhk5m] Good night I have created a SLACK in which I have attached the initial documentation about BEACON. It is an introduction and 10 initial examples so that you can get an idea of ??the technique that is used, but I am willing to answer any questions that arise, and even when it is time to take advantage of any of the conferences we do to detail some aspects that They have become unclear. Do not expect, in these examples, to see wonderful screens since my intention is that the document being built also serves as a manual that covers all the aspects that may be needed for its correct use and installation. Also, as I said on occasion, I hope that before publishing more code we will see other publications that we are waiting for as "May water". I had the idea of ??putting it in the forum, but there is so much information that I have to organize that it has been more comfortable to do it in a slack, although the idea is that when I have definitive versions of the document that I am doing, I will pass it on to the forum. And, as you can imagine and understand when you see the document, it would not be feasible to put it in a channel of this slack. To receive the entry invitation, contact me privately in the Mod-Harbor slack or by mail with your mail and the username you want to use and I will send it to you. At the moment I will not publish a generic invitation (little by little). Greetings, and I hope to see you there, and above all that what little you see you like and you have a million questions and suggestions.
Beacon table
Dear Cristobal, May I ask you which TABLE componente you use in Beacon, or have you built one yourself? Best regards Otto
Beacon table
Dear Otto Use, until now DATATABLE, always trying to implement it with AJAX. In the near future you may add other table controls than DATATABLE
Beacon table
Dear Cristobal, I ask because I think a homemade browser might be easier for simple tasks and for beginners. I have to look at seamap.prg again. Maybe we can just expand that. Mr. Rao has posted a function where you can easily create a table. This function would also be optimal. Best regards, Otto
Beacon table
Dear Otto Yes, I have also had a function for years to make an html table from a data source (array), but for me it is essential that privacy is maintained. That is the reason for using AJAX and that when you see "Source code" on a web page, you do not see the data contained in the table. I hope I have explained myself correctly.
Beacon table
Dear Cristobal, I think one of the problems for beginners is that getting started is too complicated. If we now use AJAX, then the matter is already more complex than a simple table. I mean, I have a minimal application here, a simple list of links. So far, I have been maintaining the database with the DBU. Yesterday I quickly expanded the program and built in a simple CRUD. Even though it's straightforward, it's a lot of work. With FW I would have done that quickly. It's a bit difficult to get started here. You always have to keep in mind that I am speaking of HTML beginners. A function AP_xbrowse (), AP_recordEdit (), AP_Login () would be ideal. Best regards, Otto [img:7h8bm46g]https&#58;//mybergland&#46;com/fwforum/pages&#46;jpg[/img:7h8bm46g] [img:7h8bm46g]https&#58;//mybergland&#46;com/fwforum/pageswartung&#46;jpg[/img:7h8bm46g]
Beacon table
Dear Otto With Beacon, [code=fw:bucca6lj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Tables<span style="color: #000000;">&#40;</span> oMain, oCard:<span style="color: #000000;">oBodyCard</span>, nInd, <span style="color: #ff0000;">"SimpleAccessData"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"100%"</span>, <span style="color: #ff0000;">"2.0vh"</span>, , , <span style="color: #ff0000;">"table-responsive-00025"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"GET"</span> &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:bucca6lj] [code=fw:bucca6lj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Tables<span style="color: #000000;">&#40;</span> oMain, oParent, nInd, cTable, aCols, nColKey, nW, nHF, nLen, lOrder, cId2, aCols2, cType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cTable, <span style="color: #ff0000;">"SimpleAccessData"</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// id html element table </span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> aCols, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @nColKey, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cId2, <span style="color: #ff0000;">"table-responsive-00025"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @lOrder, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @aCols2, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @oParent, oCard:<span style="color: #000000;">oBodyCard</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @nHF, <span style="color: #ff0000;">"2.3vh"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cType, <span style="color: #ff0000;">"POST"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oTable1 := TTableData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , oMain, , oParent, , .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WITH OBJECT oTable1<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetSourceTable</span><span style="color: #000000;">&#40;</span> cType, <span style="color: #ff0000;">"adosql.prg"</span>, cTable, aCols, nColKey, cId2, aCols2 <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// adosql.prg: harbour code return json</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetPageLenght</span><span style="color: #000000;">&#40;</span> nLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetOrdering</span><span style="color: #000000;">&#40;</span> lOrder <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetScrollCollapse</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetSizeFont</span><span style="color: #000000;">&#40;</span> nHF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetFamFont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Roboto"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"#FFFFF0"</span>, <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cStr := :<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"tabledata1"</span>, , , nInd, .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:bucca6lj]
Beacon table
Dear Otto, > A function AP_xbrowse (), AP_recordEdit (), AP_Login() would be ideal I fully agree with you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Beacon table
Hi, [quote="cnavarro":dhahof4r]Yes, I have also had a function for years to make an html table from a data source (array), but for me it is essential that privacy is maintained. That is the reason for using AJAX and that when you see "Source code" on a web page, you do not see the data contained in the table[/quote:dhahof4r] I don't undertand you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . When you load the data via Ajax, you can also see the data... C.
Beacon table
Hi, [quote="Antonio Linares":2wxobswd] > A function AP_xbrowse (), AP_recordEdit (), AP_Login() would be ideal I fully agree with you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2wxobswd] About xBrowse... [code=fw:2wxobswd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//  {% LoadHrb( 'lib/tweb/tweb.hrb' ) %}</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #000000;">&#123;</span>% TWebInclude<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> %<span style="color: #000000;">&#125;</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> o, oCol, oBrw<br />    <span style="color: #00C800;">local</span> aRows     := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>   <br />    <span style="color: #00C800;">local</span> cLoren    := <span style="color: #ff0000;">"Lorem Ipsum is simply dummy text of the printing and typesetting industry."</span> <br />        <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A1'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Charly Aubia'</span> , <span style="color: #ff0000;">'married'</span> => .T., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">12</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-01'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">'Hola'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'ZZ'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Only name defined !'</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A2'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Maria de la O'</span>, <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> =>  <span style="color: #000000;">7</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-02'</span>, <span style="color: #ff0000;">'memory'</span> => cLoren <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A3'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'John Kocinsky'</span>, <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">23</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-03'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>   <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A4'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Anne Clark'</span>   , <span style="color: #ff0000;">'married'</span> => .T., <span style="color: #ff0000;">'qty'</span> =><span style="color: #000000;">100</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-04'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">'Test memory'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>    <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A5'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Daniel Clark'</span> , <span style="color: #ff0000;">'married'</span> => .T., <span style="color: #ff0000;">'qty'</span> =>  <span style="color: #000000;">0</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-05'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">'Ep!'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>    <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A6'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Rod Steward'</span>  , <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">98</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-06'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">'Baby Jean'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>  <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A7'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Ally McPerson'</span>, <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">72</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-07'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>   <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A8'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Bruce Polest'</span> , <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">13</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-08'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">'Memory...'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>  <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A9'</span>, <span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'James Stewart'</span>, <span style="color: #ff0000;">'married'</span> => .T., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">84</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-09'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>   <br />    Aadd<span style="color: #000000;">&#40;</span> aRows, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'id'</span> => <span style="color: #ff0000;">'A10'</span>,<span style="color: #ff0000;">'name'</span> => <span style="color: #ff0000;">'Sens Lange'</span>   , <span style="color: #ff0000;">'married'</span> => .F., <span style="color: #ff0000;">'qty'</span> => <span style="color: #000000;">53</span>, <span style="color: #ff0000;">'date'</span> => <span style="color: #ff0000;">'2020-01-10'</span>, <span style="color: #ff0000;">'memory'</span> => <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>   <br /><br />    <span style="color: #0000ff;">DEFINE</span> WEB oWeb <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'xBrowse'</span> TABLES <span style="color: #0000ff;">INIT</span><br />    <br />    <span style="color: #0000ff;">DEFINE</span> FORM o<br /><br />        HTML o <span style="color: #00C800;">INLINE</span> <span style="color: #ff0000;">'<h3>Basic xBrowse</h3><hr>'</span>      <br />        <br />    <span style="color: #0000ff;">INIT</span> FORM o         <br />        <br />        <span style="color: #0000ff;">DEFINE</span> BROWSE <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'ringo'</span> <span style="color: #00C800;">DATA</span> aRows <span style="color: #0000ff;">OF</span> o<br />    <br />    END FORM o  <br />    <br />retu <span style="color: #00C800;">nil</span></div>[/code:2wxobswd] [img:2wxobswd]https&#58;//i&#46;postimg&#46;cc/5yhNjMGy/xbrowse2&#46;jpg[/img:2wxobswd] Instead of command you can use function [b:2wxobswd]xBrowse()[/b:2wxobswd] [code=fw:2wxobswd]<div class="fw" id="{CB}" style="font-family: monospace;">    <span style="color: #0000ff;">INIT</span> FORM o         <br />        <br />        <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> o, <span style="color: #ff0000;">'ringo'</span>, aRows <span style="color: #000000;">&#41;</span><br />    <br />    END FORM o</div>[/code:2wxobswd] You don't need much more ... The power of modHarbour ! <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> C.
Bed and Breakfast
I need a booking for the reservation of rooms for the morning and/or for the afternoon or for the whole day. I can't use neither Tplan nor Tgant because it is not possible to divide the days into two AM and PM parts. Is there anyone who can help me?
Bed and Breakfast
Hola Silvio: Te puede servir la clase TCalex [url=https&#58;//ibb&#46;co/MnDWQv1:2vfkewz9][img:2vfkewz9]https&#58;//i&#46;ibb&#46;co/CB5NDc9/Sin-t-tulo&#46;jpg[/img:2vfkewz9][/url:2vfkewz9]
Bed and Breakfast
Hi Could you share some samples of this class . How do you save and read data into/from a table ? Thanks
Bed and Breakfast
[quote="Jack":234v8gex]Hi Could you share some samples of this class . How do you save and read data into/from a table ? Thanks[/quote:234v8gex] wich class ? calex ? CLASS SampleCalex sample01.prg samples folder But this class not manage the Am and PM as I wish
Beep exiting dialogs
Try to close this dialog using ESC and you will hear a beep: [code:noa8nequ]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oDlg LOCAL oGet LOCAL cVar &#58;= SPACE&#40; 30 &#41; DEFINE DIALOG oDlg @ 1, 1 GET oGet VAR cVar @ 3, 1 BUTTON "&Close" ACTION oDlg&#58;End&#40;&#41; ACTIVATE DIALOG oDlg; CENTER RETURN NIL[/code:noa8nequ] EMG
Beep exiting dialogs
Enrico, Is that for the new release? I do not hear a beep using FW2.7, May 2005 build. James
Beep exiting dialogs
[quote="James Bott":181bwotg]Enrico, Is that for the new release? I do not hear a beep using FW2.7, May 2005 build. James[/quote:181bwotg] Yes, February build. EMG
Beep exiting dialogs
Enrico, It is something related with the GET because if the button has the focus, then there is no beep. We are searching... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Beep exiting dialogs
Fixed: [code:1hp4l3ml] METHOD KeyChar&#40; nKey, nFlags &#41; CLASS TGet local nHi, nLo local lAccept local bKeyAction &#58;= SetKey&#40; nKey &#41; local nDefButton if nKey == VK_ESCAPE // new return 1 endif &#46;&#46;&#46; [/code:1hp4l3ml]
Beep exiting dialogs
Thank you! EMG
Beep exiting dialogs
Enrico, This is the right code: [code:20immp4n] METHOD KeyChar&#40; nKey, nFlags &#41; CLASS TGet local nHi, nLo local lAccept local bKeyAction &#58;= SetKey&#40; nKey &#41; local nDefButton if nKey == VK_ESCAPE // avoids a beep! &#58;&#58;oWnd&#58;KeyChar&#40; nKey, nFlags &#41; return 1 endif &#46;&#46;&#46; [/code:20immp4n]
Beep exiting dialogs
Thank you again! EMG
Beep on ALT-key
I'm trying to trap ALT-key. It works, but I hear a sound. How can I avoid it? EMG
Beep on ALT-key
For Example? Regards.
Beep on ALT-key
Just press ALT-letter on any dialog. EMG
Beep on ALT-key
Button, Listbox, combo, Where? Do you have a test code? Regards.
Beep on ALT-key
Normal. Master, see if you haven't connected anything in the windows settings. [code=fw:ff6cm40a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Testing NON-Modal Dialog Boxes - \SAMPLES\TESTDLGN.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> MainWnd<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: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> MainWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">22</span>, <span style="color: #000000;">75</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W/B"</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> MainWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Want to end ?"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">Function</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&Try"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">Try</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span> <span style="color: #0000ff;">ACTION</span> MainWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">Return</span> oMenu<br /><br /><span style="color: #00C800;">Function</span> <span style="color: #00C800;">Try</span><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 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Non modal dialog"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&End"</span> <span style="color: #0000ff;">OF</span> oDlg <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 />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;ACTIVATE DIALOG oDlg CENTERED NOWAIT ;<br />&nbsp; &nbsp; &nbsp; VALID MsgYesNo( "Want to close it ?" )<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<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 />&nbsp;</div>[/code:ff6cm40a] Regards.
Beep on ALT-key
Yes, as I want to handle the ALT-key combination through bKeyDown not with a menu item. EMG
Beep on ALT-key
Master: En wBrowse.prg o Dialog.prg haga esto: In wBrowse.prg or Dialog.prg... [code=fw:11q6fkgx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bAltKey<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Para Acionamento da Tecla Alt+++...</span><br />&nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SysCommand<span style="color: #000000;">&#40;</span> nType, nLoWord, nHiWord <span style="color: #000000;">&#41;</span><br /><br />en:<br /><br /><span style="color: #00C800;">METHOD</span> Syscommand<span style="color: #000000;">&#40;</span> nType, nLowOrd, nHiWord <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TWBrowse &nbsp;<span style="color: #B900B9;">//Era TcBrowse</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> oFolder, nItem, nButton <br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> hCtrl <br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Case</span> nType == SC_KEYMENU &nbsp; <span style="color: #B900B9;">// Alt+...</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> ::<span style="color: #000000;">bAltKey</span> != <span style="color: #00C800;">Nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bAltKey</span>, nLoWord <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><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;">SysCommand</span><span style="color: #000000;">&#40;</span> nType, nLoWord, nHiWord <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// En el modulo:</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Para Acionar a Tecla ALT, Dentro da ListBox(wBrowse.Prg)</span><br />&nbsp; &nbsp; oLbx:<span style="color: #000000;">bAltKey</span> &nbsp;:= <span style="color: #000000;">&#123;</span> | nKey, nFlags | TESTE_KEY<span style="color: #000000;">&#40;</span> nKey, aGetVenda, &nbsp;oLbx, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlgVendas, DbClientes, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbEstoque, &nbsp;DbPedidos, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbFornece, oSaida <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">// Para Usar Tecla ALT+Letra</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Teste_Key<span style="color: #000000;">&#40;</span> nKey, aGetVenda, &nbsp;oLbx, oDlgVendas, DbClientes, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbEstoque, &nbsp;DbPedidos, &nbsp;DbFornece, oSaida <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cKey := CHR<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> X, oCtrl, oMeter, oText, lEnd, DeOndeVem, DbSangria<br /><br />&nbsp; &nbsp;MEMVAR nValorCompra, aSaysMoveis, nTelefone, cNomeClien, nCodigoProd<br />&nbsp; &nbsp;MEMVAR NNUMEROTEL<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> GetKeyState<span style="color: #000000;">&#40;</span> VK_CONTROL <span style="color: #000000;">&#41;</span> .AND. ;<br />&nbsp; &nbsp; &nbsp; GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( " CONTROL + SHIFT + " + cKey )</span><br /><br />&nbsp; &nbsp;ELSEIF GetKeyState<span style="color: #000000;">&#40;</span> VK_CONTROL <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( " ALT + CONTROL + " + cKey )</span><br /><br />&nbsp; &nbsp;ELSEIF GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( " ALT + SHIFT + " + cKey )</span><br /><br />&nbsp; &nbsp;ELSEIF GetKeyState<span style="color: #000000;">&#40;</span> VK_MENU <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// alt key</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( " ALT + " + cKey + " ACIONADA " )</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;cKey := Upper<span style="color: #000000;">&#40;</span> cKey <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> &nbsp;cKey == <span style="color: #ff0000;">"I"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+I</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( " INCLUIR" )</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"A"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+A</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( " ALTERAR" )</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"C"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+C</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se a ListBox dos Produtos Tiver Ötens...</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">&#40;</span> DbPedidos:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; GO TOP<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lLigaCliente := .T. &nbsp;<span style="color: #B900B9;">//-> Liga o Get dos Clientes</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aSaysMoveis<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XFOCUS<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCodigoProd &nbsp;:= SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> nCodigoProd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XFOCUS<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"E"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+E</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( " EXCLUIR" )</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"F"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+F FORNECEDORES</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se a ListBox dos Produtos Tiver Ötens...</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">&#40;</span> DbPedidos:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; GO TOP<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lLigaCliente := .T. &nbsp;<span style="color: #B900B9;">//-> Liga o Get dos Clientes</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aSaysMoveis<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XFOCUS<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCodigoProd &nbsp;:= SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> nCodigoProd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XFOCUS<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"P"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+P</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> lPesqFone .AND. nValorCompra <= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//MsgInfo( " ULTIMOS PEDIDOS DO CLIENTE" )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ULTIMOS_PEDIDOS<span style="color: #000000;">&#40;</span> nKey, aGetVenda, &nbsp;oLbx, oDlgVendas, DbClientes, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbEstoque, &nbsp;DbPedidos, oSaida <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"R"</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+R</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( OemToAnsi( " RELATàRIOS" ) )</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-> Reservada Para a VALOR NO CAIXA DO DIA -> VALORNCX.PRG</span><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"V"</span> &nbsp;<span style="color: #B900B9;">//-> ALT+V</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> NVALORCOMPRA <= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALORNCX<span style="color: #000000;">&#40;</span> DbPedidos, DbSangria, oLbx, DeOndeVem := <span style="color: #000000;">1</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMeter, oText, lEnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// mensa</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">&#40;</span> DbPedidos:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DbPedidos:<span style="color: #000000;">SetOrder</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; GO TOP<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-> Codigo do Produto</span><br />&nbsp; &nbsp; &nbsp; nCodigoProd &nbsp;:= SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> nCodigoProd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; XFOCUS<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-> Reservada Para a Calculadora - At+X na ListBox dos Produtos</span><br />&nbsp; &nbsp;ELSEIF cKey == <span style="color: #ff0000;">"X"</span> &nbsp;<span style="color: #B900B9;">//-> Chamar a Calculadora</span><br /><br />&nbsp; &nbsp; &nbsp; CALCULAD<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, X, oCtrl <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:11q6fkgx] Regards,
Beep on ALT-key
Thank you, but I don't want to change FWH sources. EMG
Beep on ALT-key
ok. ahora, és con el maestro Cristóbal. Regards, saludos.
Beep on ALT-key
Enrico, I believe that this characteristic is changed in the configuration of the Operating System.
Beep on ALT-key
So, it cannot be disabled programmatically? EMG
Beep on ALT-key
Enrico, I will remember that we changed for a similar case METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TControl case nMsg == WM_SYSCOMMAND return ::SysCommand( nWParam, nLoWord( nLParam ), nHiWord( nLParam ) ) Best regards, Otto
Beep on ALT-key
I don't want to alter the FWH source code. Anyway, I tried with OVERRIDE command and it didn't work (the program didn't start). EMG
Beep on ALT-key
Enrico, You don't have to modify the source, you can subclass instead. James
Beep on ALT-key
Subclass TControl? Don't think that class is thought for subclassing. EMG
Beep with Harbour MSVC
I'm now getting a very annoying beep for each keystroke in a get field using Harbour 3.0 FWH 12.04 MSVC 2010 I do not get it when building with xHarbour ( .com ) and xCC I also do not get it in a memo field. Also it beeps when a dialog is displayed, and when pressing a bitmap control. Any ideas how to shut it off ? Tim
Beep with Harbour MSVC
No ideas on this ? Its very annoying. SET BELL OFF does not help.
Beep with Harbour MSVC
Tim, Can you post a self contained example to test, i just build all applications with mvc and no issue ? Regards,
Beep with Harbour MSVC
Programming has strange happenings ! I took my main window, blocked commented out the bar and menu, and no sound. Then I started adding back. I came down to one Shell Execute in the menu which I eliminated ( won't need it ) and it remains quiet. This was so very strange ! It only occured on Harbour builds, and I had cleaned everything out. Down to one major problem area ... then all will be well.
Beep with Harbour MSVC
good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Beginners Error With ADO (Harbour)
I'm trying to get my feet wet with ADO in Harbour, but I'm evidently missing a necessary file. When I attempt to compile my simple code, I get the following compile error: Error: Unresolved external '_HB_FUN_ADORDD' referenced from C:\32BIT\OCW\DEBUG\TRANSFER.OBJ Can anyone tell me what I didn't add to my project that I'm evidently missing? I don't think it has anything to do with the code I'm calling: USE test.mdb VIA "ADORDD" BROWSE() USE I did add : REQUEST ADORDD to the top of the PRG file where the test code is sitting. FYI, I'm currently using Harbour and a Jan 09 version of Fivewin. I am builing the program in UESTUDIO with the Borland Compiler. --------------------Configuration: ocw - Debug-------------------- Harbour 1.0.1dev Intl. (Rev. 9361) Copyright (c) 1999-2008, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland menu.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_ADORDD' referenced from C:\32BIT\OCW\DEBUG\TRANSFER.OBJ ocw.EXE - 1 error(s), 0 warning(s)
Beginners Error With ADO (Harbour)
HI, I think that u need add lib rdd.lib in your project.
Beginners Error With ADO (Harbour)
Michael, Are you linking AdoRdd.lib ?
Beginners Error With ADO (Harbour)
No I didn't, and that was the problem. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Once I added that lib and usrrdd.lib to the .mak file, everything worked perfectly. Thank you.
Beginners Error With ADO (Harbour)
Ok, maybe not "perfectly". <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I can now open and browse the database I'm after, but when I hit the last record by scrolling down the browse or with a simple skip command, I get the following error: Error description: Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: STATUS Args: Stack Calls =========== Called from: => TOLEAUTO:STATUS(0) Called from: adordd.prg => ADO_DELETED(333) Called from: => DBSKIPPER(0) Called from: => (b)SETFILTER(1853) Called from: => TWBROWSE:SKIP(1585) Called from: => TWBROWSE:GODOWN(898) Called from: => TWBROWSE:MOUSEWHEEL(1925) Called from: => TWINDOW:HANDLEEVENT(0) Called from: => TWBROWSE:HANDLEEVENT(1451) Called from: .\source\classes\WINDOW.PRG => _FWH(3333) The adordd.prg file has the following date in the header: * $Id: adordd.prg,v 1.4 2007/04/29 10:41:43 antoniolinares Exp $ How can I be sure I have the newest adordd.lib file and usrrdd.lib file? The code in question from the adordd.prg file is the following: STATIC FUNCTION ADO_DELETED( nWA, lDeleted ) local oADO := USRRDD_AREADATA( nWA )[ 1 ] ------> IF oADO:Status == adRecDeleted // To be checked, ACCESS does not uses it <------- lDeleted := .T. ELSE lDeleted := .F. ENDIF RETURN SUCCESS
Beginners Error With ADO (Harbour)
FYI, I was able to work around the problem, and convert the data I was after by calling a recnumber() function and using a while loop to make sure it never tried to skip past the last record. I'd still like to make sure I'm using the current libs.
Beginners Error With ADO (Harbour)
Michael, It seems as you are using Access database engine and see the comment in the error line that you have posted: > ------> IF oADO:Status == adRecDeleted // To be checked, ACCESS does not uses it <------- It seems as Access does not support it. Try to comment those lines and check it again, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Behavior of dialog elements and the ENTER key with FWH 11.12
Hi to all, I'm still not clear with the behavior of some dialog elements and what FWH users want. Understanding that there is a standard Clipper and a standard windows behavior and they are different in some points: [b:rdzg9muf]Clipper[/b:rdzg9muf] shall function as follows: - ENTER key: focus changes to next dialog element - Entering an element with TAB or ENTER key: the text isn't selected automatically - Hot key of a BUTTON: the action of the button has to be executed, not only setting the focus [b:rdzg9muf]Windows[/b:rdzg9muf] shall function as follows: - ENTER key: executes the action of the standard button - Entering an element with TAB or ENTER key: the text is selected automatically - Hot key of a BUTTON: the action of the button has to be executed, [b:rdzg9muf]not only setting the focus[/b:rdzg9muf] Of course, it's quite possible that there are some other differences, I don't notice until now. Also understanding, that now the Clipper behavior is active, but it [color=#FF0000:rdzg9muf]don't [/color:rdzg9muf]funcion as expected in some points: - Entering a combo box: all text is selected automatically - Hot key of a BUTTON: sets only focus In older versions of FWH, the behavior was more windows like, but also not in all points, e. g. see <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19181&p=107044">viewtopic.php?f=3&t=19181&p=107044</a><!-- l -->. Sample code for testing: [code=fw:rdzg9muf]<div class="fw" id="{CB}" style="font-family: monospace;"><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, nValue := <span style="color: #000000;">1</span>, cTest := <span style="color: #ff0000;">"Test"</span>, cTest2 := <span style="color: #ff0000;">"Test2"</span>, cCombo := <span style="color: #ff0000;">"combo"</span><br /><br />       <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />       <br />       @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">RADIO</span> nValue ;<br />          <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&One"</span>, <span style="color: #ff0000;">"&Two"</span>, <span style="color: #ff0000;">"T&hree"</span><br /><br />       @  <span style="color: #000000;">1</span>,  <span style="color: #000000;">10</span> <span style="color: #0000ff;">COMBOBOX</span> cCombo <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"1"</span>, <span style="color: #ff0000;">"2"</span>, <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN<br /><br />       @ <span style="color: #000000;">2</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cTest <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span><br />       <br />       @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cTest2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span><br />       <br />       @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"O&k"</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></div>[/code:rdzg9muf] Conclusions: - Please adjust the Clipper behavior. - Maybe it's possible to implement a switch to change from Clipper to Windows behavior, so the end user can choose <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> - Make both behaviors as standard as possible.
Behavior of dialog elements and the ENTER key with FWH 11.12
[quote="frose":1aiumm1e]- ENTER key: focus changes to next dialog element[/quote:1aiumm1e] Only if no button is defined as standard button. [quote="frose":1aiumm1e]- Entering an element with TAB or ENTER key: the text isn't selected automatically[/quote:1aiumm1e] It's a good choice for me. Anyway, it should be very simple to add a switch to select the desider behavior. We have to keep the backwards compatibility. [quote="frose":1aiumm1e]- Hot key of a BUTTON: the action of the button has to be executed, not only setting the focus[/quote:1aiumm1e] I don't understand. The current (and expected) behavior is setting the focus and execute the action of the button. [quote="frose":1aiumm1e]- Entering a combo box: all text is selected automatically[/quote:1aiumm1e] Yes, this incongruence should be fixed for me. [quote="frose":1aiumm1e]- Hot key of a BUTTON: sets only focus[/quote:1aiumm1e] No, it only executes the action, as it is expected. EMG
Behavior of dialog elements and the ENTER key with FWH 11.12
[quote:ugtpzwht]frose wrote:- Entering an element with TAB or ENTER key: the text isn't selected automatically[/quote:ugtpzwht] In clipper the picture "@K" makes the first key erase the contents. Shouldn't the windows version also do the same thing? And if it is going to erase the contents shouldn't it be selected so the user will know that the next key will erase it?
Behavior of dialog elements and the ENTER key with FWH 11.12
[quote:2ep7y8xt][quote:2ep7y8xt]frose wrote:- ENTER key: focus changes to next dialog element[/quote:2ep7y8xt] Enrico wrote: Only if no button is defined as standard button.[/quote:2ep7y8xt] It works with the 'DEFAULT' clause, but [color=#FF0000:2ep7y8xt]not[/color:2ep7y8xt] when the focus is in the combo box! [quote:2ep7y8xt][quote:2ep7y8xt]frose wrote:- Entering an element with TAB or ENTER key: the text isn't selected automatically[/quote:2ep7y8xt] Enrico wrote: It's a good choice for me. Anyway, it should be very simple to add a switch to select the desider behavior. We have to keep the backwards compatibility.[/quote:2ep7y8xt] Ok, understanding the need for backwards compatibility, so please, implement this switch for the users who don't need Clipper compatibility. [quote:2ep7y8xt][quote:2ep7y8xt]frose wrote:- Hot key of a BUTTON: the action of the button has to be executed, not only setting the focus[/quote:2ep7y8xt] Enrico wrote: I don't understand. The current (and expected) behavior is setting the focus and execute the action of the button.[/quote:2ep7y8xt] [quote:2ep7y8xt][quote:2ep7y8xt]frose wrote:- Hot key of a BUTTON: sets only focus[/quote:2ep7y8xt]Enrico wrote: No, it only executes the action, as it is expected. [/quote:2ep7y8xt] The behavior of the hot key changed, see here: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23271#p124892">viewtopic.php?f=3&t=23271#p124892</a><!-- l -->
Behavior of dialog elements and the ENTER key with FWH 11.12
[quote="frose":3tx8sxwb]It works with the 'DEFAULT' clause, but [color=#FF0000:3tx8sxwb]not[/color:3tx8sxwb] when the focus is in the combo box![/quote:3tx8sxwb] Ok, the combobox behavior definitely needs to be fixed. [quote="frose":3tx8sxwb]Ok, understanding the need for backwards compatibility, so please, implement this switch for the users who don't need Clipper compatibility.[/quote:3tx8sxwb] Ok. Let's wait for what Antonio has to say about this subject. [quote="frose":3tx8sxwb]The behavior of the hot key changed, see here: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23271#p124892">viewtopic.php?f=3&t=23271#p124892</a><!-- l -->[/quote:3tx8sxwb] Ok, I'm still using FWH 11.11 because of the gradient problem. EMG
Behavior of dialog elements and the ENTER key with FWH 11.12
[quote:2dgksk2y]frose wrote:- Entering an element with TAB or ENTER key: the text isn't selected automatically[quote:2dgksk2y]Gale FORd wrote: In clipper the picture "@K" makes the first key erase the contents. Shouldn't the windows version also do the same thing?[/quote:2dgksk2y][/quote:2dgksk2y] Yes! [quote:2dgksk2y]Gale FORd wrote: And if it is going to erase the contents shouldn't it be selected so the user will know that the next key will erase it?[/quote:2dgksk2y] Yes! So the switch exist already, the name is "@K", only the content have to be selected when entering <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Behavior of dialog elements and the ENTER key with FWH 11.12
The first key does erase the text if picture "@K" is used but it does not select all text so the user can know. I had to modify my tget so that selectall() is used when it has picture "@K".
Behavior of dialog elements and the ENTER key with FWH 11.12
Gale, thank you for the "@K". I think the best way is, if Antonio changes the TGet class for FWH 12.01, calling the SelectAll() method when entering the get field.
Behavior of dialog elements and the ENTER key with FWH 11.12
Antonio, please change the behavior of the COMBOBOX, when the ENTER key is clicked: executes the action of the standard button! IMHO the text of the GET shall be selected automatically when entering (like the COMBOBOX already do), maybe depending of the PICTURE clause!? In any case, make both, COMBOBOX and GET acting consistently <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Behavior of dialog elements and the ENTER key with FWH 11.12
Frank, Is it an editable combobox ? Windows behavior is to fire the default pushbutton action. What we are doing is MsDos backwards compatibility... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Behavior of dialog elements and the ENTER key with FWH 11.12
Antonio, yes! Please test the COMBOBOX and the GET within this sample: [code=fw:1665mqnv]<div class="fw" id="{CB}" style="font-family: monospace;"><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<br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   <span style="color: #00C800;">LOCAL</span> oCombo<br />   <span style="color: #00C800;">LOCAL</span> cCombo := <span style="color: #ff0000;">"test"</span><br />   <span style="color: #00C800;">LOCAL</span> oGet<br />   <span style="color: #00C800;">LOCAL</span> cGet := <span style="color: #ff0000;">"test"</span><br />   <span style="color: #00C800;">LOCAL</span> nValue := <span style="color: #000000;">1</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;">"TCombobox DROPDOWN style and VK_RETURN"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">25</span>, <span style="color: #000000;">75</span><br /><br />   @  <span style="color: #000000;">1</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">COMBOBOX</span> oCombo <span style="color: #0000ff;">VAR</span> cCombo <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"1"</span>, <span style="color: #ff0000;">"2"</span>, <span style="color: #ff0000;">"3"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span><br /><br />   @  <span style="color: #000000;">2</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cGet <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span><br />   <br />   @  <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">RADIO</span> nValue <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&One"</span>, <span style="color: #ff0000;">"&Two"</span>, <span style="color: #ff0000;">"T&hree"</span><br />   <br />   @  <span style="color: #000000;">5</span>,  <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #00C800;">Default</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   @  <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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></div>[/code:1665mqnv] The default pushbutton action doesn't execute, if you click ENTER in the COMBOBOX, but it has to! When entering the COMBOBOX, the text 'test' is selected automatically, IMHO this behavior should be standard also for GET's, especially if the PICTURE clause '@K' is set.
Behaviour of GET on TMDIChild differs from TDialog
Hello, I'm a long time ClipperHead programmer and now a newbie in Fivewin converting an aplication to graphical. Our aplication is MDI and we are working with the MDIClhild windows. When I place a GET in the window the result is diferent that if I place it on a dialog. The GET lacks the 3D effect, see image: [img:a81ry4kw]http&#58;//www&#46;aplitec&#46;com/Fivewin/gets_no_3d&#46;png[/img:a81ry4kw] Why this happen ? Is this the espected behaviour ? Are you using TMDIChilds or are working with dialogs ? Thanks Josep xHB 1.2.1 + FWHB 12.04
Behaviour of GET on TMDIChild differs from TDialog
Josep You can add themes support which will change the appearance of your controls and give them a much more professional look. Look for the resource file called xplook.rc \fwh\samples\winxp and the WindowsXp.Manifest file. Copy them to your project folder, Edit xplook.rc with notepad and change the path of the manfest location and add xplook.rc to your link list. It will make a nice difference in your application appearance. Rick Lipkin
Behaviour of GET on TMDIChild differs from TDialog
Hi Rick, many thanks. This did the trick. But copying the manifest file as name.exe.manifest in the aplication folder. Compiling with the rc file doesn't work. Is necessary any other step besides to compiling the manifest file as a resource ? Thanks again Josep.
Behaviour of GET on TMDIChild differs from TDialog
Josep Take the code below and save it to the file xplook.rc. Make sure the Windows.Manifest file is located in the same folder as xplook.rc, then compile the file xplook.rc into your exe. Rick [code=fw:xldk5m3o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />#ifdef __FLAT__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">".<span style="color: #000000;">\W</span>indowsXP.Manifest"</span><br />#endif<br /><br /> </div>[/code:xldk5m3o]
Behaviour of GET on TMDIChild differs from TDialog
Josep, Also keep in mind that dialogboxes use "dialog base units" meanwhile the MdiChild windows use pixels: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=119360#p119360">viewtopic.php?p=119360#p119360</a><!-- l -->