topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Auto Ejecutar app.
|
[code=fw:jxjrcyrd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> LLAMA_EXECUTABLE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> Nome_Arq, nRegistro<br /><br /> <span style="color: #00C800;">PUBLIC</span> XDA, lDesligaIndex := .F.<br /><br /> <span style="color: #B900B9;">/*<br /> MsgStop( OemToAnsi( "ATEN€ÇO USUµRIO: " )+CRLF+;<br /> OemToAnsi( "PRECISO DESLIGAR O PROGRAMA PARA PEGAR OS " )+CRLF+;<br /> OemToAnsi( "NOVOS INDICES E AS CONFIGURA€åES DE CAIXA. " )+CRLF+;<br /> OemToAnsi( "TECLE <ENTER> PARA CONTINUAR POR FAVOR. " ), ;<br /> OemToAnsi( "Reinicializa‡Æo do Programa - Configura‡äes." ) )<br /> */</span><br /><br /> FreeResources<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Set Resources To</span><br /><br /> <span style="color: #0000ff;">Release</span> All<br /> SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> MemoryFlush<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> AEVAL<span style="color: #000000;">(</span>DIRECTORY<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VENTAS.BAT"</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">{</span> |aFILE| FERASE<span style="color: #000000;">(</span>aFILE<span style="color: #000000;">[</span>F_NAME<span style="color: #000000;">]</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// NOMBRE DE TU PROGRAMA</span><br /> <span style="color: #00C800;">IF</span> !FILE<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VENTAS.BAT"</span> <span style="color: #000000;">)</span><br /><br /> NOME_ARQ := FCREATE<span style="color: #000000;">(</span><span style="color: #ff0000;">"VENTAS.BAT"</span><span style="color: #000000;">)</span><br /><br /> NREGISTRO := <span style="color: #ff0000;">"@ECHO OFF"</span> ;<br /> + CRLF + ;<br /> <span style="color: #ff0000;">"CLS"</span> + ;<br /> + CRLF + CRLF + ;<br /> <span style="color: #ff0000;">"VENTAS.EXE"</span> + ;<br /> + CRLF + CRLF + ;<br /> <span style="color: #ff0000;">"CLS"</span> + ;<br /> + CRLF + ;<br /> <span style="color: #ff0000;">"EXIT"</span><br /><br /> FWRITE<span style="color: #000000;">(</span> NOME_ARQ, NREGISTRO <span style="color: #000000;">)</span><br /> FCLOSE<span style="color: #000000;">(</span> NOME_ARQ <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> DBCLOSEALL<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> WinExec<span style="color: #000000;">(</span> <span style="color: #ff0000;">"VENTAS.BAT"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> __Quit<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> </div>[/code:jxjrcyrd]
|
Auto Fill Combo box
|
We'll try this again. Does anyone have an update for a combo box ( CBS_DROPDOWN ) that will autofill the data from available items or allow a new item to be entered ?
Tim <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
|
Auto Fill Combo box
|
Tim,
You may use these methods: SetItems( aItems ) or Insert( cItem, nAt )
|
Auto Fill Combo box
|
Hello,
Is the a combobox-class with auto-fill, just like in Internet Explorer?
Im looking for something like that without the possibility to enter something that not exist in the drop-down list.
Thanks,
Marc
|
Auto Fill Combo box
|
Thanks Oskar,
I get 2 errors while compiling.
I can't find the function RAScan() and Txbrowse()
I'm using FW195. Are those functions that are included in the newer version of FW?
Regards,
Marc
|
Auto Replace Text
|
Hi,
I would like to be able to locate a word in a text variable and replace it with something else.
Ex:
cText := "I would like to replace #THIS# word with something else"
The text "#THIS#" is what I would like to replace with other text.
All the words that will need to be replaced will start and end with the # symbol.
Is there any function that will let me do something like this?
Maybe in the format: ReplaceText( cTextString, cOriginalText, cNewText)
|
Auto Replace Text
|
Jeff
Check : [url:vuxnn45e]http://www.itlnet.net/programming/program/Reference/c53g01c/nga1a13.html[/url:vuxnn45e]
|
Auto Replace Text
|
Thanks Daniel. Exactly what I needed <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Auto centering in dialog
|
Hi All,
I would like to automatically center a button in a dialog box. I can`t find out how to do this. Is there a way it can be done ?
Regards,
|
Auto centering in dialog
|
This is a working sample:
[code:2ldk0iq0]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oBtn
DEFINE DIALOG oDlg
@ 0, 0 BUTTON oBtn PROMPT "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
ON INIT CENTERBTN( oDlg, oBtn );
CENTER
RETURN NIL
STATIC FUNCTION CENTERBTN( oDlg, oBtn )
LOCAL aDlgRect := GETCLIENTRECT( oDlg:hWnd )
LOCAL nDlgWidth := aDlgRect[ 4 ] - aDlgRect[ 2 ]
LOCAL nDlgHeight := aDlgRect[ 3 ] - aDlgRect[ 1 ]
LOCAL nRow := ( nDlgHeight - oBtn:nHeight() ) / 2
LOCAL nCol := ( nDlgWidth - oBtn:nWidth() ) / 2
oBtn:Move( nRow, nCol )
RETURN NIL[/code:2ldk0iq0]
EMG
|
Auto centering in dialog
|
Hi Enrico,
Hi sure will do some testing this week end.
Thanks
Regards,
Gilbert
|
Auto centering in dialog
|
Hi Enrico,
It`s a bit more complicated that I tought it would be, but it works nicely.
Thanks
Regards,
Gilbert
|
Auto close dialog / window.
|
In Clipper (text mode) sometimes I need to display a message to the user for n seconds and then the message dissapears automatically; how can I accomplish this in FiveWin ?
|
Auto close dialog / window.
|
MsgWait()EMG
|
Auto code for Fivewin
|
ACD is working with any editor also with your editor.
New demo is online valid till 31.7.
ACD is a Two-Way-Tool allowing developer/user to edit code programmatically as well as visually
What’s more important is anybody should be able to make the code with ACD correctly without errors ( it should also give help and guidance to the user )
What is autocode for:
[url:1q0yjesp]http://www.atzwanger-software.com/fw/autocode2/autocode2.html[/url:1q0yjesp]
[url:1q0yjesp]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23720&p=127573#p127573[/url:1q0yjesp]
Present demo expires by 31 May you have to download the new demo which is extended till 31 July.
Added syntax for METROPANEL, METROBUTTON and COMBOMETRO added.
[url:1q0yjesp]http://www.atzwanger-software.com/fw/ACD5DEMO.Zip[/url:1q0yjesp]
Best regards,
Otto
|
Auto code for Fivewin
|
ACD is working with any editor also with your editor.
New demo is online valid till 31.7.
ACD is a Two-Way-Tool allowing developer/user to edit code programmatically as well as visually
What’s more important is anybody should be able to make the code with ACD correctly without errors ( it should also give help and guidance to the user )
What is autocode for:
[url:10hjjqov]http://www.atzwanger-software.com/fw/autocode2/autocode2.html[/url:10hjjqov]
[url:10hjjqov]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23720&p=127573#p127573[/url:10hjjqov]
Present demo expires by 31 May you have to download the new demo which is extended till 31 July.
Added syntax for METROPANEL, METROBUTTON and COMBOMETRO added.
[url:10hjjqov]http://www.atzwanger-software.com/fw/ACD5DEMO.Zip[/url:10hjjqov]
Best regards,
Otto
|
Auto code for Fivewin
|
Otto,
Nice and very usefull tool, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Auto code for Fivewin
|
Otto,
Nice and very usefull tool, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Auto code for Fivewin
|
AUTOCODE - new download ready
This demo works till 30 apr 2013.
Best regards,
Otto
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fw/ACD5DEMO.Zip">http://www.atzwanger-software.com/fw/ACD5DEMO.Zip</a><!-- m -->
|
Auto code for Fivewin
|
AUTOCODE - new download ready
This demo works till 30 apr 2013.
Best regards,
Otto
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fw/ACD5DEMO.Zip">http://www.atzwanger-software.com/fw/ACD5DEMO.Zip</a><!-- m -->
Otto
|
Auto fits/sorts controls of dialog in different resolutions
|
Dear All,
Our dialog resources in dll designed to 800*600 resolution , now we write a small function( called on dialog init) to auto fit/sort controls of dialog according different resolution as 1024*768,1280*1024, all the controls seems OK, but -1 ids (static text, groups) seems not exists in odialog:acontrols,how to detect these -1 ids ?
rsl0:=getsysmetrics(0)/800
rsl1:=getsysmetrics(1)/600
for i:=1 TO LEN(odlg:acontrols)
oCtrol = odlg:aControls[i]
aRect = GetCoors( oCtrol:hWnd )
oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1, (aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. )
next
Best regard!
Shuming Wang
|
Auto fits/sorts controls of dialog in different resolutions
|
[quote="ShumingWang":1ecux9zv]how to detect these -1 ids ?[/quote:1ecux9zv]
You can't, as far as I know.
EMG
|
Auto fits/sorts controls of dialog in different resolutions
|
Wang, the best way to do it is create a ID to each control. I use any like it and I create an ID to each "say", then I do a "pseudo redefine" like this:
redefine say id 51 of oDlg
redefine say id 52 of oDlg
(...)
For while is hard to redefine each say but is only way I found. Or you can create a function and refer to say's IDs in an array. Any like this
MyRedefineSay({51,52,52,53}, oDlg)
...
function MyRedefineSay(aID, oDlg)
local n
FOR n := 1 to len(aID)
TSay():Redefine(aId[n] ......... )
NEXT
return
//-----------------------------------
Only a suggest <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bast regards,
Maurilio
|
Auto fits/sorts controls of dialog in different resolutions
|
Shuming,
I found the text below in my notes. You might give it a try.
James
-----------------------------------------
6/21/2004 9:00 PM
If you change the size of the dialog font in Workshop, then the dialog is automatically resized to accomodate the new font. This resizing occurs both in Workshop and in the application. Note that in Workshop the dialog is displayed larger than it will be in the application.
[Note: WS defaults to a MS Sans Serif, 8 point font when you define a new dialog.]
The automatic resizing happens inside the dialogBox() function called in TDialog:activate(). This seems to be inside the Win API. There is no built-in way to force the dialog to resize by changing the font after the dialog has been initialized.
You can change the font of a dialog via code if you do it before activating the dialog:
define dialog oDlg...
oDlg:setFont(oFont)
activate dialog oDlg
However, I find that the font is about 4 points smaller on the screen that it is if you define the font in Workshop. E.G. you would have to use a 16point font via setFont() in order to get the same sized font on the screen that you would get if you defined a 12point font in WS. I think this must be a bug somewhere.
|
Auto focus a checkbox from a dialog ON INIT
|
[code=fw:c9l4i5yv]<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: #00D7D7;">#define</span> WM_SYSKEYDOWN 0x0104<br /><br /><span style="color: #00C800;">Function</span> TestCheck<br /> <span style="color: #00C800;">LOCAL</span> oDlg<br /> <br /> <span style="color: #00C800;">LOCAL</span> oChk, lChk, nChk := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> oChk2, lChk2, nChk2 := <span style="color: #000000;">0</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">CHECKBOX</span> oChk <span style="color: #0000ff;">VAR</span> lChk <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">1.2</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">CHECKBOX</span> oChk2 <span style="color: #0000ff;">VAR</span> lChk2 <span style="color: #0000ff;">OF</span> oDlg<br /> <br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Close"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oChk:<span style="color: #000000;">PostMsg</span><span style="color: #000000;">(</span> WM_SYSKEYDOWN, <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span> ** <span style="color: #000000;">29</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:c9l4i5yv]
|
Auto focus a checkbox from a dialog ON INIT
|
[url:2f107rl9]http://msdn.microsoft.com/en-us/library/ms646286(v=vs.85).aspx[/url:2f107rl9]
lParam
The repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table.
...
29 The context code. The value is 1 if the ALT key is down while the key is pressed; it is 0 if the WM_SYSKEYDOWN message is posted to the active window because no window has the keyboard focus.
This way we simulate a pressed ALT <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Auto focus a checkbox from a dialog ON INIT
|
It doesn't work here. I always used
[code=fw:1j00drms]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">bStart</span> = <span style="color: #000000;">{</span> || oChk2:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:1j00drms]
It works fine.
EMG
|
Auto focus a checkbox from a dialog ON INIT
|
XP and Win7 differences again ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Auto insert data
|
Hi Everybody,
I am trying to find a way to create a macro for the end user of my application.
I would like to have them do someting like press F5 and have the text "HELLO" inserted into a get.
Any Ideas?
Thanks,
Jeff
|
Auto insert data
|
Try something like this
POSTSTRING( oGet:hWnd, "HELLO" )
where POSTSTRING() is:
[code:2hjme3vv]FUNCTION POSTSTRING( hWnd, cString )
LOCAL i, c
DEFAULT hWnd := GETACTIVEWINDOW()
FOR i = 1 TO LEN( cString )
c = SUBSTR( cString, i, 1 )
IF c > " "
POSTMESSAGE( hWnd, WM_CHAR, ASC( c ) )
ELSE
POSTMESSAGE( hWnd, WM_KEYDOWN, ASC( c ) )
ENDIF
SYSREFRESH()
NEXT
RETURN NIL[/code:2hjme3vv]
EMG
|
Auto insert data
|
Or, you can try oGet:paste("Hello")
|
Auto insert data
|
Much simpler. The only drawback is that it alters the clipboard, if I'm not wrong.
EMG
|
Auto insert data
|
Enrico,
>Much simpler. The only drawback is that it alters the clipboard, if I'm not wrong.
I don't believe so. If cText is NOT passed then it pastes from the clipboard, but if cText is passed, then cText is used instead. Either way the clipboard is left as is.
It also handles numeric and date types in addition to string.
James
|
Auto insert data
|
Ops, you are right!
EMG
|
Auto insert data
|
Thanks James and Enrico.
|
Auto selectable menu.
|
Guys:
I had a small program to rebuild all indexes from all tables (20+), the menu allows the user to select the specific table that will get its indexes recreated. Some tables got over 500,000 records. Instead of having the user wait for each table to complete its course, how can I, via an menu option, put in the keyboard buffer the accelerator key for each option ? In the old Clipper days this was done with the KEYBOARD command or with the KEYSEND() function. Any ideas ? Thank you.
|
Auto selectable menu.
|
[code=fw:3i7hokhl]<div class="fw" id="{CB}" style="font-family: monospace;">__KEYBOARD<span style="color: #000000;">(</span> cString <span style="color: #000000;">)</span></div>[/code:3i7hokhl]
EMG
|
Auto selectable menu.
|
Enrico:
Thank you for your response. Can the ACCELERATOR keys be put in the keyboard buffer, for example Alt-I ?
|
Auto selectable menu.
|
I don't know, sorry.
EMG
|
Auto selectable menu.
|
Add to source keybrd.c the function
[code=fw:3vmt7ahv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CLIPPER __PUTACCKEY<span style="color: #000000;">(</span> PARAMS <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> int vKeyAcc = _parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, vKey = _parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> <br /> PostVirtualKeyEvent<span style="color: #000000;">(</span> vKeyAcc, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span>;<br /><br /> PostVirtualKeyEvent<span style="color: #000000;">(</span> vKey, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span>;<br /> PostVirtualKeyEvent<span style="color: #000000;">(</span> vKey, <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">)</span>;<br /><br /> PostVirtualKeyEvent<span style="color: #000000;">(</span> vKeyAcc, <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">)</span>;<br /><br /> SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /> </div>[/code:3vmt7ahv]
Example:
__PUTACCKEY( VK_MENU, VK_F2 ) // Alt + F2
__PUTACCKEY( VK_CONTROL, VK_F3 ) // Control + F3
Best regards
Massimo <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
Auto selectable menu.
|
Massimo:
Thank you. I'll give it a try.
|
Auto sort 2 columns in xbrowse?
|
Mr. Rao:
In xBrowse is it possible to auto sort 2 or more columns? For example, I want to sort by product brand and then by product code, is it possible?
Best regards
|
Auto sort 2 columns in xbrowse?
|
if it is DBF:
a) if you have an index on brand + code, assign that index tag name to oCol:cSortOrder
b) otherwise create a temporary index and assign that index tag name to oCol:cSortOrder and the index name to oCol:cOrdBag.
For Recordset, rowset, etc.
oCol:cSortOrder := "brand,code"
|
Auto sort 2 columns in xbrowse?
|
Mr. Rao:
I apologize for not giving complete information, I use xBrowse with RecordSet,
so my idea is that by clicking on the brand column header, then clicking on the
product column header, they are sorted by product within each brand, just like excel does,
¿is it possible?
Best regards
|
Auto start vscode from Windows bash
|
This is a very neat trick <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
1. From a Windows cmd run "bash"
2. From the bash run "code ."
Really cool <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
Auto text in gets
|
Antonio,
is possible include auto text (like Internet Explorer) in gets?
I wish type the text and auto text fill a list of keywords available in an array.
Thanks!
Maurilio
|
Auto text in gets
|
Gracias, Oskar!
Salu2
Maurilio
|
Auto text in gets
|
Hello oskar
Thank you for your post.
I get it and work now.
Regards,
Richard
|
Auto-Close Application On Timer (Resolved)
|
I need to activate a timer to close files and applications when the time is over.
I would like to set a timer to 60 minutes or more, automatically close the application if the user does not interact with the application, upon detection of no keyboard input and no mouse movement.
I have auto-backup routines and various data updates to execute, but the procedure fails due to no access to data files.
As seen over many years and years, the clients never log off or exit application before leaving offices.
I want to close applications and free data files for further processing.
I have seen this forum for a possible solution but did not find any help.
Thank you in advance for any guidance
|
Auto-Close Application On Timer (Resolved)
|
Hi,
Maybe this can help.
[url:20anspeu]http://forums.fivetechsupport.com/viewtopic.php?p=114795#p114795[/url:20anspeu]
|
Auto-Close Application On Timer (Resolved)
|
Yes, Thanks Hakan Onemli
This is fine and works very well..
I have converted tinativo to LIB and attached it to my application.
Will upload on to servers and check results....
Regards
|
Auto-Close Application On Timer (Resolved)
|
Hello,
I'm interested also in this app.
Can you confirm it's working and maybe share the code/lib that has a working code ?
How did you implement it into your app?
|
Auto-Close Application On Timer (Resolved)
|
Hello Mark,
Yes, I tested this extensively yesterday, in many scenarios.
It detects non-keyboard and non-mouse movement for the period defined.
It works as desired, I just activated the timer on the main window of the application.
It is activated as soon as the application is executed.
The timer is activated and valid as..
If the application is at the main windows. (Works)
If the application is in any dialog or at a GET. (Works)
If the application is minimized. (Works)
If the user has the application open of any dialog and waiting at a GET and working on a xls worksheet. (Works)
My code is below as the MAIN.PRG
[code=fw:2ih54r56]<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;">// Declare Static Variables</span><br /><br /> <span style="color: #00C800;">STATIC</span> nWait_Time,cThe_Func,lTime_Cont <br /><br />*---------------------------------------------------------------------------*<br /> <span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span> CompPara, YearPara <span style="color: #000000;">)</span><br />*---------------------------------------------------------------------------*<br /><br /><span style="color: #B900B9;">// Assign parameters to variables</span><br /><br /> nWait_Time := <span style="color: #000000;">5400000</span> <span style="color: #B900B9;">// = 90 Minutes // Time to wait until calling function</span><br /> cThe_Func := <span style="color: #ff0000;">"iRtrn:=Exit(.T.)"</span> <span style="color: #B900B9;">// Name of the function to be called when Timer time is reached</span><br /> lTime_Cont := .F. <span style="color: #B900B9;">// After executing the function, continue to monitor Keep as .F.</span><br /><br /><span style="color: #B900B9;">// Define main window and activate.. </span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oMainWnd <span style="color: #0000ff;">TITLE</span> S_Name <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">MDI</span><br /><br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span> your routines....<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oMainWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> BuildTimer<span style="color: #000000;">(</span> oMainWnd <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Nil</span> <span style="color: #000000;">)</span> <br /> <br />*---------------------------------------------------------------------------*<br /> <span style="color: #00C800;">FUNCTION</span> BuildTimer<span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br />*---------------------------------------------------------------------------*<br /><br />TinaTivo<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>nWait_Time,cThe_Func,lTime_Cont<span style="color: #000000;">)</span> <span style="color: #B900B9;">// Add tinativo.lib To MAK File</span><br /> <br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Nil</span> <span style="color: #000000;">)</span><br /> </div>[/code:2ih54r56]
Mark, I do not how to upload the lib or the prg files here on the forum.
If you can share your email address, it can be sent to you.
Regards
|
Auto-Close Application On Timer (Resolved)
|
Send me at zip file with sources, mak, and lib and I upload your work to "Fivewin Contributions" repository
|
Auto-Close Application On Timer (Resolved)
|
Thanks, Navarro
Regards
|
Auto-Close Application On Timer (Resolved)
|
[quote="cnavarro":29sv1lis]Send me mail zip file with sources, mak, and lib and I upload your work to "Fivewin Contributions" repository[/quote:29sv1lis]
I will wait for the upload to contributions, so please send to him.
Thanks
|
Auto-Close Application On Timer (Resolved)
|
Already sent via email to cristobal
Regards
|
Auto-Close Application On Timer (Resolved)
|
Updated repository, thanks
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fivewin-contributions/downloads/TINATIVO.zip">https://bitbucket.org/fivetech/fivewin- ... NATIVO.zip</a><!-- m -->
|
Auto-backup -timer question.
|
Hi,
According to the problem I had with
[url:3qqasu49]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37039[/url:3qqasu49]
I have create a little program to make a SQL-backup.
I want to do a backup every hour. Each time he create another file-name, so there is no overwrite. Now I keep 30 versions of a backup
Now is my question, what is the best.
Calling each time the program with Window Schedule, or start the program, and create a backup each hour with timer in FW?
|
Auto-backup -timer question.
|
Hello Marc,
are you using an inhouse server or is the SQL database hosted somewhere.
Best regards
Otto
|
Auto-backup -timer question.
|
Otto,
I use it on a NAS with MariaDB of a customer that had the Hack-problem.
Now I installed the backup-program on a PC, and start the backup with Windows Schedule, that create it on the local harddisk.
It's working fine now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Auto-backup -timer question.
|
In my opinion, Windows Schedule is better.
For backup, FWH has its own built-in backup and restore methods, which are quite fast.
[code=fw:32kb7fue]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oCn<br /> <br /> oCn := maria_Connect<span style="color: #000000;">(</span> <server>, <db>, <user>, <pw> <span style="color: #000000;">)</span><br /> oCn:<span style="color: #000000;">BackUp</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span><db><span style="color: #000000;">]</span>, <cDstFile> <span style="color: #000000;">)</span><br /> oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:32kb7fue]
|
AutoBackgrd-Color (SayGet) related to Fontcolor (Contrast)
|
Hello,
looking for a solution, to show a font with a selected color on a contrast-background,
I used with a little change the Contrast-function from xBrowse.
Using different Fontcolors on Say on Get, the needed Background is automatically selected,
to show a visible text.
Because of fontcolor < RED >, the Say-background-color changed to white :
[img:29a65qm6]http://www.pflegeplus.com/pictures/colradjust.jpg[/img:29a65qm6]
Sample :
[code=fw:29a65qm6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oTime <span style="color: #0000ff;">PROMPT</span> cTime <span style="color: #0000ff;">ID</span> <span style="color: #000000;">510</span> <span style="color: #0000ff;">OF</span> oDlg2 <span style="color: #0000ff;">UPDATE</span><br />oTime:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nTimeColor, GET_CONTR<span style="color: #000000;">(</span>nTimeColor<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />oTime:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oTimeFont <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">OF</span> oDlg2 ;<br /><span style="color: #0000ff;">ID</span> <span style="color: #000000;">130</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> ;<br />NOBORDER ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Time-color"</span> ;<br />FILENAME c_path + <span style="color: #ff0000;">"<span style="color: #000000;">\I</span>mages<span style="color: #000000;">\S</span>elect.Bmp"</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nTimeColor := ChooseColor<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oTime:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nTimeColor, GET_CONTR<span style="color: #000000;">(</span>nTimeColor<span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ;<br /> oTime:<span style="color: #0000ff;">Refresh</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">FONT</span> oBrwFont ;<br /><span style="color: #0000ff;">LEFT</span><br />oBtn1:<span style="color: #000000;">lTransparent</span> := .t. <br />oBtn1:<span style="color: #000000;">cToolTip</span> = <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Time-"</span> + CRLF + <span style="color: #ff0000;">"Color"</span>,<span style="color: #ff0000;">"Color-Selection"</span>, <span style="color: #000000;">1</span>, CLR_BLACK, <span style="color: #000000;">14089979</span> <span style="color: #000000;">}</span><br />oBtn1:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">)</span><br />...<br />...<br /><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> GET_CONTR<span style="color: #000000;">(</span>nFontClr<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nClr, nLuma, nContrast<br /><br />nContrast := nFontClr<br /><br /><span style="color: #B900B9;">// Fontcolor</span><br />nLuma := <span style="color: #000000;">(</span> <span style="color: #000000;">0.299</span> * nRGBRed<span style="color: #000000;">(</span> nFontClr <span style="color: #000000;">)</span> + <span style="color: #000000;">0.587</span> * nRGBGreen<span style="color: #000000;">(</span> nFontClr <span style="color: #000000;">)</span> + <span style="color: #000000;">0.114</span> * nRGBBlue<span style="color: #000000;">(</span> nFontClr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br />nContrast := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nLuma < <span style="color: #000000;">150</span>, CLR_WHITE, CLR_BLACK <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> nContrast<br /> </div>[/code:29a65qm6]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
AutoCode 5
|
It is a long time I didn’t remember this little tool idea.
Today I compiled the code and inserted a prototype for XBrowse.
Best regards,
Otto
[url:3b8gd79x]http://www.atzwanger-software.com/fw/autocode/Aufnahme-4/Aufnahme-4.html[/url:3b8gd79x]
|
AutoCode 5
|
See all the amazing new things autocode5 can do:
[url:318159zl]http://www.atzwanger-software.com/fw/autocode/autocode2/autocode2.html[/url:318159zl]
|
AutoCode 5
|
Otto,
That tool looks fantastic.
Where can we get it ?
Thanks for sharing this with us.
|
AutoCode 5
|
Otto,
Great idea and superb implementation! Many thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
AutoCode 5
|
I found no reference in fivewin forum about this Autocode, where is the source Otto? It's very nice idea with UESTUDIO. Could you tell us more about it.
|
AutoCode 5
|
Dear Otto,
How nice!
Dutch
|
AutoCode 5
|
Antonio qué es lo que me pierdo? Dónde está para probarlo?
|
AutoCode 5
|
To all,
if someone is interested here is a first demo:
[url:2jsyq8wc]http://www.atzwanger-software.com/fw/ACD5.zip[/url:2jsyq8wc]
At the moment we have ready only a few classes like:
GET
BTNBMP
BUTTON
BUTTONBMP
RBBTN
SAY
XBROWSE
ACTIVATE DIALOG
ADD GROUP
DEFINE BRUSH
DEFINE BUTTON
DEFINE DIALOG
DEFINE PEN
DEFINE RIBBONBAR
DEFINE WINDOW
Best regards,
Otto
|
AutoCode 5
|
Thanks Otto.
|
AutoCode editing xbrowse
|
AutoCode a RAD-Tool for FW
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fw/ACxBrowse.mp4">http://www.atzwanger-software.com/fw/ACxBrowse.mp4</a><!-- m -->
Best regards,
Otto
|
AutoCode editing xbrowse
|
Otto,
Very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Where Autocode may be downloaded from ?
|
AutoCode editing xbrowse
|
Hello Antonio,
here is the link:
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fh/autocode.zip">http://www.atzwanger-software.com/fh/autocode.zip</a><!-- m -->
Best regards,
Otto
|
AutoCode editing xbrowse
|
Otto,
many thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
AutoCode editing xbrowse
|
Otto, very very good
|
AutoCode editing xbrowse
|
Hello Otto;
I just looked at the video demonstrating how it works. Nice.
Will it work with resources? as in REDEFINE XBROWSE ::oBrw ID 101 OF ....
Hope you continue to do well.
Reinaldo.
|
AutoCode for WEB
|
AutoCode for WEB
[img:gg69tmwd]https://mybergland.com/fwforum/autocodeweb.gif[/img:gg69tmwd]
|
AutoCode for WEB
|
AutoCode for WEB
[img:2et94tek]https://mybergland.com/fwforum/autocodeweb.gif[/img:2et94tek]
|
AutoCode for WEB
|
AutoCode for WEB
[img:dskwhbxi]https://mybergland.com/fwforum/autocodeweb.gif[/img:dskwhbxi]
|
AutoCode for WEB
|
[img:1jiyzpl6]https://mybergland.com/fwforum/autocodeweb2.jpg[/img:1jiyzpl6]
|
AutoCode for WEB
|
Status of AutoCode4Web
The taglist is complete now. And I can start working with the program.
I think I must insert TABs to the xBrowse to separate Attributes, Global Attributes, and Event methods.
[img:igw5005l]https://mybergland.com/auoptcode/autocode2.gif[/img:igw5005l]
|
AutoCode for WEB
|
Hello friends,
When I searched the internet for:
[b:46fcgzpq]How do you take notes while learning a programming language?
I found on quora.com[/b:46fcgzpq]
[quote:46fcgzpq]When learning programming or learning anything else, I write down all the teachers, instructors, or professors saying that "important, need to write down or need to remember or ... on tests ...".
When I read books on programming or seeing anywhere that there is things which I do not know yet, seem to be good or interesting
to me then I write down on my notebook if I have it at hand. I do that consistently because I know if I don not,
I will forget quickly the important points I like to remember. I also know that whenever I write anything down I read it in my mind,
I see it (learning thruogh my eyes), my brain learns through my fingers guiding the pen to make words with meanings appear!
[/quote:46fcgzpq]
Therefore I extended the documentation possibilities of AutoCode4Web.
Now it is possible to have for every element and tag an attached RTF file which I can edit with MS-Write.
[img:46fcgzpq]https://mybergland.com/auoptcode/autocodertfhelp0.jpg[/img:46fcgzpq]
[img:46fcgzpq]https://mybergland.com/auoptcode/autocodertfhelp1.jpg[/img:46fcgzpq]
|
AutoCode5 - new update
|
[url:3ozz91yb]http://www.atzwanger-software.com/fw/ACD5DEMO.Zip[/url:3ozz91yb]
Best regards,
Otto
|
AutoCode5 - new update
|
Mis desculpas Otto, mas para que sirve AutoCode5 ??
Gracias
Saludos.
|
AutoCode5 - new update
|
[url:1kkfo48y]http://www.atzwanger-software.com/fw/autocode2/autocode2.html[/url:1kkfo48y]
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23720&p=127573#p127573">viewtopic.php?f=3&t=23720&p=127573#p127573</a><!-- l -->
Best regards,
Otto
|
AutoCode5 - new update
|
Hallo
Heute sah ich das Video Ihrer Show, die ich in der Liebe WinHotel Daten fiel schirmt sehr modern hoffe, eines Tages, um die Dinge so schön wie deine <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
|
AutoCode5 - new update
|
Hallo Aida,
vielen Dank für die netten Worte und liebe Grüße aus Österreich, Tirol,
Otto
PS: Have you tried AutoCode5?
|
AutoCode5 - new update
|
Heute werde ich den AutoCode5? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Einen schönen Tag noch <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
AutoCode5 - new update
|
Aida,
AutoCode
Present demo expires by 30 April you have to download the new demo which is extended till 31 May.
Added syntax for METROPANEL and METROBUTTON.
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fw/ACD5DEMO.Zip">http://www.atzwanger-software.com/fw/ACD5DEMO.Zip</a><!-- m -->
Best regards,
Otto
|
AutoComplete
|
Hello All!
Windows API have one function "SHAutoComplete" from "shlwapi.dll"
But I do try fail, somebody can help me ? I hope have like IE address URL autocomplete function.
[code:h5r2qkks]
// harbour: AutoComplete( hWnd )
HRESULT (CALLBACK* lpSHAutoComplete)(HWND ,DWORD);
HB_FUNC( AUTOCOMPLETE )
{
// LONG nRet;
LONG nRet;
HWND hWnd = (HWND) hb_parnl(1); // Dialog hWnd
HINSTANCE hIns = LoadLibrary("shlwapi.dll");
if (hIns != NULL) {
(FARPROC *) lpSHAutoComplete = GetProcAddress(hIns, "SHAutoComplete");
if (lpSHAutoComplete != NULL) {
nRet = lpSHAutoComplete( hWnd, 0);
hb_retnl( nRet );
}
else
hb_retnl(-2);
FreeLibrary(hIns);
}
else
hb_retnl(-1);
return;
}
[/code:h5r2qkks]
|
AutoComplete
|
What return value do you get ?
|
AutoComplete
|
[quote="Antonio Linares":26if0rc6]What return value do you get ?[/quote:26if0rc6]
Zero(0), It's OK, no error,
But, EditBox or Combobox have not 'AutoComplete' function.
|
AutoComplete
|
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=6726&highlight=tautoget">http://fivetechsoft.com/forums/viewtopi ... t=tautoget</a><!-- m -->
Regards,
Maurilio
|
AutoComplete
|
[quote="Maurilio Viana":2h1fyeab]http://fivetechsoft.com/forums/viewtopic.php?t=6726&highlight=tautoget
Regards,
Maurilio[/quote:2h1fyeab]
I know it, But that is not my request.
|
AutoDetect to Screen Resolution
|
How can I stable screen positions (says,get,buttons) regardless screen resoultion ?
|
AutoML and NASNet
|
Wonderful!
EMG
|
AutoML and NASNet
|
[url:3kdeqnl9]https://research.googleblog.com/2017/11/automl-for-large-scale-image.html[/url:3kdeqnl9]
|
AutoML and NASNet
|
Muy bueno Antonio
Gracias
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.