topic
stringlengths
1
63
text
stringlengths
1
577k
Assignment = or := ?
= is not a VB assignment style at all. It's the most widely used token for the assignment operator. And it's good style in xBase too. I can't see why to use the inline assignment operator in a statement like [code=fw:2fp8kkor]<div class="fw" id="{CB}" style="font-family: monospace;">a := <span style="color: #000000;">1</span></div>[/code:2fp8kkor] and I don't like it for sure. EMG
Assignment = or := ?
To be sure, use := always <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Assignment = or := ?
Ok, so to be sure use always + because * is too complicated. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Assignment = or := ?
Hello Enrico, Fivewin classes are my reference for good programming style. As I see that for the same assignment in different classes = and := are used I asked which is the right way. I personally prefer :=. Why context determining which is meant. Thanks again for your help. Best regards, Otto
Assignment = or := ?
Otto, We do prefer to use "=" unless ":=" (inline assignment) is required. Anyhow, both ways are valid, though "=" is simpler <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Assinador digital (firma digital)
Hola! Miro por ejemplo para la firma digital utilizando certificados A1 y A3. Gracuas. Rodrigo Melo Brasil
Assinador digital (firma digital)
[url:1ynudo0s]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=33214[/url:1ynudo0s]
Associate PDF file with browser
Hello, I searched and did not find a way to associate a PDF file with standard internet browsing, via programming, Anybody know ?
Associate PDF file with browser
Dear Ari, chatGPT answer: [quote:321hzdr6]You can use the Windows Registry to associate file extensions with default programs. Specifically, you'll need to modify the registry entry for the ".pdf" extension to associate it with a web browser. This can be done using the regedit command or programmatically through the Windows Registry API. Locate the registry key: HKEY_CLASSES_ROOT\.pdf Set the (Default) value to "AcroExch.Document" (for Adobe Acrobat Reader) or "ChromeHTML" (for Google Chrome), depending on the browser you want to associate. You may also need to modify the registry keys under HKEY_CLASSES_ROOT\[AssociatedKey]\Shell\Open\Command to point to the correct browser executable[/quote:321hzdr6] [code=fw:321hzdr6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <Windows.h><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><br />int main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HKEY hKey;<br />&nbsp; &nbsp; LPCSTR fileExtension = <span style="color: #ff0000;">".pdf"</span>;<br />&nbsp; &nbsp; LPCSTR browserKey = <span style="color: #ff0000;">"AcroExch.Document"</span>; <span style="color: #B900B9;">// Change this to "ChromeHTML" for Chrome</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Open the registry key for the file extension</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>RegOpenKeyEx<span style="color: #000000;">&#40;</span>HKEY_CLASSES_ROOT, fileExtension, <span style="color: #000000;">0</span>, KEY_WRITE, &hKey<span style="color: #000000;">&#41;</span> != ERROR_SUCCESS<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Failed to open registry key<span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Set the default value to the browser key</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>RegSetValueEx<span style="color: #000000;">&#40;</span>hKey, <span style="color: #00C800;">NULL</span>, <span style="color: #000000;">0</span>, REG_SZ, <span style="color: #000000;">&#40;</span>BYTE*<span style="color: #000000;">&#41;</span>browserKey, <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span>browserKey<span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> != ERROR_SUCCESS<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Failed to set registry value<span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; RegCloseKey<span style="color: #000000;">&#40;</span>hKey<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"PDF file association with the browser has been set successfully.<span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Close the registry key</span><br />&nbsp; &nbsp; RegCloseKey<span style="color: #000000;">&#40;</span>hKey<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:321hzdr6]
Associate PDF file with browser
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Chat is really good! thank you very much
Associate file
Hi, How can I associate a file extension with my piece of software we've written from inside our software?
Associate file
I also need it. Any idea how?
Associate file
it can be very good, can you make a test sample to use it ?
Associate file
[code=fw:95qbpzo4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#Define</span> &nbsp;nCLASSES_ROOT &nbsp;<span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">LOCAL</span> aFileExt := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'.pdf'</span>,<span style="color: #ff0000;">'.rtf'</span>,<span style="color: #ff0000;">'.doc'</span>,<span style="color: #ff0000;">'.xls'</span><span style="color: #000000;">&#125;</span> <br /><br />AEval<span style="color: #000000;">&#40;</span>aFileExt, <span style="color: #000000;">&#123;</span>|a,n|cRet := GetRegistry<span style="color: #000000;">&#40;</span> nCLASSES_ROOT , a, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>cRet <> <span style="color: #00C800;">nil</span> .Or. cRet == <span style="color: #ff0000;">''</span>,,<span style="color: #000000;">&#40;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>a == <span style="color: #ff0000;">'.pdf'</span>,<span style="color: #000000;">&#40;</span>cMsg += <span style="color: #ff0000;">" &nbsp; '.pdf' &nbsp;= &nbsp;PDF File Format(Acrobat Reader)"</span> + CRLF, nFound := n<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>a == <span style="color: #ff0000;">'.rtf'</span>,<span style="color: #000000;">&#40;</span>cMsg += <span style="color: #ff0000;">" &nbsp; '.rtf' &nbsp;= &nbsp;RichText File Format(Word Pad) "</span> + CRLF, nFound := n<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>a == <span style="color: #ff0000;">'.doc'</span>,<span style="color: #000000;">&#40;</span>cMsg += <span style="color: #ff0000;">" &nbsp; '.doc' &nbsp;= &nbsp;MS Word File Format(MS Office or Sun's OpenOffice)"</span> &nbsp;+ CRLF, nFound := n<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>a == <span style="color: #ff0000;">'.xls'</span>,<span style="color: #000000;">&#40;</span>cMsg += <span style="color: #ff0000;">" &nbsp; '.xls' &nbsp;= &nbsp;MS Excel File Format(MS Office or Sun's OpenOffice)"</span> + CRLF, nFound := n<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:95qbpzo4]
Associate file
Ammunez, Thanks, but This is not what I need. I want is to make the association between some types of files with my application. When the user makes a double click on the files, deploy my app. Any ideas?
Associated Application ICONS
We mostly produce serious business applications. I doubt if this topic be of much practical use. Nonetheless, it can be an interesting diversion. The idea is given any existing file, read the icon of the associated application and display. For example, if the file is "some.xlsx" display the icon of Excel application, for "some.docx", display icon of the Word Application, etc. Here, we will demonstrate how simple and easy to do this, using FWH. Please note, we have to use existing file names. Sample-1 [code=fw:11um3788]<div class="fw" id="{CB}" style="font-family: monospace;">XIMAGE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"some.pptx(256x256)"</span><span style="color: #000000;">&#41;</span></div>[/code:11um3788] [url=https&#58;//imageshack&#46;com/i/pmdx3r0Fg:11um3788][img:11um3788]https&#58;//imagizer&#46;imageshack&#46;com/img922/6830/dx3r0F&#46;gif[/img:11um3788][/url:11um3788] Sample-2 [code=fw:11um3788]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">510</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">&#40;</span> ;<br />      oDlg:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"some.xlsx(16x16)"</span>, <span style="color: #000000;">&#123;</span>,,,<span style="color: #000000;">50</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, ;<br />      oDlg:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"some.xlsx(32x32)"</span>, <span style="color: #000000;">&#123;</span>,<span style="color: #000000;">50</span>,,<span style="color: #000000;">100</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, ;<br />      oDlg:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"some.xlsx(64x64)"</span>, <span style="color: #000000;">&#123;</span>,<span style="color: #000000;">100</span>,,<span style="color: #000000;">200</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, ;<br />      oDlg:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"some.xlsx(256x256)"</span>, <span style="color: #000000;">&#123;</span>,<span style="color: #000000;">200</span>,,<span style="color: #000000;">500</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:11um3788] [url=https&#58;//imageshack&#46;com/i/pmHhoxKgp:11um3788][img:11um3788]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/HhoxKg&#46;png[/img:11um3788][/url:11um3788] Sample-3: From next version [code=fw:11um3788]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">80</span> <span style="color: #000000;">2007</span><br /><br />   <span style="color: #00C800;">for</span> each c in <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DOCX"</span>, <span style="color: #ff0000;">"XLSX"</span>, <span style="color: #ff0000;">"PPTX"</span>, <span style="color: #ff0000;">"PDF"</span>, <span style="color: #ff0000;">"TXT"</span> <span style="color: #000000;">&#125;</span><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> c FILE <span style="color: #ff0000;">"."</span> + c,<span style="color: #ff0000;">"."</span> + c,<span style="color: #ff0000;">"."</span> + c, <span style="color: #ff0000;">"."</span> + c + <span style="color: #ff0000;">"(16x16)"</span><br />   <span style="color: #00C800;">next</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:11um3788] Till FWH2206, we need to use existing file names. [url=https&#58;//imageshack&#46;com/i/pnJuqJ7ig:11um3788][img:11um3788]https&#58;//imagizer&#46;imageshack&#46;com/img923/5153/JuqJ7i&#46;gif[/img:11um3788][/url:11um3788] Sample-4 [code=fw:11um3788]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span> cPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cPath := <span style="color: #ff0000;">"c:<span style="color: #000000;">\a</span>Files<span style="color: #000000;">\"</span> &nbsp; // your folder here<br /><br />&nbsp; &nbsp;XBROWSER DIRECTORY( cPath + "</span>*.*<span style="color: #ff0000;">" ) COLUMNS 1,2,3 ;<br />&nbsp; &nbsp;TITLE "</span>FILE ICONS<span style="color: #ff0000;">" ;<br />&nbsp; &nbsp;SETUP BrwSetup( oBrw, cPath )<br /><br />return nil<br /><br />static function BrwSetup( oBrw, cPath )<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :cHeaders := { "</span><span style="color: #0000ff;">Name</span><span style="color: #ff0000;">","</span><span style="color: #0000ff;">Size</span><span style="color: #ff0000;">","</span>Date<span style="color: #ff0000;">" }<br />&nbsp; &nbsp; &nbsp; :nRowHeight := 34<br />&nbsp; &nbsp; &nbsp; WITH OBJECT :aCols[ 1 ]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:bBmpData := { || cPath + oBrw:aRow[ 1 ] }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:bLDClickData &nbsp;:= { || ShellExecute( 0, "</span>Open<span style="color: #ff0000;">", cPath + oBrw:aRow[ 1 ],,, 1 ) }<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;END<br /><br />return nil<br /></span></div>[/code:11um3788] [url=https&#58;//imageshack&#46;com/i/pmzGOZCxp:11um3788][img:11um3788]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/zGOZCx&#46;png[/img:11um3788][/url:11um3788] Note: Easy to write but not fully optimized for speed.
Associated Application ICONS
Dear Rao, Great work, many thanks!
Associated Application ICONS
Nice Rao. I'm not clear on which command to use to get the icon
Associated Application ICONS
hi, try this c:\fwh\source\winapi\icons.c [code=fw:kzu62f18]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ICON_READ <span style="color: #000000;">&#41;</span></div>[/code:kzu62f18] c:\fwh\source\winapi\gdipfwh.cpp [code=fw:kzu62f18]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ICON_READEX <span style="color: #000000;">&#41;</span></div>[/code:kzu62f18]
Associated Application ICONS
Thanks Jimmy. Any idea how to assign them to a BTNBMP? [quote="Jimmy":305ooymk] try this c:\fwh\source\winapi\icons.c [code=fw:305ooymk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ICON_READ <span style="color: #000000;">&#41;</span></div>[/code:305ooymk] c:\fwh\source\winapi\gdipfwh.cpp [code=fw:305ooymk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ICON_READEX <span style="color: #000000;">&#41;</span></div>[/code:305ooymk][/quote:305ooymk]
Associated Application ICONS
hi, [quote="hua":2im1v6ok]Any idea how to assign them to a BTNBMP?[/quote:2im1v6ok] i have not work with CLASS TBtnBmp() yet when look into Soure i found [quote:2im1v6ok] // // if user has directly assigned hBitmapX //[/quote:2im1v6ok] i guess you can use "o:hBmp" to assign Result a hBitmap ... but i´m not sure about hIcon (from ICON_READ() )
Associated Application ICONS
For many years, I have used Axialis for all my bitmaps. Now they have Icon Generator which is a free download. They also sell many libraries, but include a huge number of free Google icons. With the generator, you can easily colorize those Google icons. You can also add overlays to them to create new icons. Instead of bitmaps, I now use all vector icons ( created by IG ) on all of my bitmap bars. They work very nicely and are clean. You can buy a wide variety of styles already made, or you can build your own. In a large application, with many options, we often need custom icons.
Associated Application ICONS
[quote:2cc8ecjn]Any idea how to assign them to a BTNBMP? [/quote:2cc8ecjn] Very simple. See Sample-3 above This is a very simple example you can try right now: This sample works with FWH1912 [code=fw:2cc8ecjn]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MS-WORD"</span>  FILE <span style="color: #ff0000;">"T.DOCX(64X64)"</span>    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MS-EXCEL"</span> FILE <span style="color: #ff0000;">"SOME.XLSX(64x64)"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:2cc8ecjn] [url=https&#58;//imageshack&#46;com/i/pm1PDnWRp:2cc8ecjn][img:2cc8ecjn]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/1PDnWR&#46;png[/img:2cc8ecjn][/url:2cc8ecjn] Just specify the file name like any bitmap/image file. FWH will take care of all that is needed. This feature was availabe for many years Till FWH2206, we need to specify an existing file, From FWH2210, it is enough if we specify dot ext , eg: ".DOCX", ".PDF", etc. , but limited to sizes 16x16 a,nd 32x32 only
Associated Application ICONS
Cool! I didn't realize it's already available. Thanks Rao!
Associated Application ICONS
Thanks for tip Tim. [quote="TimStone":10xxq3ay]For many years, I have used Axialis for all my bitmaps. Now they have Icon Generator which is a free download. They also sell many libraries, but include a huge number of free Google icons. With the generator, you can easily colorize those Google icons. You can also add overlays to them to create new icons. Instead of bitmaps, I now use all vector icons ( created by IG ) on all of my bitmap bars. They work very nicely and are clean. You can buy a wide variety of styles already made, or you can build your own. In a large application, with many options, we often need custom icons.[/quote:10xxq3ay]
Association file
How I can make to associate a specfic icon to a type of file ? I wish associate all dbf file of my application with a specific icon
Association file
Look <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=8814#p41604">viewtopic.php?f=6&t=8814#p41604</a><!-- l -->
Association file
I tried but it not change the icon but when I click on a file open the app I wish
Associative arrays in harbour and xharbour
Hello, Working on the conversion from XHB to HBR , i found some differences between harbour and xharbour, but also probably a wrong define in hbcombat.ch A associative array is a hash array where HSETAACOMPATIBILITY is set to .T. in xharbour , hb_KeepOrder in harbour Func TAssociativeArray() LOCAL h := Hash() HSETAACOMPATIBILITY(h,.T.) // translated in hb_hKeepOrder(h,.T.) (harbour) RETURN h The define in hbCombat.ch : #xtranslate HSETAACOMPATIBILITY([<x,...>]) => {| h | ;; hb_HKEEPORDER( h ) ;; return .T. ; }:eval( <x> ) Seems not to work , i changed it in : #xtranslate HSETAACOMPATIBILITY(<x>,<y>) => hb_HKEEPORDER(<x>,<y>) Besides that xharbour has a different behaviour. Creation order can be retrieved as : FOR i := 1 TO LEN(h) ; ? h[i] ; NEXT // We can use numeric index In harbour we become the creation order with : FOR EACH cKey IN h ; ? h[cKey] ; NEXT // In xharbour this gives alfabetic order on the key [code=fw:1k07vkn3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># include <span style="color: #ff0000;">"fivewin.ch"</span><br /># ifdef __HARBOUR__<br /># ifndef __XHARBOUR__<br /># include <span style="color: #ff0000;">"xhb.ch"</span><br /><span style="color: #B900B9;">//Correct this line in hbcompat.ch</span><br />#xtranslate HSETAACOMPATIBILITY<span style="color: #000000;">&#40;</span><x>,<y><span style="color: #000000;">&#41;</span> => hb_HKEEPORDER<span style="color: #000000;">&#40;</span><x>,<y><span style="color: #000000;">&#41;</span><br /># <span style="color: #00C800;">endif</span><br /># <span style="color: #00C800;">endif</span><br />FUNC MAIN<br /><span style="color: #00C800;">LOCAL</span> aStruct := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Name"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Adres"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"City"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> h , i , cKey , txt := <span style="color: #ff0000;">""</span><br />DbCreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Testdbf"</span>,aStruct<span style="color: #000000;">&#41;</span><br />USE TESTDBF<br /><span style="color: #00C800;">IF</span> RECCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />  APPEND BLANK<br />  h := ReadDbfRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"NAME"</span><span style="color: #000000;">&#93;</span>  := <span style="color: #ff0000;">"Demont Frank"</span><br />  h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"ADRES"</span><span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"Street"</span><br />  h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CITY"</span><span style="color: #000000;">&#93;</span>  := <span style="color: #ff0000;">"Antwerp"</span><br />  WriteDbfRec<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />  h := ReadDbfRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END<br /><span style="color: #B900B9;">// Works only in XHARBOUR</span><br /># ifdef __XHARBOUR__<br /><span style="color: #B900B9;">// In Xharbour we can use FIELD->City , Fieldget(3) , h[3] , h["CITY"] , all the same</span><br />Txt := <span style="color: #ff0000;">"Creation order"</span> + CRLF<br /><span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  Txt += PAD<span style="color: #000000;">&#40;</span>FieldName<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> + h<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> + CRLF<br /><span style="color: #00C800;">NEXT</span><br /># <span style="color: #00C800;">endif</span><br />txt += CRLF + CRLF + <span style="color: #ff0000;">"Hash order"</span> + CRLF<br /><span style="color: #B900B9;">// Xharbour should give afabetic order , harbour creation order (hb_hKeepOrder(h,.T.) !)</span><br /><span style="color: #00C800;">FOR</span> EACH cKey IN hGetKeys<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br />  Txt += PAD<span style="color: #000000;">&#40;</span>cKey,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> + h<span style="color: #000000;">&#91;</span>cKey<span style="color: #000000;">&#93;</span> + CRLF<br /><span style="color: #00C800;">NEXT</span><br />? Txt<br />CLOS ALL<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />********************************<br />FUNC ReadDbfRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> h := TAssociativeArray<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> i<br /><span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  h<span style="color: #000000;">&#91;</span>FieldName<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span> := Fieldget<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">RETURN</span> h<br />********************************<br />FUNC WriteDbfRec<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> i , cKey<br /><span style="color: #00C800;">FOR</span> EACH cKey IN hGetKeys<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br />  EVAL<span style="color: #000000;">&#40;</span>Fieldblock<span style="color: #000000;">&#40;</span>cKey , h<span style="color: #000000;">&#91;</span>cKey<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">RETURN</span> h<br />***********************************<br />Func TAssociativeArray<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> h := Hash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> lAssociative := HGetAACompatibility<span style="color: #000000;">&#40;</span> h <span style="color: #000000;">&#41;</span><br />HSETAACOMPATIBILITY<span style="color: #000000;">&#40;</span>h,.T.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// translated in hb_hKeepOrder(h,.T.) (harbour)</span><br />? lAssociative , HGetAACompatibility<span style="color: #000000;">&#40;</span> h <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> h<br /> </div>[/code:1k07vkn3]
Atacar DBF desde una página WEB ??
Amigos:Mi cliente me pide una aplicación que maneje las DBF en un servidor y que el cliente pueda consultar dichas DBF vía una página WEB.Recuerdo algo de CGIs pero no estoy cierto que esa sea la solución adecuada, podría alguien darme una recomendación para saber por donde jalar ??Saludos
Atacar DBF desde una página WEB ??
[quote="Armando":2ctjltlc]Amigos: Mi cliente me pide una aplicación que maneje las DBF en un servidor y que el cliente pueda consultar dichas DBF vía una página WEB. Recuerdo algo de CGIs pero no estoy cierto que esa sea la solución adecuada, podría alguien darme una recomendación para saber por donde jalar ?? Saludos[/quote:2ctjltlc]Busca xScript de Ron Pinkas, sinceramente me parece BRUTAL la potencia que tiene esa DLL, ademas que podemos hacer scripting con el WSH, exactamente igual a como lo hariamos con los VBS.Ademas, puedes usar en el IIS tu codigo xBase de toda la vida.Mira si creo que es potente que te dejo hasta el link <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --><!-- m --><a class="postlink" href="http://www.xharbour.com/xhc/index.asp?page=xhc_download_detail.asp&type=dl&id=62&show_i=7&show_sub=1">http://www.xharbour.com/xhc/index.asp?p ... show_sub=1</a><!-- m -->
Atacar DBF desde una página WEB ??
Rafa:Voy a tirarme un clavado.Muchas gracias por la sugerencia.Saludos
Atacar DBF desde una página WEB ??
voce podera utilizar o winasp.... fiz um exemplo e obtive sucesso
Atacar DBF desde una página WEB ??
Ronaldo:Podrías enviarme el ejemplo ?Saludos
Atacar Oracle
Amigos del foro: Recien instale Oracle 11g y parece que quedó bien instalado, ahora pretendo empezar a hacer pruebas con él. Alguien que me pueda echar un hilo con la cadena de conexión usando ADO y que me indique que usuario y database debo incluir en la cadena de conexión ?. Saludos
Atacar Oracle
Hola Armando, has instalado Oracle Data Access Components en la máquina en la que estas desarrollando ? Si no es así, hazlo. Lo puedes bajar de [url:k8gypfdx]http&#58;//www&#46;oracle&#46;com/technology/software/tech/windows/odpnet/index&#46;html[/url:k8gypfdx] Después puedes utilizar la cadena de conexión: "Provider=OraOLEDB.Oracle;Data Source=BD;User Id=usuario;Password=contraseña;" Saludos, Félix
Atacar Oracle
Felix: Muy amable por contestar, como puedes ver estoy totalmente ignorante con Oracle <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Instale Oracle con los parámetros por Default, despues de 2 o 3 horas quedó instalado, he intentado hacer la conexión con: [code=fw:1kxmwk1q]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">ConnectionString</span> := <span style="color: #ff0000;">"Provider=OraOLEDB.Oracle;dbq=localhost:1158/em;Database=orcl;User Id=SYSOPER;Password=91502127;"</span><br /> </div>[/code:1kxmwk1q] Me tira mensaje de que el usuario/password estan erroneos. Supongo que esta instalado todo lo necesario, sin embargo voy a seguir tu recomendación y te mencionaré los resultados. Saludos
Atacar Oracle
Félix: Seguí tu consejo y despues de descarga el software que me recomendaste veo que hay un SETUP.EXE, lo ejecuto y me aparece el diálogo que me da la opción de desinstalar programas por lo que supongo que estaba instalado el Oracle Data Access Components. Sin embargo el problema persiste al tratar de conectarme, el usuario/password esta incorrecto. Otro detalle es que Oracle es extremadamente inmenso y mi mortal PC no tiene la suficiente capacidad para soportarlo y se ha vuelto más lenta que una vaca echada con reumas tratando de levantarse <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Creo que me portaré excelentemente bien el resto del año para ver si Santa se conduele de mí y me obsequia con una Super PC en esta navidad para volver a intentarlo. Saludos y seguiremos en contacto
Atacar Oracle
Hola Armando, cuando instalaste Oracle, que usuario se creó ? Puedes probar la instalación usando sqlplus sqlplus usuario/contraseña@basededatos Mañana te envio un ejemplo desde el portátil del trabajo y lo miramos con más detenimiento. Saludos, Félix
Atacar Oracle
Armando, Con esta cadena de conexion debes tener el TSN Name apuntando a tu Instancia Oracle. Otra forma es que escribas la cadena TNS-less para conectar.
Atacar Oracle
Wilmer y amigos: En aquella ocasión no logré avanzar mucho, ni con la ayuda de Félix (saludos Félix), me desespere tanto que bote todo, ahora que amablemente ofreces tu apoyo, es que quiero aprovecharlo. Tambien cambie de PC por lo que aún no tengo instalado Oracle. Saludos y gracias
Atacar Oracle
Ok, Para los foristas, aca paso el link para descargar Oracle 10g (Express Edition).Pider que acepten el acuerdo de licencia y se debe crear una cuenta para descargar. <!-- m --><a class="postlink" href="http://www.oracle.com/technetwork/database/express-edition/downloads/index.html?ssSourceSiteId=ocomen">http://www.oracle.com/technetwork/datab ... eId=ocomen</a><!-- m --> Cuando instalas Oracle, el pide la creacion de tu Base de Datos a traves del DBCA. El SID es el mismo nombre de la Base de Datos. El usuario administrador de Oracle es System y su clave es manager. Todos estos valores son creados al momento de instalar una nueva Base de Datos. Cualquier duda dejenmela saber
Atacar Oracle
que tal Armando, ahi va algo por si es de utilidad <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=11058">viewtopic.php?f=3&t=11058</a><!-- l --> salu2 pak.o
Atacar Oracle
Paco: Muchas gracias, todo sirve !. Saludos
Atacar Oracle
Armando, Aca te dejo la sintaxis para la creacion de una Base de Datos, ajustalo en tu codigo FWH como un CmdSql (La version es Oracle 10g XE). Para este ejemplo se creara una BD en el directorio donde fue instalado Oracle 10g, pudiendo ser creada en cualquier otro directorio o unidad de disco: //--------------------------------------------- CREATE DATABASE tubasededatos LOGFILE GROUP 1 ('C:\oracle\product\10.2.0\oradata\redo1.log') SIZE 10M, GROUP 2 ('C:\oracle\product\10.2.0\oradata\redo2.log') SIZE 10M, GROUP 3 ('C:\oracle\product\10.2.0\oradata\redo3.log') SIZE 10M CHARACTER SET WE8ISO8859P1 NATIONAL CHARACTER SET utf8 DATAFILE 'C:\oracle\product\10.2.0\oradata\system.dbf' SIZE 50M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SYSAUX DATAFILE 'C:\oracle\product\10.2.0\oradata\sysaux.dbf' SIZE 10M AUTOEXTEND on NEXT 10M MAXSIZE UNLIMITED UNDO TABLESPACE UNDO DATAFILE 'C:\oracle\product\10.2.0\oradata\undo.dbf' SIZE 10M AUTOEXTEND ON DEFAULT TEMPORARY TABLESPACE temp TEMPFILE 'C:\oracle\product\10.2.0\oradata\temp.dbf' SIZE 10M AUTOEXTEND ON; De esta forma estaras creando una nueva Base de Datos de 50 MB con valores estandares de Oracle. Saludos,
Atacar Oracle
Hola Armando y demás amigos del foro, creo que esto puede ser de utilidad: [url:2two3wwz]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=21517&p=114473&hilit=Oracle#p114473[/url:2two3wwz] Creo sería interesante como punto de partida OCILIB como se comenta en el enlace anterior. [url:2two3wwz]http&#58;//orclib&#46;sourceforge&#46;net/[/url:2two3wwz] Daniel, avanzaste algo con esta librería en TDolphin ? Muchas gracias. Saludos, Félix
Atacar Oracle
Hola [quote="Baxajaun":3xymw54d]Daniel, avanzaste algo con esta librería en TDolphin ?[/quote:3xymw54d] No, apenas empiezo a ver el tema, ahora estoy de vacaciones con la familia pero temgo lectura entretenida durante el viaje, al llegar vere que puedo avanzar en la practica
Atacar Oracle
Daniel, disfruta de tu familia en vacaciones. Saludos, Felix
Ataque masivo de ransomware
Buenas tardes, por favor, cuidado con la versión del ransomware WannaCry [url:2huhhn06]https&#58;//www&#46;ccn-cert&#46;cni&#46;es/seguridad-al-dia/comunicados-ccn-cert/4464-ataque-masivo-de-ransomware-que-afecta-a-un-elevado-numero-de-organizaciones-espanolas&#46;html[/url:2huhhn06] Saludos
Ataque masivo de ransomware
Impagable Chema Alonso: "Eso pasa fuera de mi área, solo afecta a operaciones, nosotros estamos bien" "¿Como te defiendes del Ransomware? ¡Me compras Latch para Windows! Así está seguro y nadie te puede atacar. Bueno, nosotros no lo usamos en Telefónica.... por eso el lío.... Pero de verdad, es muy bueno! Compra Latch!" <!-- m --><a class="postlink" href="http://www.ticbeat.com/tecnologias/la-solucion-de-chema-alonso-telefonica-para-protegerte-del-ransomware-en-windows/">http://www.ticbeat.com/tecnologias/la-s ... n-windows/</a><!-- m --> <!-- m --><a class="postlink" href="https://www.elevenpaths.com/es/labstools/antiransomware-2/index.html">https://www.elevenpaths.com/es/labstool ... index.html</a><!-- m --> Como diría José Mota: ¿Te has dado cuenta tu también?
Ataque masivo de ransomware
El tio es una máster, sí un máster quitándose muertos de encima. Ya se ve que la asunción de responsabilidades no está en el portfolio de todo buen hacker. El pack sólo incluye gorro, greñas y balones fueeeeera. Sí señor, con un par de... balones fueeeera. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Aquí le pasamos un enlace a Chema explicándole lo que tenía que haber hecho: [url:3p29z92h]http&#58;//www&#46;tecnoversia&#46;com/120110/asi-se-paro-ataque-del-ransomware-wannacrypt/[/url:3p29z92h]
Ataque masivo de ransomware
Y el tema no para Hoy ha habido otro parece ser peor <!-- m --><a class="postlink" href="http://internacional.elpais.com/internacional/2017/06/27/actualidad/1498568187_011218.html">http://internacional.elpais.com/interna ... 11218.html</a><!-- m -->
Ataque masivo de ransomware
Cristobal, una manera de pararlo: [url:23iq7xa5]https&#58;//www&#46;bleepingcomputer&#46;com/news/security/vaccine-not-killswitch-found-for-petya-notpetya-ransomware-outbreak/[/url:23iq7xa5] Un abrazo
Ataque masivo de ransomware
Gracias Félix Estás seguro de que esa es una posible solución?
Ataque masivo de ransomware
Buenos días Cristobal, es lo que los expertos han encontrado, además de actualizar todos los parches de Windows y el no abrir mensajes de correo sospechosos y demás medidas. Un abrazo,
Ataque masivo de ransomware
Yo uso este. [url:1q686rw6]https&#58;//www&#46;iobit&#46;com/en/malware-fighter&#46;php[/url:1q686rw6] Excelente. free ó de pago, és mui bueno. Saludos.
Atascado con TTreeview
Hola, No termino de hacer funcionar este control. Estoy creándolo desde workshop, el cual no me permite insertar los estilos TVS_HASBUTTONS , TVS_HASLINES , TVS_LINESATROOT , TVS_SHOWSELALWAYS, etc Pero bueno, en teoría el Redefine() de la clase ya lo añade. El problema es que no me salen las "Líneas punteadas con el + y - que une los items e indican si tienen subitems o no. ¿Alguien sabe como se activa esta propiedad? Esto es un pantallazo de como se ve sin líneas: [img:1aezotx7]https&#58;//dl&#46;dropboxusercontent&#46;com/u/8604183/FWHforos/TTreeview_sin_Rayas&#46;png[/img:1aezotx7]
Atascado con TTreeview
He hecho el mismo ttreeview pero en vez desde recursos desde código fuente, poniendo sólo esta línea: [b:rkh3hg9k]TTreeView():New( 0, 0, oDlgarbol, CLR_BLACK,CLR_WHITE, , , 200, 200)[/b:rkh3hg9k] Y este es el resultado: [img:rkh3hg9k]https&#58;//dl&#46;dropboxusercontent&#46;com/u/8604183/FWHforos/MsgBar_Negra_Sin_Recursos&#46;png[/img:rkh3hg9k] ¿ Cual es el problema con el redefine de la clase ?
Atascado con TTreeview
Joaquin, Modifica a mano el fichero RC como te indica Cristobal y debe funcionarte bien
Atascado con TTreeview
Hola Antonio, Eso sabía hacerlo, y voy a intentar pasarlo todo a Resedit, la pregunta era: ¿Por qué el redefine de la clase no le cambia el estilo aunque está la asignación en el código del método redefine? METHOD ReDefine( nId, oWnd, nClrFore, nClrBack, lDesign, cMsg, bChange ) CLASS TTreeView    DEFAULT oWnd     := GetWndDefault(),;            nClrFore := oWnd:nClrText,;            nClrBack := oWnd:nClrPane,; // GetSysColor( COLOR_WINDOW ),;            lDesign  := .f.    ::nId      = nId    ::oWnd     = oWnd    ::aItems   = {}    ::nClrText = nClrFore    ::nClrPane = nClrBack    ::bChanged = bChange    [b:jo9g4kba]::Register( nOR( CS_VREDRAW, CS_HREDRAW, TVS_HASBUTTONS, TVS_HASLINES, TVS_LINESATROOT ) )[/b:jo9g4kba]    oWnd:DefControl( Self ) return Self
Atascado con TTreeview
Joaquín, Pues no lo sé, debería hacerlo pero por lo que se ve no lo hace <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Atascado con TTreeview
Joaquin, Como lo has definido en los recursos ?
Atascado con TTreeview
Antonio, En Workshop como un custom control. [img:pzw01rux]https&#58;//dl&#46;dropboxusercontent&#46;com/u/8604183/FWHforos/TTreeview_workshop&#46;png[/img:pzw01rux]
Atascado con TTreeview
Joaquin, Copia aqui la línea completa de ese control en el RC, gracias
Atascado con TTreeview
Así lo crea el WORKSHOP: CONTROL "", 101, "SysTreeView32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 13, 112, 192, 89
Atascado con TTreeview
Has probado asi? [quote:3nu6jupm] CONTROL "", 201, "SysTreeView32", WS_BORDER | TVS_HASBUTTONS|TVS_HASLINES|TVS_LINESATROOT|TVS_NOTOOLTIPS, 5, 5, 262, 227 [/quote:3nu6jupm]
Atascado con TTreeview
Hola Cristobal, En teoría no hace falta, pues en el método redefine, ya se encarga FWH de añadirle esos estilos. Pero aún así, no puedo usar esa definición como me indicas, porque WorkShop me da error, es decir, esas constantes no las reconoce y nosé como hacer que las reconozca y así probar. De todas formas el cambio de estilo en el redefine de la clase es lo que debería funcionar y no acierto a saber por qué.
Atascado con TTreeview
Y PellesC o ResEdit? Te lo digo porque en EasyReport se está usando un TreeView a través de Recursos y aparentemente lo pinta bien [url=http&#58;//postimage&#46;org/:37ifvkqa][img:37ifvkqa]http&#58;//s26&#46;postimg&#46;org/45csr1wyh/Title71&#46;png[/img:37ifvkqa][/url:37ifvkqa]
Atascado con TTreeview
Gracias cristobal, Pero ahora mismo necesito que funcione con workshop, no tengo tiempo para cambiar todos los recursos. Más adelante, con un poco más de tiempo.
Atom SDK Now Available from Intel and a Developer Challenge
<!-- m --><a class="postlink" href="http://www.linux.com/news/software/developer/200237-atom-sdk-now-available-from-intel-and-a-developer-challenge">http://www.linux.com/news/software/deve ... -challenge</a><!-- m -->
Atrapando los errores generados por HB_CompileFromBuf()
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35452#p211158">viewtopic.php?f=3&t=35452#p211158</a><!-- l -->
Atrapando los errores generados por HB_CompileFromBuf()
Extraordinario Maestro!!
Atributos de directorios
Hola foreros. Perdonad mi ignorancia, pero, recientemente, manejando directorios me he encontrado (en Windows 7) con directorios que tienen atributos curiosos. Conocía los atributos 'H', 'S' y 'D', pero cuales son los 'L' y 'X'. Creo que 'L' significa LINK, es decir acceso directo a otro directorio, en cuyo caso, ¿como puedo saber a que directorio apunta? Y la 'X', esa si es verdad que no sé que significa, ni para qué se utiliza. Gracias de antemano. Saludos.
Att Silvio Falconi.......FSDI
Buenas Silvio.... I was seeing this his/her Dialog, and I repaired, that the bottom of the dialog where this the vtaskbar, this with color. How póssivel is to color Fund of the dialog, where does he/she meet Vtaskbar? <!-- m --><a class="postlink" href="http://img409.imageshack.us/my.php?image=wbrowsese8.jpg">http://img409.imageshack.us/my.php?image=wbrowsese8.jpg</a><!-- m --> Gracias @braços Ale
Att Silvio Falconi.......FSDI
Hola Ale Si te refieres al color que tiene de fondo la vTaskBar : REDEFINE VMENU oVMCatEmps ID 101 OF oDlg ; BORDER ; [color=red:2wmbg234]COLOR 0, RGB(220,250,110) ;[/color:2wmbg234] COLORBORDE RGB( 54, 54, 54 ) HEIGHT ITEM 32 ; COLORSELECT 0, RGB(255,255,220), RGB(238,152, 21) ; COLOROVER 0, RGB(238,152, 21), RGB(255,255,220) ; SOLID FILLED Con eso puedes establecer el color que gustes. Saludos
Att Silvio Falconi.......FSDI
Gracias Raymundo...mas, no seria color na Tkasbar............ e sí........color em dialog.....mas, no nela toda....yo queria por cor só onde estas a taskbar. Saludos
Attach Files using MailTo:
Hi Is possible to attach files using MailTo: I can´t use SMTP because the Intranet uses a exchange server Regards Pedro
Attach Files using MailTo:
Pedro, If you refer to use Windows "mailto:" command it's not possible. Regards, Maurilio
Attach Files using MailTo:
[code:2dyforn6] LOCAL cTexto&#58;= "txt &#46;&#46;&#46;&#46;",; eSubject&#58;="?Subject="+ cTexto,; eBody&#58;="&body=" + cTexto ,; eTo&#58;="mailto&#58;bmaimo@piema&#46;info",; eAttachment&#58;="&attach=\My Documents\file&#46;txt",; CmdLine &#58;= eTo+eSubject+ebody+eAttachment Shellexecute&#40;ownd&#58;hWnd,"open",cMdLine &#41; [/code:2dyforn6]
Attach Files using MailTo:
Biel, I think mailto: have not 'Attach' parameter <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> <!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/predefined/mailto.asp">http://msdn.microsoft.com/library/defau ... mailto.asp</a><!-- m --> <!-- m --><a class="postlink" href="http://www.ianr.unl.edu/internet/mailto.html">http://www.ianr.unl.edu/internet/mailto.html</a><!-- m --> Regards Maurilio
Attach Files using MailTo:
You are right Maurilio, maybe in the past, but today &Attach is not running. I have an old VB code using &Attach, but after testing today I can see it's not running. [code:147o28lu]&#46;&#46;&#46; sAddedText = sAddedText & "&Attach=" & Chr&#40;34&#41; & txtAttachmentFileLocation & Chr&#40;34&#41; Call ShellExecute&#40;Me&#46;hWnd, "open", sText, vbNullString, vbNullString, SW_SHOWNORMAL&#41; [/code:147o28lu]
Attach Files using MailTo:
Amiguinho Esta solução para envio de email é bem aplicada para o teu caso. Os programas são muito pequenos e tem funcionamento muito simples. [b:3bk0f4ya]GetMail[/b:3bk0f4ya] Baixa as mensagens uma a uma em arquivos TeXTo e desta forma bastaria analisar o código e interpretar a mensagem podendo ser apresentado dentro de campos memo. Cliquem neste [url=http&#58;//www&#46;interlog&#46;com/~tcharron/getmail&#46;html:3bk0f4ya]link[/url:3bk0f4ya] e baixem-no. A sintaxe é apresentada somente digitando no prompt do DOS a palavra GETMAIL Vejam: GETMAIL -u <!-- e --><a href="mailto:usuario@provedor.com.br">usuario@provedor.com.br</a><!-- e --> -pw senha -s pop3.provedor.com.br [b:3bk0f4ya]Blat[/b:3bk0f4ya] Talvez o mais conhecido de todos possui caracteristicas de suportar anexos e agora pode autenticar as mensagens. Peguem neste [url=http&#58;//www&#46;blat&#46;net/:3bk0f4ya]link[/url:3bk0f4ya]. Sintaxe: BLAT -body "Corpo da mensagem" -server smtp.ig.com.br -to <!-- e --><a href="mailto:toledo@pctoledo.com.br">toledo@pctoledo.com.br</a><!-- e --> -f <!-- e --><a href="mailto:jscrocha@terra.com.br">jscrocha@terra.com.br</a><!-- e --> -subject "Assunto" -u jscrocha -pw senha -attach c:\teste.txt [b:3bk0f4ya]SendMail[/b:3bk0f4ya] Achei o mesmo muito bom e esta contido em um executavel de 32k. Contem os recursos de anexos e autenticação. Peguem neste [url=http&#58;//www&#46;petri&#46;co&#46;il/sendmail&#46;htm:3bk0f4ya]link[/url:3bk0f4ya]. Sintaxe: SendMail /smtpserver smtp.itelefonica.com.br /from <!-- e --><a href="mailto:jscrocha@terra.com.br">jscrocha@terra.com.br</a><!-- e --> /subject Teste com sendmail /body Corpo da mensagem /smtpport 25 /attachment c:\teste.txt /user irochinha /password senha Os comandos devem estar em somente uma linha. [b:3bk0f4ya]mapisend[/b:3bk0f4ya] mapisend -u "<profile>" -p <anything> -r <recipient> -s "<subject>" -t <text file containing the message> e.g. mapisend -u "john savill" -p anything -r <!-- e --><a href="mailto:john@savilltech.com">john@savilltech.com</a><!-- e --> -s "Test message" -t c:\message\mail4.txt -u Nome de quem envia -p Senha da conta de email -i Pede senha e usuario em prompt -r Email Recipiente(de quem vai receber a memsagem) -c Email de copia -s Assunto -m Conteudo do email -t Texto externo anexo ao corpo da mensagem -f Arquivo anexo externo -v Gera resumo sobre a operação Baixe deste [url=http&#58;//www&#46;dynawell&#46;com/support/Reskit/download/ex2kmapisend&#46;asp:3bk0f4ya]link[/url:3bk0f4ya]. Cortesia de Dudu_xBase. Com o codigo exemplo exemplificado mais a frente será fácil implementar este utilitario ao codigo e usar em seus aplicativos. Pensando em utiliza-los em meus sistemas preparei um teste através de um pequeno aplicativo em Fivewin que pode ser entendido e re-escrito em Clipper DOS. Codigo completo: [code:3bk0f4ya] // Testing FiveWin new Internet Outgoing mail &#40;SMTP protocol&#41; Class #include "FiveWin&#46;ch" static oWnd //----------------------------------------------------------------------------// function eudora&#40;&#41; local oBar DEFINE WINDOW oWnd TITLE "Gerenciador de E-Mail" DEFINE BUTTONBAR oBar _3D OF oWnd DEFINE BUTTON OF oBar ; ACTION Blat&#40; "Este e o corpo da mensagem",; "smtp&#46;itelefonica&#46;com&#46;br",; "jscrocha@terra&#46;com&#46;br",; "irochinha@itelefonica&#46;com&#46;br",; "Greetings from Joe!",; "Usuario",; "Senha",; "c&#58;\drvgames&#46;txt" &#41; TOOLTIP "Enviar Mail" DEFINE BUTTON OF oBar ; ACTION GetMail&#40; "usuario",; "Senha",; "pop&#46;sao&#46;terra&#46;com&#46;br" &#41; TOOLTIP "Receber Mail" DEFINE BUTTON OF oBar ; ACTION SendMail&#40; "smtp&#46;itelefonica&#46;com&#46;br",; "jscrocha@terra&#46;com&#46;br",; "irochinha@itelefonica&#46;com&#46;br",; "SendMail teste" ,; "Este foi um teste com SendMail" ,; 25 ,; "c&#58;\drvgames&#46;txt" ,; "usuario" ,; "Senha" &#41; SET MESSAGE OF oWnd TO "SoftClever" NOINSET DATE TIME KEYBOARD ACTIVATE WINDOW oWnd return nil //----------------------------------------------------------------------------// function blat&#40; cbody ,; cserver ,; cto ,; cf ,; csubject ,; cu ,; cpw ,; cattach &#41; BlatCMD &#58;= &#91; -body "&#93; + alltrim&#40;cbody&#41; + &#91;"&#93; + ; &#91; -server &#93; + alltrim&#40;cserver&#41; + ; &#91; -to &#93; + alltrim&#40;cto&#41; + ; &#91; -f &#93; + alltrim&#40;cf&#41; + ; &#91; -subject "&#93; + alltrim&#40;csubject&#41; + &#91;"&#93; + ; &#91; -u &#93; + alltrim&#40;cu&#41; + ; &#91; -pw &#93; + alltrim&#40;cpw&#41; + ; &#91; -attach &#93; + alltrim&#40;cattach&#41; cMacro="BLAT&#46;EXE" + BlatCMD memowrit&#40; "put&#46;bat", cMacro &#41; ? cMacro MsgRun&#40; "Enviando a "+LOWER&#40;cServer&#41;+"&#46;&#46;&#46;" &#41; WinExec&#40; "put&#46;bat", 7 &#41; RETURN &#46;T&#46; function GetMail&#40; cuser ,; cpass ,; cserver &#41; GetMCMD &#58;= " -u " + alltrim&#40;cuser&#41; + ; " -pw " + alltrim&#40;cpass&#41; + ; " -s " + alltrim&#40;cserver&#41; cMacro="GETMAIL&#46;EXE" + GetMCMD memowrit&#40; "get&#46;bat", cMacro &#41; ? cMacro MsgRun&#40; "Recebendo de "+LOWER&#40;cServer&#41;+"&#46;&#46;&#46;" &#41; WinExec&#40; "get&#46;bat", 7 &#41; RETURN &#46;T&#46; function SendMail&#40; cSmtpServer ,; cTo ,; cFrom ,; cSubject ,; cBody ,; nSmtpPort ,; cAttachment ,; cUser ,; cPassword &#41; SendMail &#58;= " /smtpserver " + alltrim&#40;cSmtpServer&#41; +; " /to " + alltrim&#40;cTo&#41; +; " /from " + alltrim&#40;cFrom&#41; +; " /subject " + alltrim&#40;cSubject&#41; +; " /body " + alltrim&#40;cBody&#41; +; " /smtpport " + str&#40;nSmtpPort&#41; +; " /attachment " + alltrim&#40;cAttachment&#41; +; " /user " + alltrim&#40;cUser&#41; +; " /password " + alltrim&#40;cPassword&#41; cMacro="SENDMAIL " + SendMail memowrit&#40; cMacro &#41; ? cMacro memowrit&#40;"sendmail&#46;bat",cMacro&#41; MsgRun&#40; "Conectando a "+LOWER&#40;cSmtpServer&#41;+"&#46;&#46;&#46;" &#41; WinExec&#40; cMacro, 7 &#41; RETURN &#46;T&#46; [/code:3bk0f4ya] A linha [b:3bk0f4ya]? cMacro[/b:3bk0f4ya] apenas apresenta o conteudo da linha de comando não tendo efeito nenhum no processamento. @braços :?)
Attaching document or image to a record
What is the best way to attach a document or image to a database record. The actual document or image will be located in a folder, I would like to have an easy interface so user can double click on document or image, then the document or image filename will be stored to database field. Thank you in advance for your assistance.Sincerely,
Attaching document or image to a record
Hello,There is a nice sample TESTBMP.prgThere you can scroll from one BMP to the next.You can add a save-button or choose leftdblclick on the imageto save the image-name to a dbf-field.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Attaching document or image to a record
Hi Uwe,That looks good, however I will need to handle PDF, TIF, JPG, BMP, XLS, Word, TXT and other formats. I would like to be able to select a file from a folder, then once the user selects the filename, a preview screen would show the actual document or image.
Attaching document or image to a record
Hello,I understand :You want to handle Images / dokuments in both directions :Store from image / document to DBF and show the image / dokument from filename stored in a dbf-field ?For images you have to add FREEIMAGE.dll to the working-directory.With the DLL you can show the different image-formats.Exel you can show from inside xBrowse.Inside a folder-area, as far as i know, you can only show images and normal text.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Attaching document or image to a record
Uwe,Thank you, where can I get freeimage.dll? Also, is there a place where I can see an example of this DLL?Thank You,
Attaching document or image to a record
[quote="cdmmaui":38qvj9wr]Uwe, Thank you, where can I get freeimage.dll? Also, is there a place where I can see an example of this DLL? Thank You,[/quote:38qvj9wr]Hi cdmmaui,check it below:[url:38qvj9wr]http&#58;//freeimage&#46;sourceforge&#46;net/[/url:38qvj9wr]Regards,Richard
Attention to Horizon (Hakan Önemli)
Hi Hakan, can you please send me your private email address. I want to contact with you. <!-- e --><a href="mailto:birol.betoncu@gmail.com">birol.betoncu@gmail.com</a><!-- e -->
Attivazione stili XP
Salve, piu' di qualche cliente mi dice ' ma il tuo software ha una vecchia interfaccia Win95'..... Vi chiedo: e' possibile attivare gli stili XP per i Button,Menu,Window ecc... senza grossisime modifiche ? Grazie
Attivazione stili XP
Il modo più semplice è quello di prendere il manifest file, rinominarlo come il tuo EXE + .manifest e copiarlo nella stessa cartella del tuo EXE. EMG
Attivazione stili XP
Grande!! Ma quale file prendere estattamente, poiche' nel mio pc ce ne sono tantissimi (.manifest) io ho preso un 'XPTheme.manifest' andra' bene questo o c'e' ne e' uno in particolare ? Piscicelli/Zingoni
Attivazione stili XP
Che io sappia uno vale l'altro. EMG
Attivazione stili XP
Tieni presente che se il tuo EXE si chiama PIPPO.EXE allora il manifest file si deve chiamare PIPPO.EXE.manifest EMG
Attivazione stili XP
Ok ! Sai dove posso trovare maggiori informazioni su tale argomento? Grazie
Attivazione stili XP
Sicuramente sulla MSDN ma non ti so dire esattamente dove. EMG
Attivazione stili XP
Grazie Mille
Attivazione stili XP
Ho notato che su un pc del cliente tane .manifest non funziona! Sara' mica perche ' ha XP Sp1 invece che Sp2 ? Sapete niente se per funzionare ha bisogno del sp2? Grazie
Attivazione stili XP
No, funziona su tutti gli XP. Però è possibile disabilitare gli stili. Controlla che siano abilitati. Prova ad aprire, ad esempio, le proprietà del desktop e guarda se lì gli stili si vedono. EMG
Attivazione stili XP
HO CAPITO ORA! GRAZIE