messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2019-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Charles,\n\nGood job.",
"time": "01:10",
"topic": "Add some functions for Tensorflow",
"username": "richard-service"
}
] |
Add some functions for Tensorflow
|
[
{
"date": "2019-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Richard,\nI already add a Tensorflow graph browser^^\n\n\n[code=fw:1d84ra32]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oTF := TensorFlow<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nOp<br /> <span style=\"color: #00C800;\">LOCAL</span> nCounter := <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> nPos := <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nOld := <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> aInfo := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAL</span> aGraphInfo := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br /> oTF:<span style=\"color: #000000;\">ImportGraph</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"graph.pb\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">WHILE</span> .T.<br /> nOp := oTF:<span style=\"color: #000000;\">GraphNextOperation</span><span style=\"color: #000000;\">(</span> @nPos <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> nOp == <span style=\"color: #000000;\">0</span><br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> aInfo := <span style=\"color: #000000;\">{</span> TF_OperationName<span style=\"color: #000000;\">(</span> nOp <span style=\"color: #000000;\">)</span>,TF_OperationOpType<span style=\"color: #000000;\">(</span> nOp <span style=\"color: #000000;\">)</span>, TF_OperationDevice<span style=\"color: #000000;\">(</span> nOp <span style=\"color: #000000;\">)</span>, TF_OperationNumOutputs<span style=\"color: #000000;\">(</span> nOp <span style=\"color: #000000;\">)</span>, TF_OperationNumInputs<span style=\"color: #000000;\">(</span> nOp <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> AADD <span style=\"color: #000000;\">(</span> aGraphInfo, aInfo <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> nPos == nOld<br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><br /> Show_TFGraphInfo<span style=\"color: #000000;\">(</span> aGraphInfo <span style=\"color: #000000;\">)</span><br /><br /><br /><br /> <span style=\"color: #B900B9;\">// MsgInfo( oTF:Version() )</span><br /> <span style=\"color: #B900B9;\">// oTF:Run( oTF:Mul( oTF:Constant( 5, \"Five\" ), oTF:Constant( 3, \"three\" ) ) )</span><br /> <span style=\"color: #B900B9;\">// MsgInfo( oTF:Output() )</span><br /><br /> oTF:<span style=\"color: #000000;\">End</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 /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> Show_TFGraphInfo<span style=\"color: #000000;\">(</span> aGraphInfo <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> oWnd, oBar, oBrw<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Tensorflow Graph information\"</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">100</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> OBAR <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> GROUP<br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> GROUP<br /><br /> SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"c)Charles Kwon\"</span> <span style=\"color: #000000;\">2007</span><br /><br /> @ <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oWnd ;<br /> COLUMNS <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;\">5</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"Operation Name\"</span>,<span style=\"color: #ff0000;\">\"Type\"</span>,<span style=\"color: #ff0000;\">\"Device\"</span>,<span style=\"color: #ff0000;\">\"Output\"</span>, <span style=\"color: #ff0000;\">\"Inpout\"</span> ;<br /> COLSIZES <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">100</span> ;<br /> ARRAY aGraphInfo CELL<br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> oWnd:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /> </div>[/code:1d84ra32]",
"time": "03:03",
"topic": "Add some functions for Tensorflow",
"username": "CharlesKwon"
}
] |
Add some functions for Tensorflow
|
[
{
"date": "2019-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you.\n\nCan you please share graph.pb and tensorflow.dll?.",
"time": "21:30",
"topic": "Add some functions for Tensorflow",
"username": "MOISES"
}
] |
Add some functions for Tensorflow
|
[
{
"date": "2019-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Up",
"time": "19:47",
"topic": "Add some functions for Tensorflow",
"username": "MOISES"
}
] |
Add some functions for Tensorflow
|
[
{
"date": "2019-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Charles,\nthank you so much for your work.\nI am very interested in this new techniques.\nWould you be so kind to advice a novice some basic literature where to start.\n\nBest regards \nOtto",
"time": "21:20",
"topic": "Add some functions for Tensorflow",
"username": "Otto"
}
] |
Add some functions for Tensorflow
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think add tooltip to tget class is better than nower message to the user to have a input guide.\n\nShuming Wang",
"time": "05:47",
"topic": "Add tooltip to Tget",
"username": "ShumingWang"
}
] |
Add tooltip to Tget
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Shuming,\n\nYou may do:\n\n<oAnyControl>:cTooltTip = <cText>",
"time": "08:14",
"topic": "Add tooltip to Tget",
"username": "Antonio Linares"
}
] |
Add tooltip to Tget
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n Thank you!\nShuming Wang",
"time": "08:18",
"topic": "Add tooltip to Tget",
"username": "ShumingWang"
}
] |
Add tooltip to Tget
|
[
{
"date": "2016-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "is it possible ad a ruler also on richedit class ?",
"time": "12:26",
"topic": "AddHRuler()",
"username": "Silvio.Falconi"
}
] |
AddHRuler()
|
[
{
"date": "2016-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nIt seems as Windows does not provide a ruler for the standard RichEdit control\n\nHere there is an example to implement one:\n[url:37chmjd2]http://www.codeproject.com/Articles/22783/Advanced-Text-Editor-with-Ruler[/url:37chmjd2]",
"time": "01:01",
"topic": "AddHRuler()",
"username": "Antonio Linares"
}
] |
AddHRuler()
|
[
{
"date": "2016-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nI saw your richedit box at fw for apple ...\nfrom source of codeproject you not Know how make it on richedit ?\nor perhaps modifing the tregla class",
"time": "10:59",
"topic": "AddHRuler()",
"username": "Silvio.Falconi"
}
] |
AddHRuler()
|
[
{
"date": "2016-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nYou can place a bitmap over the richedit control with the ruler painted",
"time": "11:34",
"topic": "AddHRuler()",
"username": "Antonio Linares"
}
] |
AddHRuler()
|
[
{
"date": "2016-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I thinked we can use the slider control used to mage choosegradient function but only U can create it because I not see choosegradient source",
"time": "12:45",
"topic": "AddHRuler()",
"username": "Silvio.Falconi"
}
] |
AddHRuler()
|
[
{
"date": "2007-03-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos,\n\nDonde puedo encontrar información sobre este método y función, y cómo poder usarlos?\n\nSaludos y gracias.\nCarlos G.",
"time": "09:39",
"topic": "AddMethod() y __clsAddMsg()",
"username": "FiveWiDi"
}
] |
AddMethod() y __clsAddMsg()
|
[
{
"date": "2011-08-10",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Implemented colors support for browse lines, both background and text, example:\n\n[code=fw:1kakecax]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveLinux.ch\"</span><br /><br />REQUEST DBFCDX<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> oWnd, oBrw<br /><br /> USE customer VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Testing Browses\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">522</span>, <span style=\"color: #000000;\">317</span><br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> BROWSE oBrw <span style=\"color: #0000ff;\">OF</span> oWnd ;<br /> HEADERS <span style=\"color: #ff0000;\">\"First\"</span>, <span style=\"color: #ff0000;\">\"Last\"</span>, <span style=\"color: #ff0000;\">\"Street\"</span>, <span style=\"color: #ff0000;\">\"City\"</span>, <span style=\"color: #ff0000;\">\"State\"</span>, <span style=\"color: #ff0000;\">\"Zip\"</span> ;<br /> FIELDS First, Last, Street, City, State, Zip<br /><br /> oBrw:<span style=\"color: #000000;\">nClrPane</span> = <span style=\"color: #000000;\">{</span> | nRow, lSelected | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! lSelected, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nRow % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, CLR_GREEN, CLR_WHITE <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <br /> oBrw:<span style=\"color: #000000;\">nClrText</span> = <span style=\"color: #000000;\">{</span> | nRow, lSelected | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! lSelected, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nRow % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, CLR_YELLOW, CLR_BLACK <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <br /><br /> @ <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"_Ok\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ACTION</span> oWnd:<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;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1kakecax]\n\n[img:1kakecax]http://img233.imageshack.us/img233/8485/screenshotmf.png[/img:1kakecax]",
"time": "16:30",
"topic": "Added support for colors in browse lines",
"username": "Antonio Linares"
}
] |
Added support for colors in browse lines
|
[
{
"date": "2011-08-12",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Intresting",
"time": "23:29",
"topic": "Added support for colors in browse lines",
"username": "mbelgrano"
}
] |
Added support for colors in browse lines
|
[
{
"date": "2006-02-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Is it possible to add context specific help to a 'Say'?\n\nThis line compiles fine:\n\nReDefine Say ioTELEPHONE Var cTELEPHONE ID 103 Of oDlg HelpID\n\nbut if you add ANYTHING after the HelpID like:\n\nReDefine Say ioTELEPHONE Var cTELEPHONE ID 103 Of oDlg HelpID 5000\n\nyou get an error.\n\nNow you may wonder why I would want a HelpID on a 'Say'.\n\nWell let me tell you:\n\nI have changed the resource type of all of my 'Says' (or LTEXT) on my 'view' dialogs to 'Gets' (or EDITTEXT) and made them readonly (but left them as 'Says' in the code). This has had the wonderous effect of displaying the 'Says' exactly as the 'Gets' appear (with beautiful borders around them and a different background color) and has given me the additional facility to actually click on a 'Say' but you cannot edit the field only navigate to the 'Say'.\n\nSo I might as well then add context specific help to the 'Says' if possible!!!\n\nRegards,\n\nDale.",
"time": "11:14",
"topic": "Adding Context Specific Help to a Say",
"username": "dpaterso"
}
] |
Adding Context Specific Help to a Say
|
[
{
"date": "2006-02-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Actually - I even discovered another benefit of doing it this way:\n\nI can actually copy and paste from a 'Say' to somewhere else if needed!!! How about that!\n\n(Thanks Enrico)!\n\nRegards,\n\nDale.",
"time": "11:20",
"topic": "Adding Context Specific Help to a Say",
"username": "dpaterso"
}
] |
Adding Context Specific Help to a Say
|
[
{
"date": "2021-11-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Is it possible to log events in the EventLog of Windows using FiveWin?\n\nThanks, \n\nByron ...",
"time": "23:44",
"topic": "Adding Events to the EventLog in Windows",
"username": "byron.hopp"
}
] |
Adding Events to the EventLog in Windows
|
[
{
"date": "2021-11-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi,\n\nthere is a Sample under \\HARBOUR\\contrib\\hbwin\\tests\\eventlog.prg in HMG using win_ReportEvent() from HbWin\n[code=fw:2xhuodo8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#require <span style=\"color: #ff0000;\">\"hbwin\"</span><br />PROCEDURE Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ? win_ReportEvent<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #ff0000;\">\"Application\"</span>, WIN_EVENTLOG_SUCCESS, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"hello\"</span> <span style=\"color: #000000;\">)</span><br /> ? win_ReportEvent<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #ff0000;\">\"Application\"</span>, WIN_EVENTLOG_SUCCESS, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"hello\"</span>, <span style=\"color: #ff0000;\">\"world\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span><br /> </div>[/code:2xhuodo8]\ni have not found any other Sample using win_ReportEvent()",
"time": "02:19",
"topic": "Adding Events to the EventLog in Windows",
"username": "Jimmy"
}
] |
Adding Events to the EventLog in Windows
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Everybody,\n\nI have looked at many posts and am trying to add external DLL calls to my app.\n\nCan someone please tell me where I am going wrong.\n\n\nSyntax :\nFunction Connect() as String\nReturn values:\nSuccess - Port number\nError - Empty String\n\nDLL32 FUNCTION Connect() AS LPSTR PASCAL LIB \"\\Ez\\dll\\POx.DLL\"\n\n\n\nSyntax :\nFunction Handshake() as Boolean\nReturn values:\nSuccess - TRUE\nError - FALSE\n\nDLL32 FUNCTION Handshake() AS BOOL PASCAL LIB \"\\Ez\\dll\\POx.DLL\" \n\n\n\nSyntax :\nFunction SetID(id as String) as Boolean\nReturn values:\nSuccess - TRUE\nError - FALSE\n\nDLL32 FUNCTION SetID(ID AS LPSTR) AS WORD PASCAL LIB \"\\Ez\\dll\\POx.DLL\" \n\n\n\nSyntax :\nFunction SetTime( cur_time as Date) as Boolean\nReturn values:\nSuccess - TRUE\nError - FALSE\n\nDLL32 FUNCTION SetTime(cur_time AS Date) AS WORD PASCAL LIB \"\\Ez\\dll\\POx.DLL\" \n\n\n\nSyntax :\nFunction SetInterval(interval as Integer) as Boolean\nReturn values:\nSuccess - TRUE\nError - FALSE\n\nDLL32 FUNCTION SetInterval(interval AS LONG) AS WORD PASCAL LIB \"\\Ez\\dll\\POx.DLL\" \n\n\nSyntax :\nFunction GetData(data_array()) as integer\nReturn values:\nSuccess - Number of Data lines\nError - 0\n\nDLL32 FUNCTION GetData(data_array()) AS LONG PASCAL LIB \"\\Ez\\dll\\POx.DLL\" \n\nThanks,\nJeff",
"time": "15:32",
"topic": "Adding External DLL Calls",
"username": "Jeff Barnes"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jeff,\n\nTry it this way:\n\n[code:2ncxpy3h]local hPOX := LoadLibrary( \"\\ez\\dll\\POX.DLL\" )\n\nDLL32 FUNCTION ... LIB hPOX\n\n...\n\nFreeLibrary( hPOX )[/code:2ncxpy3h]\n\nJames",
"time": "15:58",
"topic": "Adding External DLL Calls",
"username": "James Bott"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James,\n\nWhen I try it that way and issue the Connect() command I get the following error:\n\nUnrecoverable error 9003:\nToo many recursive error handler calls",
"time": "16:10",
"topic": "Adding External DLL Calls",
"username": "Jeff Barnes"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jeff,\n\nI'm not experienced with DLL32 calls, but I notice other working calls (in my notes) use the FROM clause and the same name as the function with a trailing \"A\" so you might try:\n\nDLL32 FUNCTION Connect ... FROM \"ConnectA\" LIB hPOX\n\nIf that doesn't work, hopefully someone else with DLL experience will help.\n\nJames",
"time": "17:01",
"topic": "Adding External DLL Calls",
"username": "James Bott"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for trying James ... Still no luck.",
"time": "17:31",
"topic": "Adding External DLL Calls",
"username": "Jeff Barnes"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Jeff Barnes\":29qkd50d]Syntax :\nFunction Connect() as String\nReturn values:\nSuccess - Port number\nError - Empty String\n\nDLL32 FUNCTION Connect() AS LPSTR PASCAL LIB \"\\Ez\\dll\\POx.DLL\"[/quote:29qkd50d]\n\nAs far as I know, you can't return a string from a DLL function. Do you have any VB samples?\n\n[quote=\"Jeff Barnes\":29qkd50d]Syntax :\nFunction SetID(id as String) as Boolean\nReturn values:\nSuccess - TRUE\nError - FALSE\n\nDLL32 FUNCTION SetID(ID AS LPSTR) AS WORD PASCAL LIB \"\\Ez\\dll\\POx.DLL\"[/quote:29qkd50d]\n\nAS BOOL instead of AS WORD.\n\n[quote=\"Jeff Barnes\":29qkd50d]DLL32 FUNCTION SetTime(cur_time AS Date) AS WORD PASCAL LIB \"\\Ez\\dll\\POx.DLL\"[/quote:29qkd50d]\n\nThere's nothing like AS Date.\n\n[quote=\"Jeff Barnes\":29qkd50d]DLL32 FUNCTION GetData(data_array()) AS LONG PASCAL LIB \"\\Ez\\dll\\POx.DLL\"[/quote:29qkd50d]\n\nThere's nothing like data_array() without data type.\n\nEMG",
"time": "19:32",
"topic": "Adding External DLL Calls",
"username": "Enrico Maria Giordano"
}
] |
Adding External DLL Calls
|
[
{
"date": "2007-08-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Enrico,\n\nPlease check your email.\n\n\nThanks,\nJeff",
"time": "19:56",
"topic": "Adding External DLL Calls",
"username": "Jeff Barnes"
}
] |
Adding External DLL Calls
|
[
{
"date": "2015-10-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I tested a solution adding buttonframes on METRO - buttons on action / click \nbecause there is a missing visible effect. ( showing white button-frames like in Windows10 )\nI would like to do this on mousecaption as well, but bGotfocus and bLostfocus doesn't work !\nThe solution takes care of using normal or large buttons.\n\nIt is working for me, but maybe there is still another solution possible.\nI noticed changing the button-pos., there is a problem.\n\n[img:stj7nkwt]http://www.pflegeplus.com/IMAGES/Mbtnframe1.jpg[/img:stj7nkwt]\n\n[img:stj7nkwt]http://www.pflegeplus.com/IMAGES/Mbtnframe2.jpg[/img:stj7nkwt]\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/MBtnframe1.zip\">http://www.pflegeplus.com/DOWNLOADS/MBtnframe1.zip</a><!-- m -->\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "17:27",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "ukoenig"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nYour solution is a good one anyhow\n\nHow did you try it using bGotfocus and bLostfocus ?",
"time": "10:10",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "Antonio Linares"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI only changed / tested :\n\nDEFINE METROBUTTON oMBtn[1] OF oMetro ;\nPROMPT \"Files\" COLOR CLR_WHITE, RGB( 2, 174, 224 ) ;\nGROUP 1 ;\nIMAGE c_Path1 + \"files.bmp\" ;\nACTION MsgInfo( oMBtn[1]:Cargo , ValType( oMBtn[1]:Cargo) ) // Files(c_Path1)\n// [color=#0040FF:9ob804ag]oMBtn[1]:bLClicked := {|| SHOW_FRAME(oMBtn, 1, nOld), nOld := 1 }[/color:9ob804ag]\n[color=#008000:9ob804ag]oMBtn[1]:bGotFocus := {|| SHOW_FRAME(oMBtn, 1, nOld), nOld := 1 }[/color:9ob804ag]\noMBtn[1]:oFont := oFontSmall\n\nbut NO response\nwith the other solution I posted, there is still a problem changing the button-positions.\nI think the frame-painting on bGotfocus and bLostfocus would be the best.\nIt is the same, like shown in Windows10\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "11:38",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "ukoenig"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe\n\nAre you using?\n\n[code=fw:22xnwf74]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />IsOverWnd<span style=\"color: #000000;\">(</span> hWnd, nRow, nCol <span style=\"color: #000000;\">)</span> --> lOver<br /><br /> </div>[/code:22xnwf74]",
"time": "11:56",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "cnavarro"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nPlease try this to check if the codeblock is evaluated:\n\noMBtn[1]:bGotFocus := {|| MsgInfo( \"yes\" ), SHOW_FRAME(oMBtn, 1, nOld), nOld := 1 }",
"time": "11:57",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "Antonio Linares"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\ntested, but there is NO response at all.\n\nbest regards\nUwe <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->",
"time": "12:28",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "ukoenig"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2015-10-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\n[b:3ekgvwu2]I got it working[/b:3ekgvwu2]\nNow it looks like shown in Windows10.\nThe solution I have been looking for : painting a frame on button-focus.\n\nMaybe possible to include the logic in class < [b:3ekgvwu2]Metropnl[/b:3ekgvwu2] > like :\n\n <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \noMetro:lBtnFrame := .T. // frame YES / NO\noMetro:nBtnFramePen := 4 // Pensize\noMetro:nBtnFrameCol := CLR_WHITE // frame-color\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/MetroBtn1.zip\">http://www.pflegeplus.com/DOWNLOADS/MetroBtn1.zip</a><!-- m -->\n\nInstead using frames, it is possible to display a image on button-caption\n\n[img:3ekgvwu2]http://www.pflegeplus.com/IMAGES/Metrobtn3.jpg[/img:3ekgvwu2]\n\n[code=fw:3ekgvwu2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> SHOW_FRAME<span style=\"color: #000000;\">(</span>oBtn, n, nOld, c_path1<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> I, oImage<br /><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">(</span> oBtn <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> oBtn<span style=\"color: #000000;\">[</span>I<span style=\"color: #000000;\">]</span> <> <span style=\"color: #00C800;\">NIL</span> <br /> <span style=\"color: #00C800;\">IF</span> I = nOld .and. n <> nOld<br /> oBtn<span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #B900B9;\">// Using frames</span><br /> <span style=\"color: #B900B9;\">//IF oBtn[I]:lLarge = .F. .and. i = n</span><br /> <span style=\"color: #B900B9;\">// RoundBox( hDC := oBtn[n]:GETDC(), 2, 2, oBtn[i]:nWidth()-1, ;</span><br /> <span style=\"color: #B900B9;\">// oBtn[i]:nHeight(), , , CLR_WHITE, 4 ) </span><br /> <span style=\"color: #B900B9;\">// ELSEIF oBtn[I]:lLarge = .T. .and. i = n</span><br /> <span style=\"color: #B900B9;\">// RoundBox( hDC := oBtn[n]:GETDC(), 2, 2, oBtn[i]:nWidth() -1, ;</span><br /> <span style=\"color: #B900B9;\">// oBtn[i]:nHeight(), , , CLR_WHITE, 4 ) </span><br /> <span style=\"color: #B900B9;\">// ENDIF</span><br /> hDC := oBtn<span style=\"color: #000000;\">[</span>n<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">GETDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oImage := FILoadImg<span style=\"color: #000000;\">(</span> c_path1 + <span style=\"color: #ff0000;\">\"Select.bmp\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// can be different each button-group </span><br /> ABPaint<span style=\"color: #000000;\">(</span> hDC, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span>, oImage, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:3ekgvwu2]\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "15:49",
"topic": "Adding Metrobutton-frames on button-focus / action",
"username": "ukoenig"
}
] |
Adding Metrobutton-frames on button-focus / action
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have to admit I don't really understand how the whole PRG to C to EXE system works. And I am not a C programmer.\n\nI have a C program with a function, lets call it \"Myfunction\" in it, defined like this:\n\n CLIPPER MYFUNCTION( PARAMS )\n ...\n \nThis is compiled using BCC then linked with the PRGs.\n\nBut the linker errors out with:\n\nundefined external '_HB_FUN_MYFUNCTION'\n\nI presume this is because the function call to MYFUNCTION in the PRG is being translated by the preprocessor to _HB_FUN_MYFUNCTION. If I change the name of the C function to _HB_FUN_MYFUNCTION then I get a bunch more errors.\n\nOK, so can someone tell me the secret to getting this working?\n\nRegards,\nJames",
"time": "21:49",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You have to use\n\n[code=fw:2sbylhic]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> MYFUNCTION <span style=\"color: #000000;\">)</span></div>[/code:2sbylhic]\n\nin [x]Harbour.\n\nEMG",
"time": "21:55",
"topic": "Adding a C function",
"username": "Enrico Maria Giordano"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nI'm sorry I still don't understand. Do you mean in the C program?\n\nChange this:\nCLIPPER MYFUNCTION( PARAMS )\n\nTo this?\nHB_FUNC( MYFUNCTION )\n\nOr, ?\n\nI am using xHarbour.\n\nJames",
"time": "22:22",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "OK, I changed it to:\n\nHB_FUNC( MYFUNCTION ( PARAMS ) )\n\nThen I get these compiler errors: \n\nError E2147 source\\inifunc.c 24: 'MYFUNCTION' cannot start a parameter declaration\nError E2293 source\\inifunc.c 24: ) expected\n\nThis is the way the FWH\\tools\\clp2harb.exe program seems to be doing it.\n\nI still must be doing something wrong.\n\nJames",
"time": "22:44",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I now see that clp2harb.exe is changing it like this:\n\nHB_FUNC( MYFUNCTION )\n\nSo I tried that and I get these errors:\n\nWarning W8070 source\\inifunc.c 18: Function should return a value in function HB_FUNC\nWarning W8057 source\\inifunc.c 18: Parameter 'MYFUNCTION' is never used in function HB_FUNC\nError E2293 source\\inifunc.c 54: ) expected\n\nHere is the complete code for my test function, MYFUNCTION.\n\n[code=fw:3v251mrs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> MYFUNCTION <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> _retni<span style=\"color: #000000;\">(</span> GetProfileInt<span style=\"color: #000000;\">(</span> _parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, <br /> _parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>, <br /> _parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <br /><span style=\"color: #000000;\">}</span></div>[/code:3v251mrs]\nJames",
"time": "23:00",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nPlease change it this way:\n[code=fw:liy06v50]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> MYFUNCTION <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> hb_retni<span style=\"color: #000000;\">(</span> GetProfileInt<span style=\"color: #000000;\">(</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>, hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:liy06v50]",
"time": "23:17",
"topic": "Adding a C function",
"username": "Antonio Linares"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI tried that already and I get this error:\n\nWarning W8065 source\\inifunc.c 20: Call to function 'GetProfileInt' with no prototype in function HB_FUN_MYFUNCTION\n\nJames\n\n\n[code=fw:1h9s1jm6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbapifs.h\"</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span> MYFUNCTION <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> hb_retni<span style=\"color: #000000;\">(</span> GetProfileInt<span style=\"color: #000000;\">(</span> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>,<br /> hb_parc<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,<br /> hb_parni<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /><span style=\"color: #000000;\">}</span></div>[/code:1h9s1jm6]",
"time": "23:33",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nYou have to add:\n\n#include <windows.h>\n\nso Windows API functions are properly identified.",
"time": "23:38",
"topic": "Adding a C function",
"username": "Antonio Linares"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nYea! That did it. Thanks!\n\nI guess I shot myself in the foot. I thought I would start with a known good C program so I selected one from the FWH\\source directory. Now it seems that these are not compiled as-is but they have to go through some preprocessing before they can be compiled. Is that true?\n\nJames",
"time": "23:41",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nIn FWH 9.08 we have removed CLIPPER ... and PARAMS from all C modules, as we only focus on Harbour and xHarbour now.\n\nIf you use FWH 9.08 then there is no need to use clp2harb.exe never more to compile FWH C modules <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "23:49",
"topic": "Adding a C function",
"username": "Antonio Linares"
}
] |
Adding a C function
|
[
{
"date": "2009-09-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have another question.\n\nIs this a complete function definition?\n\nvoid pascal DelResource( HANDLE hRes );\n\nThe compiler doesn't error, but the linker gives an \"unresolved external DelResource\" error.\n\nJames",
"time": "00:57",
"topic": "Adding a C function",
"username": "James Bott"
}
] |
Adding a C function
|
[
{
"date": "2009-09-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\n[quote:1h2ra8wv]void pascal DelResource( HANDLE hRes );[/quote:1h2ra8wv]\n\nThats what is called a function \"prototype\": It instructs the C compiler how to manage that function, but it does not implement its code.\n\n[quote:1h2ra8wv]The compiler doesn't error, but the linker gives an \"unresolved external DelResource\" error.[/quote:1h2ra8wv]\n\nFiveWin provides such function, so if you link with FiveHC.lib then the linker should find it.",
"time": "01:07",
"topic": "Adding a C function",
"username": "Antonio Linares"
}
] |
Adding a C function
|
[
{
"date": "2009-09-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wiki documentation for it:\n\n[url:3vfzk29i]http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_delresource[/url:3vfzk29i]",
"time": "01:14",
"topic": "Adding a C function",
"username": "Antonio Linares"
}
] |
Adding a C function
|
[
{
"date": "2012-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI started the first time, adding a Multilanguage-option to a App.\nFirst I wanted to use a DBF, but now I found a better Solution.\n\nHow it works ( Sample ) :\n\n[color=#FF0000:1ib7ffsf]1. [/color:1ib7ffsf]\nDefine a Static Var cLang[40] // contains the needed Keywords\n\n[color=#FF0000:1ib7ffsf]2.[/color:1ib7ffsf]\nArray-Init \nI := 1\nFOR i := 1 TO 40\n\tcLang[I] := \" \"\nNEXT\n\n[color=#FF0000:1ib7ffsf]3.[/color:1ib7ffsf]\nLoad on Top of Your App\nGET_LANG() // Get Keywords from INI\n\n[color=#FF0000:1ib7ffsf]4.[/color:1ib7ffsf]\nGet Keywords from INI\n[code=fw:1ib7ffsf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// --------- INI - Read -------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GET_LANG<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Local</span> oInifile <br /><br /><span style=\"color: #00C800;\">IF</span> !FILE <span style=\"color: #000000;\">(</span> c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>ANGUAGE.ini\"</span> <span style=\"color: #000000;\">)</span><br /> SAVE_LANG<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ELSE</span><br /> INI oInifile FILE c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>ANGUAGE.INI\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Game\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Game\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Trials\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Trials\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Scores\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Scores\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Select\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Select\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Player\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Player\"</span><br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"Training\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"Training\"</span><br /> ...<br /> ...<br /> <span style=\"color: #0000ff;\">GET</span> cLang<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">14</span><span style=\"color: #000000;\">]</span> SECTION <span style=\"color: #ff0000;\">\"Language\"</span> ENTRY <span style=\"color: #ff0000;\">\"There are missing\"</span> <span style=\"color: #0000ff;\">OF</span> oInifile <span style=\"color: #00C800;\">DEFAULT</span> <span style=\"color: #ff0000;\">\"There are missing\"</span><br /> ...<br /> ...<br /> ENDINI<br /><span style=\"color: #00C800;\">ENDIF</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:1ib7ffsf]\n\n[color=#FF0000:1ib7ffsf]5.[/color:1ib7ffsf]\nIf not exist, create a new LANGUAGE.INI ( English )\n\n[code=fw:1ib7ffsf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> SAVE_LANG<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> lSysini := .T., cIniFile := c_Path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>ANGUAGE.INI\"</span><br /><br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Game\"</span>, <span style=\"color: #ff0000;\">\"Game\"</span>, cIniFile <span style=\"color: #000000;\">)</span><br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Trials\"</span>, <span style=\"color: #ff0000;\">\"Trials\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Scores\"</span>, <span style=\"color: #ff0000;\">\"Scores\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Select\"</span>, <span style=\"color: #ff0000;\">\"Select\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Player\"</span>, <span style=\"color: #ff0000;\">\"Player\"</span>, cIniFile <span style=\"color: #000000;\">)</span><br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Training\"</span>, <span style=\"color: #ff0000;\">\"&Training\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Reset\"</span>, <span style=\"color: #ff0000;\">\"Reset\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Config\"</span>, <span style=\"color: #ff0000;\">\"Config\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Create\"</span>, <span style=\"color: #ff0000;\">\"Create\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Show\"</span>, <span style=\"color: #ff0000;\">\"Show\"</span>, cIniFile <span style=\"color: #000000;\">)</span> <br />WritePProString<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Language\"</span>, <span style=\"color: #ff0000;\">\"Next\"</span>, <span style=\"color: #ff0000;\">\"&Next\"</span>, cIniFile <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 /> </div>[/code:1ib7ffsf]\n\nSamples how to use :\n\n[color=#FF0000:1ib7ffsf]a) [/color:1ib7ffsf]Accelerator defined inside the PRG\n\n@ 25, 405 BTNBMP oBtnP[1] FILENAME c_path + \"\\System\\Player1.bmp\" ;\nSIZE 40, 45 OF oDlg1 PIXEL NOBORDER ;\nTOP ;\nPROMPT [color=#FF0000:1ib7ffsf]cLang[5][/color:1ib7ffsf] + \" &1\" ;\nFONT oTxtfont ;\nACTION ( nAktPlayer := 1, SET_PLAYER() )\noBtnP[1]:cTooltip := [color=#FF0000:1ib7ffsf]cLang[4][/color:1ib7ffsf] + \" 1.\" + [color=#FF0000:1ib7ffsf]cLang[5][/color:1ib7ffsf]\noBtnP[1]:lTransparent := .T.\noBtnP[1]:l2007 := .F.\noBtnP[1]:SetColor( 128 )\n\n[color=#FF0000:1ib7ffsf]b) [/color:1ib7ffsf]Accelerator defined inside the INI\n-- Keyword also used for Tooltipps\nusing a Keyword from INI with a defined Accelerator for Tooltipps, You can use SUBSTR(\n\n@ 140, 455 BTNBMP oBtn[14] FILENAME c_path + \"\\System\\Preview.bmp\" ;\nSIZE 40, 45 OF oDlg1 PIXEL NOBORDER ;\nTOP ;\nPROMPT [color=#FF0000:1ib7ffsf]cLang[10][/color:1ib7ffsf] ;\nFONT oTxtfont ;\nACTION ( lVISIBLE := .T., ;\n\t\tREAD_GAME(), ;\n\t\toBrw1:SetArray( aImg ), oBrw1:Refresh() )\noBtn[14]:cTooltip := [color=#FF0000:1ib7ffsf]cLang[10] + \" \" + cLang[1][/color:1ib7ffsf]\noBtn[14]:lTransparent := .T.\noBtn[14]:l2007 := .F.\noBtn[14]:SetColor( 16312263 )\n\nThe Accelerator is defined inside the INI !!!\nShow=[color=#FF0000:1ib7ffsf]&Show[/color:1ib7ffsf]\n\nCopy the English LANGUAGE.INI to a new German.ini\n\nwith defined Accelerators\n\n[Language]\nGame=[color=#FF0000:1ib7ffsf]&Spiel[/color:1ib7ffsf]\nTrials=[color=#FF0000:1ib7ffsf]&Versuche[/color:1ib7ffsf]\nScore=[color=#FF0000:1ib7ffsf]&Punkte[/color:1ib7ffsf]\nSelect=[color=#FF0000:1ib7ffsf]&Auswahl[/color:1ib7ffsf]\nPlayer=[color=#FF0000:1ib7ffsf]Spie&ler[/color:1ib7ffsf]\nTraining=[color=#FF0000:1ib7ffsf]T&raining[/color:1ib7ffsf]\nReset=[color=#FF0000:1ib7ffsf]&zurücksetzen[/color:1ib7ffsf]\n...\n...\nRename to LANGUAGE.INI\n\nBest Regards\nUwe <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "13:10",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "ukoenig"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2012-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry BUT xharbour can have the multilanguage system it create on comilation file hil ot hit\n\nand you can call the language on your application using i18n() function \n\n\nyou must first insert on your application the text with i18n() function :\nsample : \n\n DEFINE MSGITEM ::oMsgItem2;\n OF ::oWndMain:oMsgBar ;\n PROMPT ::cEmpresa ;\n SIZE 170 ;\n TOOLTIP \" \" + [b:2blyx16e]i18n(\"Company \")[/b:2blyx16e] + \" \" FONT ::oFontMsgItem\n\nthen you must compile the prg with the parameter /J\n\nfor sample /jit_IT.hil \n\nthe compilator create a file hil with all words you insert on your app\n\n\nthen on your app :\nHB_I18NSetLanguage( fcGetLang() )\n....\n MENUITEM i18n(\"Modifica la lingua\")\n MENU\n MENUITEM i18n( \"Seleziona la lingua\" ) ;\n ACTION [b:2blyx16e]oApp():Idiomas()[/b:2blyx16e]\n MENUITEM i18n( \"Modificare l'archivio della lingua\" );\n ACTION[b:2blyx16e] TLanguage():New() :Activar()[/b:2blyx16e]\n ENDMENU\n\n\n\nthen you have Idiomas() and Tlanguage()\n\nIdiomas() is a function where you can select the file of the lang \n\n[img:2blyx16e]http://imageshack.us/a/img690/6513/86148140.png[/img:2blyx16e]\n\n\n\nTlanguage() is a class where you can create another file from yout hil or change the words into the language you want :\n\n[img:2blyx16e]http://imageshack.us/a/img705/8417/85568281.png[/img:2blyx16e]",
"time": "18:35",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "Eoeo"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2012-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "for the sources i sad on prev topic i sent all to Antonio Linares Last year, it has never been taken as important and is not uncork never published in packages of fw. But i use current this for create Multilanguage application easy!!!!",
"time": "08:29",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "Eoeo"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2012-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nThank You for the Response.\nIt sounds good.\nIn my special Situation, I want to make it possible,\n( not only a Translation ) also that the User can change the complete Text byhimself.\nButtons,Resources...\nI finished with Testing and it works fine.\nUsing just only 38 Words, it is OK.\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "09:32",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "ukoenig"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2012-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "the problem is when you must translate many and many words\nI''m afraid a file ini with many and many words then it can result eating of resources\n\nmy solution is easy and the final user can modify the language file creating himself",
"time": "10:00",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "Eoeo"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2012-09-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI use a solution like i18n() function, but with ini files, it work perfect for SAY, Buttons, Title, menu, anywhere.\n\nExemple ini file:\n\n[ESP]\nDESCRIP=Español\n||~AMPA32, G~|estió de |~F~|acturacions de l'|~AMPA (~|domiciliacions, famílies, pares, alumnes, rebuts)|=|AMPA32, Gestión de Facturaciones de la AMPA (domiciliaciones, families, padres, alumnos, recibos)|\n| |~F~|itxers &|~M~|estres|=| Ficheros &Maestros|\n|&|~F~|amílies |~AMPA|=|&Familias AMPA|\n|&|~P~|ares/|~M~|ares|=|&Padres/Madres|\n|&|~A~|lumnes|=|&Alumnos|\n\nExemple in SAY:\n\n@ 25,15 SAY GetTrad( \"Alumnes:\" ) OF oAlumne01 COLORS J02CLRTEXTO,J02CLRFONDO FONT ;\n J02FONTSAY PIXEL SIZE 120,16\n\nRegards,",
"time": "10:19",
"topic": "Adding a Multilanguage-solution to Your App.",
"username": "FiveWiDi"
}
] |
Adding a Multilanguage-solution to Your App.
|
[
{
"date": "2006-10-18",
"forum": "FiveWin for CA-Clipper",
"text": "Hi all,\n\nI was able to add a menu item in the system menu that was created in the resource file at runtime.\n\nMy next task requires to add a pulldown menu at runtime.\n\nIs it posible? How?\n\nMany thanks!",
"time": "22:01",
"topic": "Adding a pullldown menu at runtime.",
"username": "xhbcoder"
}
] |
Adding a pullldown menu at runtime.
|
[
{
"date": "2006-10-18",
"forum": "FiveWin for CA-Clipper",
"text": "Have a look at TMenu:Add() or TMenu:Insert() methods.\n\nEMG",
"time": "22:21",
"topic": "Adding a pullldown menu at runtime.",
"username": "Enrico Maria Giordano"
}
] |
Adding a pullldown menu at runtime.
|
[
{
"date": "2006-10-18",
"forum": "FiveWin for CA-Clipper",
"text": "Got it. \n\nRegards!",
"time": "22:49",
"topic": "Adding a pullldown menu at runtime.",
"username": "xhbcoder"
}
] |
Adding a pullldown menu at runtime.
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nI would like to be able to show a \"real time\" character count when you start typing a memo field .. I have some long string text fields that I have to make sure the character count does not exceed the maximum table field length .. The reason I want to enforce a strict field limit is the text will eventually fit into an program generated e-mail. I do not want someone writing a 1000 char message that I have to format in a limited space to fit into an e-mail .. hence why I use a fixed length char() field.\n\nHere is my code .. the Table field is a Sql char(200) or char(400) text field ( nlen parameter ) .. again, I do not want an unlimited Sql \"Text\" field .. \n\n[code=fw:28sgwix2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oUSERS <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"MEMO\"</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> cTITLE ;<br /><br />cSay1 := <span style=\"color: #ff0000;\">\"Maximum \"</span>+alltrim<span style=\"color: #000000;\">(</span>str<span style=\"color: #000000;\">(</span>nLen<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" Charactors\"</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">var</span> cSay1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">195</span> <span style=\"color: #0000ff;\">of</span> oUsers <span style=\"color: #0000ff;\">UPDATE</span><br />oSay1:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">(</span>nRgb<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">224</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> cMODE = <span style=\"color: #ff0000;\">\"E\"</span> .or. cMode = <span style=\"color: #ff0000;\">\"P\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMEMO <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oUSERS <span style=\"color: #0000ff;\">UPDATE</span><br /><br /><span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #B900B9;\">// view</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMEMO <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oUSERS <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, <span style=\"color: #000000;\">16053492</span> READONLY<br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><br /> oMemo:<span style=\"color: #000000;\">bGotFocus</span> = <span style=\"color: #000000;\">{</span> || oMemo:<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> oMemo:<span style=\"color: #000000;\">Goto</span><span style=\"color: #000000;\">(</span> oMemo:<span style=\"color: #000000;\">GetLineCount</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,;<br /> __Keyboard<span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> VK_HOME <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> ; <span style=\"color: #B900B9;\">// ok</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Ok\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span>lOK := _Doit1<span style=\"color: #000000;\">(</span>oRsTrav, @cMEMO, nLEN, oMEMO, cMODE, cButton <span style=\"color: #000000;\">)</span>, ;<br /> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> lOK = .T., <span style=\"color: #000000;\">(</span> oUSERS:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBtn1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <br /> GRADIENT GreyButtonGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> ; <span style=\"color: #B900B9;\">// cancel</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CANCEL\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Cancel\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> oUSERS:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> GRADIENT GreyButtonGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oUSERS ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> cMode = <span style=\"color: #ff0000;\">\"V\"</span>, oButt1:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span>!GETKEYSTATE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// do not allow esc key here</span><br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"V\"</span><br /><span style=\"color: #00C800;\">Else</span><br /><br /> oBtn1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> cDesignation := cMemo<br /><br /> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br />oBtn2:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oBtn3:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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 /><br /><span style=\"color: #B900B9;\">//-----------------------------</span><br /><span style=\"color: #B900B9;\">// this function counts the number of characters in the memo string and warns if the length is >= to nLen</span><br /><br /><span style=\"color: #00C800;\">Static</span> FUNC _Doit1<span style=\"color: #000000;\">(</span> oRs, cMEMO, nLEN, oMEMO, cMODE, cButton <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> SAYING, nLENGTH, nSel<br /><br /><span style=\"color: #00C800;\">IF</span> cMODE = <span style=\"color: #ff0000;\">'V'</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />cMEMO := ALLTRIM<span style=\"color: #000000;\">(</span> cMEMO <span style=\"color: #000000;\">)</span><br />nLENGTH := LEN<span style=\"color: #000000;\">(</span> cMEMO <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> xWRITE = <span style=\"color: #ff0000;\">\"Y\"</span> .or. xSUPER = <span style=\"color: #ff0000;\">\"Y\"</span> .or. xADMIN = <span style=\"color: #ff0000;\">'Y'</span><br /><br /> <span style=\"color: #00C800;\">IF</span> nLENGTH > nLEN<br /><br /> StandardGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> SAYING := <span style=\"color: #ff0000;\">\"WARNING .. your text is \"</span>+alltrim<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>nLENGTH<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" charactors\"</span>+CRLF<br /> SAYING += <span style=\"color: #ff0000;\">\"and the Database Table will only hold \"</span>+alltrim<span style=\"color: #000000;\">(</span>str<span style=\"color: #000000;\">(</span>nLen<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" charactors\"</span>+CRLF<br /><br /> nSel := Alert<span style=\"color: #000000;\">(</span> Saying ,;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Return and Make Changes\"</span>, <span style=\"color: #ff0000;\">\"Truncate Text to \"</span>+alltrim<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>nLEN<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" Charactors\"</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br /> <span style=\"color: #00C800;\">Case</span> nSel = <span style=\"color: #000000;\">1</span><br /> oMemo:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Case</span> nSel = <span style=\"color: #000000;\">2</span><br /> cMEMO := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">(</span> cMEMO,<span style=\"color: #000000;\">1</span>,nLEN <span style=\"color: #000000;\">)</span><br /> oMemo:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oMemo:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">OtherWIse</span><br /> cMEMO := <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">(</span> cMEMO,<span style=\"color: #000000;\">1</span>,nLEN <span style=\"color: #000000;\">)</span><br /> oMemo:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oMemo:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span>.f.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENdCase</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:28sgwix2] \n\nWhat I would like to do is add a counter field to the diablg box to show the number of characters being typed in real time ??\n\nThanks\nRick Lipkin",
"time": "15:38",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Rick Lipkin"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is a sample with counter and limited text to 100 chars:\n\n[code=fw:2q8vhvz8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00D7D7;\">#define</span> EM_LIMITTEXT <span style=\"color: #000000;\">197</span><br /><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> oDlg<br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oGet, cVar := <span style=\"color: #ff0000;\">\"\"</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oSay<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;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cVar MEMO;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">30</span><br /><br /> oGet:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">{</span> || SysRefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span> .F. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> @ <span style=\"color: #000000;\">3</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: #000000;\">3</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> STR<span style=\"color: #000000;\">(</span> LEN<span style=\"color: #000000;\">(</span> cVar <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;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oGet:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> EM_LIMITTEXT, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">CENTER</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2q8vhvz8]\n\nEMG",
"time": "16:21",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Enrico Maria Giordano"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maybe like this.\n\n[code=fw:11plfhdq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> @ <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Mesaj\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <br /> @ <span style=\"color: #000000;\">48</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">GET</span> oGovde <span style=\"color: #0000ff;\">VAR</span> Govde <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">110</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">UPDATE</span> MEMO ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span>oSayac:<span style=\"color: #000000;\">VarPut</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"(\"</span>+NTRIM<span style=\"color: #000000;\">(</span>LEN<span style=\"color: #000000;\">(</span>oGovde:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\")\"</span><span style=\"color: #000000;\">)</span>,;<br /> oSayac:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <br /> @ <span style=\"color: #000000;\">62</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> oSayac <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"(Bo?)\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">10</span><br /> </div>[/code:11plfhdq]",
"time": "17:59",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Horizon"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico \n\nThank you for your responce .. been a while since we had a chance to chat ... I am having difficulty translating your code into using resources .. \n\nthis is my current code .. I can get it to initially come up but when I click on the get field .. the code blows up .. \n\n[code=fw:1pswagif]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//------------------------------------</span><br /><span style=\"color: #00C800;\">Static</span> FUNC _ViewMemo4<span style=\"color: #000000;\">(</span> cMODE, oRsTrav, cTABLENAME, oBtn1,oBtn2,oBtn3,oBtn4,oBtn5,cButton,cBenefits,nLen,cPrevAppr <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// benefits button</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> EM_LIMITTEXT <span style=\"color: #000000;\">197</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> SAYING, oUSERS, cTITLE, oMEMO, cMEMO<br /><span style=\"color: #00C800;\">LOCAL</span> lOK, oButt1,oButt2<br /><br /><span style=\"color: #00C800;\">Local</span> oSay1,cSay1<br /><span style=\"color: #00C800;\">Local</span> oSay<br /><br /><span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">(</span> cMODE <span style=\"color: #000000;\">)</span><br /> cMODE := <span style=\"color: #ff0000;\">\"V\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> xWRITE = <span style=\"color: #ff0000;\">\"Y\"</span> .or. xSUPER = <span style=\"color: #ff0000;\">\"Y\"</span> .or. xADMIN = <span style=\"color: #ff0000;\">'Y'</span><br /><span style=\"color: #00C800;\">ELSE</span><br /> cMODE := <span style=\"color: #ff0000;\">\"V\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> oRsTrav:<span style=\"color: #000000;\">eof</span><br /> SAYING := <span style=\"color: #ff0000;\">\"SORRY ... Before you can Write a Memo \"</span><br /> SAYING += <span style=\"color: #ff0000;\">\"a Record must Already Exist\"</span><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> SAYING <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> .F. <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />oBtn1:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oBtn2:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oBtn3:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />LightGreyGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><span style=\"color: #00C800;\">CASE</span> cMODE = <span style=\"color: #ff0000;\">\"A\"</span><br /> cTitle := cTABLENAME+<span style=\"color: #ff0000;\">\" Table Memo for 'Purpose or Benefits Text' ADD\"</span><br /> cMEMO := space<span style=\"color: #000000;\">(</span>nlen<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// 200</span><br /><br /><span style=\"color: #00C800;\">CASE</span> cMODE = <span style=\"color: #ff0000;\">\"E\"</span><br /> cTitle := cTABLENAME+<span style=\"color: #ff0000;\">\" Table Memo for 'Purpose or Benefits Text' EDIT\"</span><br /> cMemo := cBenefits<br /><br /><span style=\"color: #00C800;\">CASE</span> cMODE = <span style=\"color: #ff0000;\">\"V\"</span><br /> cTitle := cTABLENAME+<span style=\"color: #ff0000;\">\" Table Memo for 'Purpose or Benefits Text' VIEW\"</span><br /> cMEMO := oRsTrav:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Benefits\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /><br /><span style=\"color: #00C800;\">CASE</span> cMODE = <span style=\"color: #ff0000;\">\"P\"</span><br /> cTITLE := cTABLENAME+<span style=\"color: #ff0000;\">\" Table Memo Approval Info VIEW\"</span><br /> cMEMO := oRsTrav:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Benefits\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /><br /><span style=\"color: #00C800;\">ENDCASE</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oUSERS <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"MEMO\"</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> cTITLE ;<br /><br /> cSay1 := <span style=\"color: #ff0000;\">\"Maximum \"</span>+alltrim<span style=\"color: #000000;\">(</span>str<span style=\"color: #000000;\">(</span>nLen<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" Charactors\"</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">var</span> cSay1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">195</span> <span style=\"color: #0000ff;\">of</span> oUsers <span style=\"color: #0000ff;\">UPDATE</span><br /> oSay1:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">(</span>nRgb<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">224</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> Str<span style=\"color: #000000;\">(</span>len<span style=\"color: #000000;\">(</span>cMemo<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">196</span> <span style=\"color: #0000ff;\">of</span> oUsers <span style=\"color: #B900B9;\">//UPDATE</span><br /><br /> <span style=\"color: #00C800;\">IF</span> cMODE = <span style=\"color: #ff0000;\">\"E\"</span> .or. cMode = <span style=\"color: #ff0000;\">\"P\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMEMO <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oUSERS <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #B900B9;\">// view</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMEMO <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oUSERS <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, <span style=\"color: #000000;\">16053492</span> READONLY<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> * oMemo:<span style=\"color: #000000;\">bGotFocus</span> = <span style=\"color: #000000;\">{</span> || oMemo:<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,; <span style=\"color: #B900B9;\">// blows up had to rem'd out</span><br /> * oMemo:<span style=\"color: #000000;\">Goto</span><span style=\"color: #000000;\">(</span> oMemo:<span style=\"color: #000000;\">GetLineCount</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,;<br /> * __Keyboard<span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> VK_HOME <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> oMemo:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">{</span> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oSay:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// .f. ) }</span><br /><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> ; <span style=\"color: #B900B9;\">// ok</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Ok\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span>lOK := _Doit1<span style=\"color: #000000;\">(</span>oRsTrav, @cMEMO, nLEN, oMEMO, cMODE, cButton <span style=\"color: #000000;\">)</span>, ;<br /> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> lOK = .T., <span style=\"color: #000000;\">(</span> oUSERS:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBtn1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> GRADIENT GreyButtonGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> ; <span style=\"color: #B900B9;\">// cancel</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CANCEL\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Cancel\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> oUSERS:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> GRADIENT GreyButtonGrad<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oUSERS ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span>oMemo:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> EM_LIMITTEXT,<span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> cMode = <span style=\"color: #ff0000;\">\"V\"</span>, oButt1:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span>!GETKEYSTATE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// do not allow esc key here</span><br /><br /><span style=\"color: #00C800;\">If</span> cMode = <span style=\"color: #ff0000;\">\"V\"</span><br /><span style=\"color: #00C800;\">Else</span><br /><br /> oBtn1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> cBenefits := cMemo<br /><br /> SysReFresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br />oBtn2:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oBtn3:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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 /><br /> </div>[/code:1pswagif]\n\nHere is Memo.rc\n\n[code=fw:1pswagif]<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: #B900B9;\">//#include \"resource.h\"</span><br /><br />#ifndef WC_STATIC<br /><span style=\"color: #00D7D7;\">#define</span> WC_STATIC L<span style=\"color: #ff0000;\">\"Static\"</span><br />#endif<br /><br />#ifndef MONTHCAL_CLASS<br /><span style=\"color: #00D7D7;\">#define</span> MONTHCAL_CLASS <span style=\"color: #ff0000;\">\"SysMonthCal32\"</span><br />#endif<br /><br />#ifndef DATETIMEPICK_CLASS<br /><span style=\"color: #00D7D7;\">#define</span> DATETIMEPICK_CLASS <span style=\"color: #ff0000;\">\"SysDateTimePick32\"</span><br />#endif<br /><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Dialog resources</span><br /><span style=\"color: #B900B9;\">//</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br />MEMO <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">47</span>, <span style=\"color: #000000;\">353</span>, <span style=\"color: #000000;\">135</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP<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;\">{</span><br /> EDITTEXT <span style=\"color: #000000;\">196</span>, <span style=\"color: #000000;\">107</span>, <span style=\"color: #000000;\">102</span>, <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span>, WS_DISABLED, WS_EX_LEFT<br /> LTEXT <span style=\"color: #ff0000;\">\"Max 400 char\"</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">95</span>, <span style=\"color: #000000;\">9</span>, SS_LEFT | SS_NOPREFIX, WS_EX_LEFT<br /> EDITTEXT <span style=\"color: #000000;\">130</span>, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">307</span>, <span style=\"color: #000000;\">80</span>, WS_VSCROLL | ES_MULTILINE | ES_WANTRETURN, WS_EX_LEFT<br /> CONTROL <span style=\"color: #ff0000;\">\"Ok\"</span>, <span style=\"color: #000000;\">111</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">247</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">24</span>, 0x00000000<br /> LTEXT <span style=\"color: #ff0000;\">\"Memo\"</span>, <span style=\"color: #000000;\">194</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">9</span>, SS_LEFT | SS_NOPREFIX, WS_EX_LEFT<br /> CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, <span style=\"color: #000000;\">112</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">24</span>, 0x00000000<br /><span style=\"color: #000000;\">}</span><br /><br /> </div>[/code:1pswagif]\n\nPassing the variable cBenefits which I initializes cMemo .. from there I have tried to interpret your code and failed .. \n\n[code=fw:1pswagif]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Application<br />===========<br /> Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">C</span>:\\Fox\\DOI\\LeavTrav\\LeaveW32.Exe <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">641</span>,<span style=\"color: #000000;\">664</span> bytes<br /> Compiler version: <span style=\"color: #000000;\">xHarbour</span> <span style=\"color: #000000;\">1.2</span><span style=\"color: #000000;\">.3</span> Intl. <span style=\"color: #000000;\">(</span>SimpLex<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">(</span>Build <span style=\"color: #000000;\">20200311</span><span style=\"color: #000000;\">)</span><br /> FiveWin version: <span style=\"color: #000000;\">FWH</span> <span style=\"color: #000000;\">20.06</span><br /> C compiler version: <span style=\"color: #000000;\">Borland</span>/Embarcadero C++ <span style=\"color: #000000;\">7.4</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">32</span>-bit<span style=\"color: #000000;\">)</span><br /> Windows version: <span style=\"color: #000000;\">6.2</span>, Build <span style=\"color: #000000;\">9200</span> <br /><br /> Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">14</span> secs <br /> Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">07</span>/<span style=\"color: #000000;\">20</span>/<span style=\"color: #000000;\">2020</span>, <span style=\"color: #000000;\">14</span>:<span style=\"color: #000000;\">09</span>:<span style=\"color: #000000;\">54</span><br /> Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1004</span> <span style=\"color: #00C800;\">Class</span>: <span style=\"color: #ff0000;\">'ARRAY'</span> has no exported <span style=\"color: #00C800;\">method</span>: <span style=\"color: #000000;\">EVAL</span><br /> Args:<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> = A <span style=\"color: #000000;\">{</span> ... <span style=\"color: #000000;\">}</span> length: <span style=\"color: #000000;\">2</span><br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> = N <span style=\"color: #000000;\">75</span><br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> = N <span style=\"color: #000000;\">2424833</span><br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> = O TMULTIGET<br /><br />Stack Calls<br />===========<br /> Called <span style=\"color: #0000ff;\">from</span>: => EVAL<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">WINDOW</span>.PRG => TWINDOW:<span style=\"color: #000000;\">KEYDOWN</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2867</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\CONTROL.PRG => TCONTROL:<span style=\"color: #000000;\">KEYDOWN</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1114</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\MGET.PRG => TMULTIGET:<span style=\"color: #000000;\">KEYDOWN</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">661</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => TWINDOW:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\CONTROL.PRG => TMULTIGET:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1827</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3559</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => DIALOGBOX<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #0000ff;\">ACTIVATE</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">304</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">REQUEST</span>.PRG => _VIEWMEMO4<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">4035</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">REQUEST</span>.PRG => <span style=\"color: #000000;\">(</span>b<span style=\"color: #000000;\">)</span>_REQUEST<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1447</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:1pswagif]\n\nAppreciate any suggestions ...\n\nThanks\nRick Lipkin",
"time": "19:31",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Rick Lipkin"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry, I can't help you without a sample that I can compile and run here.\n\nEMG",
"time": "20:26",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Enrico Maria Giordano"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico \n\nTry this code ... I get an initial value .. of 179 .. but the len of cMemo is not updated as you type in more charactors ..\n\nThanks\nRick\n\n[code=fw:3kjp4f4z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#define</span> EM_LIMITTEXT <span style=\"color: #000000;\">197</span><br /><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> oDlg<br /><span style=\"color: #00C800;\">LOCAL</span> cMemo, oMemo, cTitle<br /><span style=\"color: #00C800;\">LOCAL</span> oSay,cSay<br /><br /><br /><br />cMemo := <span style=\"color: #ff0000;\">\"Many years experience with and a good understanding of IP networking, IP printing, SMTP \"</span><br />cMemo += <span style=\"color: #ff0000;\">\"routing for multi-function printers, scanners, copiers and general configurations of Cisco \"</span><br /><br />cTITLE := <span style=\"color: #ff0000;\">\"Request Table Memo for 'Travel Rejection Text' EDIT\"</span><br />cSay := <span style=\"color: #ff0000;\">\"Number of Charactors Typed\"</span><br /><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"MEMO\"</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> cTITLE<br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMemo <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> oMemo:<span style=\"color: #000000;\">bGotFocus</span> = <span style=\"color: #000000;\">{</span> || oMemo:<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> oMemo:<span style=\"color: #000000;\">Goto</span><span style=\"color: #000000;\">(</span> oMemo:<span style=\"color: #000000;\">GetLineCount</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,;<br /> __Keyboard<span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> VK_HOME <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> str<span style=\"color: #000000;\">(</span>len<span style=\"color: #000000;\">(</span>cMemo<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">196</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> ; <span style=\"color: #B900B9;\">// ok</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Ok\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oButt2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> ; <span style=\"color: #B900B9;\">// cancel</span><br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CANCEL\"</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Cancel\"</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">2007</span>;<br /> <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 /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oMemo:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> EM_LIMITTEXT,<span style=\"color: #000000;\">500</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span>!GETKEYSTATE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// do not allow esc key here</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:3kjp4f4z]\n\nHere is the Memo.rc\n\n[code=fw:3kjp4f4z]<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: #B900B9;\">//#include \"resource.h\"</span><br /><br />#ifndef WC_STATIC<br /><span style=\"color: #00D7D7;\">#define</span> WC_STATIC L<span style=\"color: #ff0000;\">\"Static\"</span><br />#endif<br /><br />#ifndef MONTHCAL_CLASS<br /><span style=\"color: #00D7D7;\">#define</span> MONTHCAL_CLASS <span style=\"color: #ff0000;\">\"SysMonthCal32\"</span><br />#endif<br /><br />#ifndef DATETIMEPICK_CLASS<br /><span style=\"color: #00D7D7;\">#define</span> DATETIMEPICK_CLASS <span style=\"color: #ff0000;\">\"SysDateTimePick32\"</span><br />#endif<br /><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Dialog resources</span><br /><span style=\"color: #B900B9;\">//</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br />MEMO <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">47</span>, <span style=\"color: #000000;\">353</span>, <span style=\"color: #000000;\">135</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP<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;\">{</span><br /> EDITTEXT <span style=\"color: #000000;\">196</span>, <span style=\"color: #000000;\">107</span>, <span style=\"color: #000000;\">102</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">12</span>, WS_DISABLED | NOT WS_TABSTOP, WS_EX_LEFT<br /> LTEXT <span style=\"color: #ff0000;\">\"Max 400 char\"</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">95</span>, <span style=\"color: #000000;\">9</span>, SS_LEFT | SS_NOPREFIX, WS_EX_LEFT<br /> EDITTEXT <span style=\"color: #000000;\">130</span>, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">307</span>, <span style=\"color: #000000;\">80</span>, WS_VSCROLL | ES_MULTILINE | ES_WANTRETURN, WS_EX_LEFT<br /> CONTROL <span style=\"color: #ff0000;\">\"Ok\"</span>, <span style=\"color: #000000;\">111</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">247</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">24</span>, 0x00000000<br /> LTEXT <span style=\"color: #ff0000;\">\"Memo\"</span>, <span style=\"color: #000000;\">194</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">9</span>, SS_LEFT | SS_NOPREFIX, WS_EX_LEFT<br /> CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, <span style=\"color: #000000;\">112</span>, <span style=\"color: #ff0000;\">\"TBtnBmp\"</span>, 0x50010020, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">24</span>, 0x00000000<br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:3kjp4f4z]",
"time": "22:40",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Rick Lipkin"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\n\nChange this.\n[code=fw:1806ybko]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oMemo <span style=\"color: #0000ff;\">VAR</span> cMEMO MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span>oSay:<span style=\"color: #000000;\">VarPut</span><span style=\"color: #000000;\">(</span>ALLTRIM<span style=\"color: #000000;\">(</span>str<span style=\"color: #000000;\">(</span>LEN<span style=\"color: #000000;\">(</span>oMemo:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,;<br /> oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span></div>[/code:1806ybko]",
"time": "07:41",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Horizon"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2020-07-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hakan \n\nThank you VERY much for your input and nicely done.. works perfectly .. Enrico .. again that you very much for your help!!\n\nRick Lipkin",
"time": "13:54",
"topic": "Adding a real time character count to a memo field dialog bx",
"username": "Rick Lipkin"
}
] |
Adding a real time character count to a memo field dialog bx
|
[
{
"date": "2023-07-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI need this register key :\n\n[HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Word\\Security]\n\"DisableWarningOnIncludeFieldsUpdate\"=dword:00000001\n\nHow can I check in my application if this key already exists?\nAnd in case it doesn't exist, how can I add it in my application?\n\nThank you very much in advance for any help.",
"time": "23:54",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nPlease try this and let me know what you get:\n\n[code=fw:20ggt634]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#define</span> HKEY_CURRENT_USER <span style=\"color: #000000;\">2147483649</span> <br /><br /> <span style=\"color: #00C800;\">local</span> nHandle, nValue <br /><br /> <span style=\"color: #00C800;\">if</span> RegOpenKey<span style=\"color: #000000;\">(</span> HKEY_CURRENT_USER,;<br /> <span style=\"color: #ff0000;\">\"Software<span style=\"color: #000000;\">\\M</span>icrosoft<span style=\"color: #000000;\">\\O</span>ffice<span style=\"color: #000000;\">\\1</span>6.0<span style=\"color: #000000;\">\\W</span>ord<span style=\"color: #000000;\">\\S</span>ecurity\"</span>, @nHandle <span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">0</span><br /> RegQueryValue<span style=\"color: #000000;\">(</span> nHandle, <span style=\"color: #ff0000;\">\"DisableWarningOnIncludeFieldsUpdate\"</span>, @nValue <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> nValue, ValType<span style=\"color: #000000;\">(</span> nValue <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> RegCloseKey<span style=\"color: #000000;\">(</span> nHandle <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span></div>[/code:20ggt634]",
"time": "07:33",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Antonio Linares"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nThank you for your message.\nUnfortunately, the register key is not added.",
"time": "10:27",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nwhat is shown from the MsgInfo() ?",
"time": "11:06",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Antonio Linares"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Only a backslash",
"time": "12:37",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nPlease use Microsoft regedit.exe and try to locate it manually",
"time": "17:51",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Antonio Linares"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi,\n[quote=\"driessen\":2f4ugwml]Unfortunately, the register key is not added.[/quote:2f4ugwml]\nhave you start it \"as Admin\" <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "18:03",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Jimmy"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "look,\n\n[url:2agn1eb5]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=42673&p=256920&hilit=TReg32&sid=f15a2b41e9a2f5c0991f021a042fe9ab&sid=f2ce5d0132445ffed2f9e303a9e535a2#p256920[/url:2agn1eb5]\n\nRegards, saludos.",
"time": "03:24",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "karinha"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:fyj2qwgz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Managing Register services from FiveWin</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_CLASSES_ROOT <span style=\"color: #000000;\">2147483648</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_CURRENT_USER <span style=\"color: #000000;\">2147483649</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_LOCAL_MACHINE <span style=\"color: #000000;\">2147483650</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_USERS <span style=\"color: #000000;\">2147483651</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_PERFORMANCE_DATA <span style=\"color: #000000;\">2147483652</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_CURRENT_CONFIG <span style=\"color: #000000;\">2147483653</span><br /><span style=\"color: #00D7D7;\">#define</span> HKEY_DYN_DATA <span style=\"color: #000000;\">2147483654</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <br /> <span style=\"color: #00C800;\">LOCAL</span> nHKey := HKEY_CURRENT_USER<br /> <span style=\"color: #00C800;\">LOCAL</span> cRegPath := <span style=\"color: #ff0000;\">\"SOFTWARE<span style=\"color: #000000;\">\\M</span>icrosoft<span style=\"color: #000000;\">\\O</span>ffice<span style=\"color: #000000;\">\\1</span>6.0<span style=\"color: #000000;\">\\W</span>ord<span style=\"color: #000000;\">\\S</span>ecurity\"</span><br /> <br /> <span style=\"color: #B900B9;\">// Set without any Check</span><br /> <span style=\"color: #B900B9;\">// Setregistry( nHKey, cRegPath, \"DisableWarningOnIncludeFieldsUpdate\", 1)</span><br /> <br /> <span style=\"color: #B900B9;\">// Check Registryvalue</span><br /> <span style=\"color: #00C800;\">IF</span> .NOT. QueryRegistry<span style=\"color: #000000;\">(</span> nHKey, cRegPath, ;<br /> <span style=\"color: #ff0000;\">\"DisableWarningOnIncludeFieldsUpdate\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// ... and create it</span><br /> QueryRegistry<span style=\"color: #000000;\">(</span> nHKey, cRegPath, ;<br /> <span style=\"color: #ff0000;\">\"DisableWarningOnIncludeFieldsUpdate\"</span>, <span style=\"color: #000000;\">1</span>, .T. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span>GetRegistry<span style=\"color: #000000;\">(</span> nHKey, cRegPath, <span style=\"color: #ff0000;\">\"DisableWarningOnIncludeFieldsUpdate\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// result: 1</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span></div>[/code:fyj2qwgz]",
"time": "08:29",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "alerchster"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Alerchster,\n\nThank you so much for your help. It works fantastic now.\n\nOne more little question.\n\nCan you tell me how to delete a registry key?\n\nThank you very much.",
"time": "10:18",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nTo find the registry key manually is no problem.\n\nJimmy,\n\nI am administrator.",
"time": "18:52",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nDo you have the entry \"DisableWarningOnIncludeFieldsUpdate\" already created ?",
"time": "19:51",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Antonio Linares"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI have created the key manually. That is no problem.\n\nBut I want my application to add the key automatically so that it is installed on all PC’s on which my applications are used.\n\nThis key is necessary to prevent a mastbos is shown in Word everytime a document is used that has been mailed to my customer. My customers use hundredthousands documents, so by this key a click is avoided everytime a document is opened.",
"time": "19:58",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Michel,\n\nMaybe you have to grant the user admin rights when setting this key. \n\nI want to remind you that you need to set this key for every user. \n\nBest regards,\nOtto",
"time": "22:22",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Otto"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Not my cup of thee, but in this code there is also a register search and add. Maybe it is helpfull\n\nFrom Karinha\n\n[url:z0h29bxc]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=41666#p249622[/url:z0h29bxc]\n\n[code=fw:z0h29bxc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>RegOpenKey<span style=\"color: #000000;\">(</span>HKEY_CURRENT_USER, KEY_DISABLETASKMGR, &hKey<span style=\"color: #000000;\">)</span> != ERROR_SUCCESS<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>RegCreateKey<span style=\"color: #000000;\">(</span>HKEY_CURRENT_USER, KEY_DISABLETASKMGR, &hKey<span style=\"color: #000000;\">)</span> != ERROR_SUCCESS<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>bEnableDisable<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Enable</span><br /> <span style=\"color: #000000;\">{</span><br /> r = RegDeleteValue<span style=\"color: #000000;\">(</span>hKey, VAL_DISABLETASKMGR<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #B900B9;\">// Disable</span><br /> <span style=\"color: #000000;\">{</span><br /> val = <span style=\"color: #000000;\">1</span>;<br /> r = RegSetValueEx<span style=\"color: #000000;\">(</span>hKey, VAL_DISABLETASKMGR, <span style=\"color: #000000;\">0</span>, REG_DWORD, <span style=\"color: #000000;\">(</span>BYTE *<span style=\"color: #000000;\">)</span>&val, sizeof<span style=\"color: #000000;\">(</span>val<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> RegCloseKey<span style=\"color: #000000;\">(</span>hKey<span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">(</span>r == ERROR_SUCCESS ? <span style=\"color: #000000;\">1</span> : <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #000000;\">}</span><br /><br /> </div>[/code:z0h29bxc]",
"time": "22:45",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Marc Venken"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:2rkbu6c9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">win_regdelete<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"HKEY_CURRENT_USER<span style=\"color: #000000;\">\\S</span>OFTWARE<span style=\"color: #000000;\">\\M</span>icrosoft<span style=\"color: #000000;\">\\O</span>ffice<span style=\"color: #000000;\">\\1</span>6.0<span style=\"color: #000000;\">\\W</span>ord<span style=\"color: #000000;\">\\S</span>ecurity<span style=\"color: #000000;\">\\D</span>isableWarningOnIncludeFieldsUpdate\"</span><span style=\"color: #000000;\">)</span></div>[/code:2rkbu6c9]",
"time": "05:05",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "alerchster"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nfrom Harbour Changelog file:\n\n[code=fw:1ulpzy2b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">2012</span><span style=\"color: #000000;\">-05</span><span style=\"color: #000000;\">-18</span> <span style=\"color: #000000;\">18</span>:<span style=\"color: #000000;\">15</span> UTC<span style=\"color: #000000;\">+0300</span> Pavel Tsarenko <span style=\"color: #000000;\">(</span>tpe2 <span style=\"color: #00C800;\">at</span> <span style=\"color: #0000ff;\">mail</span>.ru<span style=\"color: #000000;\">)</span><br /> * contrib/hbwin/win_reg.prg<br /> * contrib/hbwin/tests/test_reg.prg<br /> * added nRegSam <span style=\"color: #000000;\">(</span>access mask<span style=\"color: #000000;\">)</span> parameter into functions: <span style=\"color: #000000;\">win_regRead</span>,<br /> win_regWrite, win_regGet, win_regDelete, win_regQuery, win_regSet.<br /> This parameter can be used in win32 applications, running under<br /> win64 systems <span style=\"color: #00C800;\">for</span> access <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">32</span>-bit or <span style=\"color: #000000;\">64</span>-bit registry.</div>[/code:1ulpzy2b]\n\nI hope this help you.\n\nBest regards,",
"time": "06:28",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "Baxajaun"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2023-07-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Guys,\n\nThank you all so much for your help.\n\nAll my questions have been answered. Everything is running just fine now.",
"time": "08:50",
"topic": "Adding a register key to the Windows register - SOLVED",
"username": "driessen"
}
] |
Adding a register key to the Windows register - SOLVED
|
[
{
"date": "2012-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nI have an array that is created from a table and I use that array as the pick list from a combobox\n\n[code=fw:is7zcqtb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aBin := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br />oRsBin:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> .not. oRsBin:<span style=\"color: #000000;\">eof</span><br /><br /> cName := oRsBin:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Bin\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /> AAdd<span style=\"color: #000000;\">(</span> aBin, cName <span style=\"color: #000000;\">)</span><br /> oRsBin:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />End <span style=\"color: #00C800;\">Do</span><br /><br />oRsBin:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />oRsBin := <span style=\"color: #00C800;\">NIL</span><br /><br />...<br />...<br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oBin <span style=\"color: #0000ff;\">var</span> cBin <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">171</span> <span style=\"color: #0000ff;\">of</span> oInvt ;<br /> <span style=\"color: #0000ff;\">ITEMS</span> aBin <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> </div>[/code:is7zcqtb]\n\nI have a side button function that adds a new record to the table then adds that new element to the passed array ( by reference ) . \n\n[code=fw:is7zcqtb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBTN10 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">153</span> <span style=\"color: #0000ff;\">of</span> oInvt ; <span style=\"color: #B900B9;\">// add bin</span><br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #000000;\">2007</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> _BinView<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"INV\"</span>, @aBin, @cBin, oBin <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:is7zcqtb]\n\n[code=fw:is7zcqtb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />FUNC _BinView<span style=\"color: #000000;\">(</span> cMODE, oRsBin, cFrom, aBin, cBin, oBin <span style=\"color: #000000;\">)</span><br /><br />...<br />...<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oUSERS <span style=\"color: #B900B9;\">// modal dialog</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> cFrom = <span style=\"color: #ff0000;\">\"INV\"</span> .and. cMode = <span style=\"color: #ff0000;\">\"A\"</span><br /> * <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">(</span> abin <span style=\"color: #000000;\">)</span><br /><br /> cName := oRsBin:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Bin\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span> cName <span style=\"color: #000000;\">)</span><br /><br /> AAdd<span style=\"color: #000000;\">(</span> aBin, cName <span style=\"color: #000000;\">)</span><br /> oRsBin:<span style=\"color: #000000;\">CLose</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> cBin := cName<br /> oBin:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> * <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">(</span> abin <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENdif</span><br /><br />lOK1 := lOK<br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> lOK1 <span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:is7zcqtb]\n\nAs I have tested .. the passed array is being appended as it was passed by reference .. but the list of values ( aBin array ) does not change when I go back and pull down the list in the Combobox.\n\nAs you can see .. I am trying to Refresh all the objects but when I return to the combobox .. aBin is not updated with my new record.\n\nObviously this has something to do with updating the aBin variable on the Combobox .. any help would be appreciated.\n\nRick Lipkin",
"time": "22:14",
"topic": "Adding an Element to a Combobox array",
"username": "Rick Lipkin"
}
] |
Adding an Element to a Combobox array
|
[
{
"date": "2012-07-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick, try using oCbx:SetItems( aBin ) method.\n\nEMG",
"time": "23:04",
"topic": "Adding an Element to a Combobox array",
"username": "Enrico Maria Giordano"
}
] |
Adding an Element to a Combobox array
|
[
{
"date": "2012-07-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico\n\nThank you! Worked great\n\nRick Lipkin",
"time": "14:56",
"topic": "Adding an Element to a Combobox array",
"username": "Rick Lipkin"
}
] |
Adding an Element to a Combobox array
|
[
{
"date": "2011-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI want to add an option to right click menu in TGet. I have done in system menu using SYSMENU. Is there any clause for this?\n\nThanks",
"time": "13:47",
"topic": "Adding an option to right click menu on TGet.",
"username": "Horizon"
}
] |
Adding an option to right click menu on TGet.
|
[
{
"date": "2012-02-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi everyone;\n\nI wish to add tabs to a FW folder control at runtime. Likewise, I'd like to add an x btnbmp at the right of the tab to allow closing the tab page. The tab control is on a dialog control. In short, it would look like browser tabs that you can keep creating or deleting at any time. Is this possible? Any samples?\n\nThank you for any help,\n\n\n\nReinaldo.",
"time": "17:15",
"topic": "Adding and Deleting tabs on Dlg at runtime",
"username": "reinaldocrespo"
}
] |
Adding and Deleting tabs on Dlg at runtime
|
[
{
"date": "2012-02-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello\n\nyes, review sample testfldd.prg\n\nit's a mod form testfldd.prg\n\n[code=fw:70ppj78h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// Dinamically adding pages and controls</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oFld<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"dlg1\"</span>, <span style=\"color: #ff0000;\">\"dlg2\"</span> <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</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;\">(</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;\">CENTERED</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> AddDialog<span style=\"color: #000000;\">(</span> oFld <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> AddDialog<span style=\"color: #000000;\">(</span> oFld <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">local</span> nOpt<br /><br /> oFld:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"third\"</span> <span style=\"color: #000000;\">)</span><br /> <br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Add from res\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> oFld:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Fourth\"</span>, <span style=\"color: #ff0000;\">\"dlg2\"</span>, <span style=\"color: #000000;\">{</span> | oDlg | RedefineControls<span style=\"color: #000000;\">(</span> oDlg <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span>,;<br /> ATail<span style=\"color: #000000;\">(</span> oFld:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> oFld:<span style=\"color: #000000;\">oFont</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Del Last Tab\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> nOpt := oFld:<span style=\"color: #000000;\">nOption</span>, oFld:<span style=\"color: #000000;\">nOption</span> := Len<span style=\"color: #000000;\">(</span> oFld:<span style=\"color: #000000;\">aPrompts</span> <span style=\"color: #000000;\">)</span>, oFld:<span style=\"color: #000000;\">DelItem</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oFld:<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">(</span> nOpt <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 /><br /><span style=\"color: #00C800;\">function</span> RedefineControls<span style=\"color: #000000;\">(</span> oDlg <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nValue := <span style=\"color: #000000;\">1</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">RADIO</span> nValue <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> MsgBeep<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:70ppj78h]",
"time": "01:36",
"topic": "Adding and Deleting tabs on Dlg at runtime",
"username": "Daniel Garcia-Gil"
}
] |
Adding and Deleting tabs on Dlg at runtime
|
[
{
"date": "2006-11-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio\n\nI am trying to add different bitmaps to the themed rPreview toolbar\nThese bitmaps are contained in my normal RES file (not in Prev32.dll)\nI cant get this to work\neg below even thing Bmp_Pdf exists in my resources, it wont display\n\n* Code snippet*\n::oImageList:AddMasked( TBitmap():Define( \"\"BMP_Pdf\"\",, ::oWnd ), nRGB( 192, 192, 192 ) )\n\nDo image lists require special kinds of bmps?\nWould appreciate any assistance\n\nThanks\nPeter",
"time": "16:17",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "peterk"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio\n\nI am trying to add different bitmaps to the themed rPreview toolbar\nThese bitmaps are contained in my normal RES file (not in Prev32.dll)\nI cant get this to work\neg below even though Bmp_Pdf exists in my resources, it wont display\n\n* Code snippet*\n::oImageList:AddMasked( TBitmap():Define( \"\"BMP_Pdf\"\",, ::oWnd ), nRGB( 192, 192, 192 ) )\n\nDo image lists require special kinds of bmps?\nWould appreciate any assistance\n\nThanks\nPeter",
"time": "16:18",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "peterk"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "How can you converte the preview in pdf file ?",
"time": "18:34",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "Silvio"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Peter,\n\nWhere are you adding that code? If it is inside the rpreview function then you have to switch to your resources to load your bitmap, then switch back (see getResources() and setResources() near the top of the rpreview function in rpreview.prg). I also note that oImageList and oWnd are locals in this routine but you have them as instance vars.\n\nJames",
"time": "03:15",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "James Bott"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio;\n\nRead here:\n\n[/url]\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=4757\">http://fivetechsoft.com/forums/viewtopic.php?t=4757</a><!-- m -->\n[url]\n\n\nIt absolutely works great!\n\nReinaldo.",
"time": "03:43",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "reinaldocrespo"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "1) :: is there because we have converted rPreview to a class\n\n2) The pdf utility we are using is <!-- w --><a class=\"postlink\" href=\"http://www.utilitywarrior.com\">www.utilitywarrior.com</a><!-- w --> product\n\n3) I did try \"SET RESOURCES TO\" before the\n\"::oImageList:AddMasked( TBitmap():Define( \"BMP_Pdf\", , ::oWnd ), nRGB( 255, 255, 255 ) )\" line, but this does not work\n\n4) I tried putting the bitmap in prev32.dll (using resource builder) - that also did not work\n\nI am thinking that maybe theming requires a special type of bitmap ?\nI have run out of ideas\n\nThanks\nPeter",
"time": "06:07",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "peterk"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Peter,\n\nHas the bitmap the same dimensions of the other bitmaps ?",
"time": "17:16",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "Antonio Linares"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Peter,\n\n>1) :: is there because we have converted rPreview to a class \n\nThen, are you sure this code is getting linked in and used? One way to find out is to put a msgInfo() in it.\n\n>I am thinking that maybe theming requires a special type of bitmap?\n\nNot so, all my apps are themed and all my bitmaps work fine.\n\nJames",
"time": "17:22",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "James Bott"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "to converte rpreview to a class is easy... and then ?",
"time": "00:18",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "Silvio"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2006-11-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi All\nI have resolved this. The problem was caused because the no of bitmaps in the imagelist is > than the no of btns, and I was assuming the my new pdf btn corresponded to the correct bmp in the imagelist. \n\nI had to add a call to ::oBar:ChangeBitmap() to set my Pdf btn to the correct bmp. All ok now.\n\nThanks for the assistance\nPeter",
"time": "10:30",
"topic": "Adding bitmaps to themed rPreview toolbar",
"username": "peterk"
}
] |
Adding bitmaps to themed rPreview toolbar
|
[
{
"date": "2022-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nDoes anyone have an example how to add a button on an excel-sheet?\n\nThank you,",
"time": "10:31",
"topic": "Adding button in excel with FW",
"username": "Marc Vanzegbroeck"
}
] |
Adding button in excel with FW
|
[
{
"date": "2022-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Marc.\nSorry, I don't know how to do this with FWH and ole commands.\nBut here an example for adding a button tonabworksheet of excel.\n[code=fw:2hadb4ui]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> Sub AddButtonAndCode<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #ff0000;\">' Declare variables<br /> Dim i As Long, Hght As Long <br /> Dim Name As String, NName As String <br /> '</span> Set the <span style=\"color: #0000ff;\">button</span> properties<br /> i = <span style=\"color: #000000;\">0</span> <br /> Hght = <span style=\"color: #000000;\">305.25</span> <br /> <span style=\"color: #ff0000;\">' Set the name for the button<br /> NName = \"cmdAction\" & i <br /> '</span> Test <span style=\"color: #00C800;\">if</span> there is a <span style=\"color: #0000ff;\">button</span> already and <span style=\"color: #00C800;\">if</span> so, increment its <span style=\"color: #0000ff;\">name</span><br /> <span style=\"color: #00C800;\">For</span> Each OLEObject In ActiveSheet.OLEObjects <br /> <span style=\"color: #00C800;\">If</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span>OLEObject.<span style=\"color: #0000ff;\">Name</span>, <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"cmdAction\"</span> Then <br /> <span style=\"color: #0000ff;\">Name</span> = <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">(</span>OLEObject.<span style=\"color: #0000ff;\">Name</span>, Len<span style=\"color: #000000;\">(</span>OLEObject.<span style=\"color: #0000ff;\">Name</span><span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">If</span> <span style=\"color: #0000ff;\">Name</span> >= i Then <br /> i = <span style=\"color: #0000ff;\">Name</span> + <span style=\"color: #000000;\">1</span> <br /> End <span style=\"color: #00C800;\">If</span> <br /> NName = <span style=\"color: #ff0000;\">\"cmdAction\"</span> & i <br /> Hght = Hght + <span style=\"color: #000000;\">27</span> <br /> End <span style=\"color: #00C800;\">If</span> <br /> <span style=\"color: #00C800;\">Next</span> <br /> <span style=\"color: #ff0000;\">' Add button<br /> Dim myCmdObj As OLEObject, N% <br /> Set myCmdObj = ActiveSheet.OLEObjects.Add(ClassType:=\"Forms.CommandButton.1\", _ <br /> Link:=False, DisplayAsIcon:=False, Left:=52.5, Top:=Hght, _ <br /> Width:=202.5, Height:=26.25) <br /> '</span> <span style=\"color: #0000ff;\">Define</span> buttons <span style=\"color: #0000ff;\">name</span><br /> myCmdObj.<span style=\"color: #0000ff;\">Name</span> = NName <br /> <span style=\"color: #ff0000;\">' Define buttons caption<br /> myCmdObj.Object.Caption = \"Click for action\" <br /> '</span> Inserts code <span style=\"color: #00C800;\">for</span> the <span style=\"color: #0000ff;\">button</span><br /> With ThisWorkbook.VBProject.VBComponents<span style=\"color: #000000;\">(</span>ActiveSheet.CodeName<span style=\"color: #000000;\">)</span>.CodeModule <br /> N = .CountOfLines <br /> .InsertLines N + <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"Private Sub \"</span> & NName & <span style=\"color: #ff0000;\">\"_Click()\"</span> <br /> .InsertLines N + <span style=\"color: #000000;\">2</span>, vbNewLine <br /> .InsertLines N + <span style=\"color: #000000;\">3</span>, vbTab & <span style=\"color: #ff0000;\">\"MsgBox(\"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\"Button Clicked!\"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\" & vbCrLf &\"</span> & _ <br /> <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\"Put your code here!\"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\" & vbCrLf & \"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\"This is \"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & _ <br /> <span style=\"color: #ff0000;\">\"& \"</span> & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & NName & <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #ff0000;\">\"\"</span> & <span style=\"color: #ff0000;\">\")\"</span> <br /> .InsertLines N + <span style=\"color: #000000;\">4</span>, vbNewLine <br /> .InsertLines N + <span style=\"color: #000000;\">5</span>, <span style=\"color: #ff0000;\">\"End Sub\"</span> <br /> End With <br />End Sub</div>[/code:2hadb4ui]\nPerhaps this could give you an idea?\nRegards,\nDetlef",
"time": "15:26",
"topic": "Adding button in excel with FW",
"username": "Detlef"
}
] |
Adding button in excel with FW
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.