topic
stringlengths
1
63
text
stringlengths
1
577k
tFolderex and tGroup control
Hi, anybody knows how to solve this issue? thank you Roberto Chiaiese
tFolderex and tGroup control
[code=fw:1goosq5x]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"UNDER CONSTRUCTION"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">080</span>, <span style="color: #000000;">10</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">248</span> LABEL <span style="color: #ff0000;">"UNDER"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; TRANSPARENT<br />&nbsp;</div>[/code:1goosq5x] Regards, saludos.
tFolderex and tGroup control
Hi Karinha, the problem is still there. Only the position changes but the tGroup control appears as a five-cells grid and the "under" caption repeated 5 times. (I don't know how to upload an image here) Just removing the 'animate speed 50' clause makes it working good regards Roberto
tFolderex and tGroup control
[quote:2rom3crm]Just removing the 'animate speed 50' clause makes it working good [/quote:2rom3crm] Thanks
tFolderex and tGroup control
.OR. you have to set the tGroup control transparent off and set the right back color, this works for me: [code=fw:2oe7xwvh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCtrl := TGroup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">30</span>,<span style="color: #ff0000;">"tGroup class()"</span>,oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>,,CLR_WHITE,.f.,,,.f.<span style="color: #000000;">&#41;</span>    <span style="color: #B900B9;">// this line added: tGroup control</span><br /> </div>[/code:2oe7xwvh] regards Roberto
tFolderex and tGroup control
I'm sorry, but I can't understand what you mean. Show me the program below, please. Lo siento, pero no puedo entender lo que quieres decir. Muéstrame el programa a continuación, por favor. [code=fw:22oq2z5g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TESTFX1.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"gif.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, i, oBrw, oBrush2, oCtrl, oGroup<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFld, oFld1, aList<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aMonths := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"January"</span>, <span style="color: #ff0000;">"February"</span>, <span style="color: #ff0000;">"March"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"April"</span>, <span style="color: #ff0000;">"May"</span>, <span style="color: #ff0000;">"June"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"July"</span>, <span style="color: #ff0000;">"August"</span>, <span style="color: #ff0000;">"September"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"October"</span>, <span style="color: #ff0000;">"November"</span>, <span style="color: #ff0000;">"December"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aBitmaps := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\f</span>acebook.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\w</span>indows.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\g</span>ame.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\v</span>iddler.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\m</span>ail.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\c</span>all.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\s</span>ettings2.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit.bmp"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\m</span>etal.bmp"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TFolderex - Testing -"</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ADJUST</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> &nbsp;<span style="color: #ff0000;">"&Social1"</span>, <span style="color: #ff0000;">"&OS2"</span>, <span style="color: #ff0000;">"&Games3"</span>, <span style="color: #ff0000;">"&Movies4"</span>, <span style="color: #ff0000;">"&Email5"</span>, <span style="color: #ff0000;">"Mo&nths6"</span>, <span style="color: #ff0000;">"Se&tting7"</span>, <span style="color: #ff0000;">"E&xit"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BITMAPS</span> aBitmaps;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == <span style="color: #000000;">8</span>, oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Action defined to "</span> + StrTran<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> nOption <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"&"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> TAB PaintTab<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">POPUP</span> MenuTabs<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == <span style="color: #000000;">8</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Do you want exit??"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> nOldOption <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #0000ff;">TEXT</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == ::<span style="color: #000000;">nOption</span> .and. nOption == <span style="color: #000000;">2</span>, CLR_YELLOW, CLR_BLACK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOP OPTION <span style="color: #000000;">2</span> ALIGN &nbsp;AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_RIGHT;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANIMATE SPEED <span style="color: #000000;">50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oFld:<span style="color: #000000;">SetBrightBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit2.bmp"</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Social</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Facebook"</span>, <span style="color: #ff0000;">"MySpace"</span>, <span style="color: #ff0000;">"Twitter"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\F</span>acebook.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\m</span>yspace.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\T</span>witter.bmp"</span> <br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog OS</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\w</span>indows.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\a</span>pple.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\u</span>buntu.bmp"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ALIGN AL_LEFT, AL_CENTER, AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Game </span><br />&nbsp; &nbsp;aList = <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">20</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aList, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Game-"</span> + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span>+i<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Description for Game-"</span> + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span>+i<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span> hb_Random<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">999</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span> i &nbsp; <br />&nbsp; &nbsp;@ <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> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> ARRAY aList LINES<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oClient</span> = oBrw<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Game </span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, &nbsp; <span style="color: #000000;">1</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix4.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">165</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix5.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">330</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">176</span>, <span style="color: #000000;">262</span> <span style="color: #0000ff;">ADJUST</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">125</span>, <span style="color: #000000;">1</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix3.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">324</span>, <span style="color: #000000;">137</span> <span style="color: #0000ff;">ADJUST</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Mail</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Gmail"</span>, <span style="color: #ff0000;">"Outlook"</span>, <span style="color: #ff0000;">"Yahoo"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\g</span>mail.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\O</span>utlook.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\y</span>ahoo.bmp"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAB HEIGHT <span style="color: #000000;">45</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Months</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Suport Arrays and list</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> aMonths ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAB HEIGHT <span style="color: #000000;">18</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> TAB ChangeClr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #0000ff;">TEXT</span> ChangeTxtClr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Setting &nbsp; &nbsp; &nbsp; &nbsp; </span><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetBrush</span><span style="color: #000000;">&#40;</span> oBrush2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> <span style="color: #B900B9;">/*;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PROMPT aMonths ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAB HEIGHT 18 ROUND 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ON PAINT TAB ChangeClr( Self, nOption );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ON PAINT TEXT ChangeTxtClr( Self, nOption )*/</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oCtrl := TGroup():New(2,2,5,30,"tGroup class()",oFld:aDialogs[ 7 ],,CLR_WHITE,.f.,,,.f.) &nbsp; &nbsp;// this line added: tGroup control</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">040</span>, <span style="color: #000000;">10</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">248</span> LABEL <span style="color: #ff0000;">"tGroup class()"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">05</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"UNDER CONSTRUCTION"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> TRANSPARENT<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oFld:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PaintTab<span style="color: #000000;">&#40;</span> o, nOption <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hBrush, hBmp, nLastRow<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nOption == o:<span style="color: #000000;">nOption</span> .and. nOption == <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; hBmp = ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\m</span>etal.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBrush = CreatePatternBrush<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nLastRow = o:<span style="color: #000000;">aPos</span><span style="color: #000000;">&#91;</span> o:<span style="color: #000000;">aLines</span><span style="color: #000000;">&#91;</span> o:<span style="color: #000000;">aOrder</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + o:<span style="color: #000000;">nFolderHeight</span><br />&nbsp; &nbsp; &nbsp; SetBrushOrgEx<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, nLastRow + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> hBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span> &nbsp; <br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> o:<span style="color: #000000;">SetFldColors</span><span style="color: #000000;">&#40;</span> o, nOption <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> ChangeClr<span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMonth := Month<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad1 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad2 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad3 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGradMonth := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">207</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">207</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">85</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">47</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hBrush, aGrad <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> n == nMonth<br />&nbsp; &nbsp; &nbsp; aGrad = aGradMonth<br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> n > <span style="color: #000000;">0</span> .AND. n < <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad1 <br />&nbsp; &nbsp; &nbsp; ELSEIF n > <span style="color: #000000;">4</span> .AND. n < <span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad2 <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad3<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;o:<span style="color: #000000;">aGradUnSel</span> = aGrad<br />&nbsp; &nbsp;hBrush = o:<span style="color: #000000;">SetFldColors</span><span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">RETURN</span> hBrush <br /><br /><span style="color: #00C800;">FUNCTION</span> ChangeTxtClr<span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMonth := Month<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nClr := CLR_BLACK, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClr1 := CLR_HRED<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> n > <span style="color: #000000;">0</span> .AND. n < <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; nClr = nClr1 <br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">RETURN</span> nClr<br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MenuTabs<span style="color: #000000;">&#40;</span> oFld, nOpt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> oFld:<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; MenuAddItem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Show"</span>, , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">aVisible</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFld:<span style="color: #000000;">aVisible</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">HideTab</span><span style="color: #000000;">&#40;</span> nOpt <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">ShowTab</span><span style="color: #000000;">&#40;</span> nOpt <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 />&nbsp; &nbsp; &nbsp; MenuAddItem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Enabled"</span>, , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">aEnable</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFld:<span style="color: #000000;">aEnable</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">DisableTab</span><span style="color: #000000;">&#40;</span> nOpt <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">EnableTab</span><span style="color: #000000;">&#40;</span> nOpt <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 />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> oMenu<br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:22oq2z5g] Regards, saludos.
tFolderex and tGroup control
please completely remove the tFolderex at line 97 and see the result Roberto
tFolderex and tGroup control
[code=fw:3196lt9d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TESTFX1.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"gif.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, i, oBrw, oBrush2, oCtrl, oGroup<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFld, oFld1, aList<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aMonths := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"January"</span>, <span style="color: #ff0000;">"February"</span>, <span style="color: #ff0000;">"March"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"April"</span>, <span style="color: #ff0000;">"May"</span>, <span style="color: #ff0000;">"June"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"July"</span>, <span style="color: #ff0000;">"August"</span>, <span style="color: #ff0000;">"September"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"October"</span>, <span style="color: #ff0000;">"November"</span>, <span style="color: #ff0000;">"December"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aBitmaps := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\f</span>acebook.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\w</span>indows.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\g</span>ame.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\v</span>iddler.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\m</span>ail.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\c</span>all.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\s</span>ettings2.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit.bmp"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\m</span>etal.bmp"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TFolderex - Testing -"</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ADJUST</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> &nbsp;<span style="color: #ff0000;">"&Social1"</span>, <span style="color: #ff0000;">"&OS2"</span>, <span style="color: #ff0000;">"&Games3"</span>, <span style="color: #ff0000;">"&Movies4"</span>, <span style="color: #ff0000;">"&Email5"</span>, <span style="color: #ff0000;">"Mo&nths6"</span>, <span style="color: #ff0000;">"Se&tting7"</span>, <span style="color: #ff0000;">"E&xit"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BITMAPS</span> aBitmaps;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == <span style="color: #000000;">8</span>, oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Action defined to "</span> + StrTran<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> nOption <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"&"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> TAB PaintTab<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">POPUP</span> MenuTabs<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == <span style="color: #000000;">8</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Do you want exit??"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> nOldOption <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #0000ff;">TEXT</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption == ::<span style="color: #000000;">nOption</span> .and. nOption == <span style="color: #000000;">2</span>, CLR_YELLOW, CLR_BLACK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOP OPTION <span style="color: #000000;">2</span> ALIGN &nbsp;AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_RIGHT;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANIMATE SPEED <span style="color: #000000;">50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oFld:<span style="color: #000000;">SetBrightBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit2.bmp"</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Social</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Facebook"</span>, <span style="color: #ff0000;">"MySpace"</span>, <span style="color: #ff0000;">"Twitter"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\F</span>acebook.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\m</span>yspace.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\T</span>witter.bmp"</span> <br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog OS</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\w</span>indows.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\a</span>pple.bmp"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\u</span>buntu.bmp"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ALIGN AL_LEFT, AL_CENTER, AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Game </span><br />&nbsp; &nbsp;aList = <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">20</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aList, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Game-"</span> + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span>+i<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Description for Game-"</span> + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span>+i<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span> hb_Random<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">999</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span> i &nbsp; <br />&nbsp; &nbsp;@ <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> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> ARRAY aList LINES<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oClient</span> = oBrw<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Game </span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, &nbsp; <span style="color: #000000;">1</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix4.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">165</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix5.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">330</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">176</span>, <span style="color: #000000;">262</span> <span style="color: #0000ff;">ADJUST</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">125</span>, <span style="color: #000000;">1</span> GIF FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\g</span>ifs<span style="color: #000000;">\m</span>atrix3.gif"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">324</span>, <span style="color: #000000;">137</span> <span style="color: #0000ff;">ADJUST</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Mail</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Gmail"</span>, <span style="color: #ff0000;">"Outlook"</span>, <span style="color: #ff0000;">"Yahoo"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\g</span>mail.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\O</span>utlook.bmp"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\y</span>ahoo.bmp"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAB HEIGHT <span style="color: #000000;">45</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Months</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Suport Arrays and list</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> FOLDEREX <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">450</span>, <span style="color: #000000;">190</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> aMonths ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAB HEIGHT <span style="color: #000000;">18</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> TAB ChangeClr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #0000ff;">TEXT</span> ChangeTxtClr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nOption <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Dialog Setting &nbsp; &nbsp; &nbsp; &nbsp; </span><br />&nbsp; &nbsp;oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetBrush</span><span style="color: #000000;">&#40;</span> oBrush2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SIN LINE 97 - funciona normal.</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oFld:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PaintTab<span style="color: #000000;">&#40;</span> o, nOption <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hBrush, hBmp, nLastRow<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nOption == o:<span style="color: #000000;">nOption</span> .and. nOption == <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; hBmp = ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\m</span>etal.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBrush = CreatePatternBrush<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nLastRow = o:<span style="color: #000000;">aPos</span><span style="color: #000000;">&#91;</span> o:<span style="color: #000000;">aLines</span><span style="color: #000000;">&#91;</span> o:<span style="color: #000000;">aOrder</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + o:<span style="color: #000000;">nFolderHeight</span><br />&nbsp; &nbsp; &nbsp; SetBrushOrgEx<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, nLastRow + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> hBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span> &nbsp; <br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> o:<span style="color: #000000;">SetFldColors</span><span style="color: #000000;">&#40;</span> o, nOption <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> ChangeClr<span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMonth := Month<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad1 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad2 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGrad3 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGradMonth := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">207</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">207</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">85</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">47</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hBrush, aGrad <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> n == nMonth<br />&nbsp; &nbsp; &nbsp; aGrad = aGradMonth<br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> n > <span style="color: #000000;">0</span> .AND. n < <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad1 <br />&nbsp; &nbsp; &nbsp; ELSEIF n > <span style="color: #000000;">4</span> .AND. n < <span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad2 <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGrad = aGrad3<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;o:<span style="color: #000000;">aGradUnSel</span> = aGrad<br />&nbsp; &nbsp;hBrush = o:<span style="color: #000000;">SetFldColors</span><span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">RETURN</span> hBrush <br /><br /><span style="color: #00C800;">FUNCTION</span> ChangeTxtClr<span style="color: #000000;">&#40;</span> o, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMonth := Month<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nClr := CLR_BLACK, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClr1 := CLR_HRED<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> n > <span style="color: #000000;">0</span> .AND. n < <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; nClr = nClr1 <br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">RETURN</span> nClr<br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MenuTabs<span style="color: #000000;">&#40;</span> oFld, nOpt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> oFld:<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; MenuAddItem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Show"</span>, , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">aVisible</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFld:<span style="color: #000000;">aVisible</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">HideTab</span><span style="color: #000000;">&#40;</span> nOpt <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">ShowTab</span><span style="color: #000000;">&#40;</span> nOpt <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 />&nbsp; &nbsp; &nbsp; MenuAddItem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Enabled"</span>, , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">aEnable</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFld:<span style="color: #000000;">aEnable</span><span style="color: #000000;">&#91;</span> nOpt <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">DisableTab</span><span style="color: #000000;">&#40;</span> nOpt <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFld:<span style="color: #000000;">EnableTab</span><span style="color: #000000;">&#40;</span> nOpt <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 />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> oMenu<br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:3196lt9d] Regards, saludos.
tFtp Question
Hi, I have written an application that downloads files from an ftp site. On my pc and a test Windows 2008 server it is working fine. On one of my clients, the system will not connect. They can access the internet and the ftp site without a problem by using internet explorer, so i was wondering if there is anything else i should check on there system which is blocking the connection to the ftp site? The way i'm connecting to the ftp site is: oInternet := TInternet():New() oFTP := TFTP():New( cFtp, oInternet, cUserName, cPassWord ) oFTP:hFTP is empty Any ideas? Thanks in advance Pete
tFtp Question
Maybe that site requires SSL? James
tGet
Hola a todos Feliz año a todos Que Dios los bendiga y quiero hacer mi primer pregunta del año, alguien me puede proporcionar la clase tget de la version fwh24 gracias. Atentamente Julio Ponce
tGet
Si Antonio da su permiso te la mando. Y Dónde?
tGet
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> gracias
tGet Númerico sin el ""0"" Inicial ( Solucionado )
[img:1x6t68md]http&#58;//img607&#46;imageshack&#46;us/img607/3140/imagen1ll&#46;png[/img:1x6t68md] Saludos Amigos, Tengo una aplicacion ya terminada y el cliente me ha pedido que en los get numericos el "[color=#FF0000:1x6t68md]0[/color:1x6t68md]" inicial no este, osea que el campo este en blanco, pero que sea númerico.
tGet Númerico sin el ""0"" Inicial ( Solucionado )
Podrias usar la VAR de tipo char y validar que lo entrado sea un valor numerico, aunque con @Z deberia de funcionarte, saludos. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
tGet Númerico sin el ""0"" Inicial ( Solucionado )
El asunto es que los gets estan asociados a una data en Mysql con tDolphin. y el "@Z" lo probe con habour y xHarbour y no funciona... y tampoco funciona en modo consola.
tGet Númerico sin el ""0"" Inicial ( Solucionado )
[code=fw:1avoou3c]<div class="fw" id="{CB}" style="font-family: monospace;">  <br /><span style="color: #00C800;">METHOD</span> DispText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGet<br /><br />  <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lPassword</span> .and. ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Type</span> == <span style="color: #ff0000;">"C"</span><br />      #ifdef __CLIPPER__<br />         SetWindowText<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, Replicate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*"</span>, Len<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">buffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      #else<br />         SetWindowText<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, Replicate<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> IsAppThemed<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">149</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"*"</span> <span style="color: #000000;">&#41;</span>,;<br />                                           Len<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">buffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      #endif<br />   ElseIf ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Type</span> == <span style="color: #ff0000;">"N"</span> .and. Val<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">buffer</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Añadir estas lineas</span><br />     SetWindowText<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span>                            <span style="color: #B900B9;">// y esta otra y muerto el pollo</span><br />   <span style="color: #00C800;">else</span><br />     SetWindowText<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cCueText</span> <span style="color: #000000;">&#41;</span>;<br />                                  .and. Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                                  .and. GetFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != ::<span style="color: #000000;">hWnd</span>,;  <span style="color: #B900B9;">// Focus is outside</span><br />                                   <span style="color: #ff0000;">""</span>, ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">buffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1avoou3c]
tGet Question
Hi, Why are comma's removed from a picture string? METHOD GotFocus( hCtlLost ) CLASS TGet ::lFocused = .t. #ifdef __XHARBOUR__ ::oGet:VarGet() #endif if ! Empty( ::cPicture ) .and. ::oGet:type == "N" [b:qrt04uk2] ::oGet:Picture := StrTran( ::cPicture, ",", "" ) [/b:qrt04uk2] endif
tGet Question
I see now that it becomes confusing when capturing. Has anybody done alterations to fill the get from the right? Alex
tGet Question
Alex, Its removed for a better capturing
tGet Question
Alex, I don't know if this is what you are looking for, but here is an old message on numeric GETs. I haven't tried it. James [quote:gd5e1i9k]From: "Luis Krause Mantilla" <[email protected]> Subject: Re: Multiple line numeric gets Date: Thursday, November 08, 2001 7:16 AM Colin Wisbey wrote: > Like many on this NG, I've been using FW for so long that I've forgotten WHY > I do certain things a certain way. > > On the basis of recommendations in the early years, I've ALWAYS been in the > habit of setting a numeric GET control in BRW as "Text" (not "Number"), > "Right", "Multiple line" (not "Single line"). Can anyone remind me why we > were advised to create numerics as "Multiple line" and if the reasoning > behind it is still relevant. i.e Is there any down side to reverting to > "Single line"? What do you guys specify for your numeric GETs? > This is the only way to make get objects handling numeric vars to align them to the right properly. What I do remember is that the height of the get has to be at lease 13 pixels or it will show nothing under Win 3.x. > > I've just got rid of CTL3D but my main dialog has a lot of numeric GETs, > each set up as "Multiple line", and their values no longer display. Their > height has always been 10 and has always been fine when using CTL3D. > Without CTL3D, they display OK if I either increase the height of each GET > control from 10 to 11, or if I change them to "Single line", but not if I > leave them as "Multiple line" and 10 height. As said above, I always create my gets with a size of 13, regardless if they are numerics or not so I don't have to wory on which OS the app may run. -- Luis Krause Mantilla lkrausem at home dot com luis_krause at hotmail dot com[/quote:gd5e1i9k]
tGet Request
For readonly we have a predefined color pattern that offends my clients ( can't read it ... to faint ) so I always have to modify the source on a new release. Could we have a data setting for the READONLY setting of tGet text so we can modify it within the code ? Thank you.
tGet Request
also I had this problem no resolved!
tGet cuando usar bChange y cuando bPpostKey
Buenas,tengo algo de lio mental. El tema es que necesito procesar una funcion cada vez que varian el contenido de un get.En una primera version lo hice usando bChange, pero dejo de funcionar con lo que pase a usar bPostKey, pero ahora veo que otra vez ha dejado de funcionarme.Me funciona para caulquier caso menos cuando borran el contenido con VK_BACK(puesto que Keychar no lo procesa).Mi duda no es como solucionarlo, puesto que ya lo he arreglado y ahora velvo a usar bChange, mi duda es cuando se debe usar bChange y cuando bPostKey y diferencia entre uno y otro( tan solo para aclara conceptos).
tGet cuando usar bChange y cuando bPpostKey
Biel,Basicamente la diferencia es que bChange se evalúa cada vez que cambia el contenido del GET, sea por la razón que sea (tecla pulsada, paste, cut, etc.) y bPostKey solo se evalua tras pulsar una tecla (contenida entre 32 y 256).
tGet cuando usar bChange y cuando bPpostKey
Ok, gracias Antonio por la aclaración. Entonces seguire usando bChange, lo del paste no lo tenia en cuenta, razon de más para usar bChange.bPostKey (A codeblock that is evaluated after a keystroke and the buffer has changed. )Pensaba que se evaluaba cuando se pulsaba cualquier tecla que repercutiera en el contennido del GET. Tema aclarado, gracias nuevamente.
tGet navigation
Hi, Shouldn't shift-tab apply the same bchange test as normal tab? Alex [code:3dk6kceb] case nKey == VK_TAB &#46;and&#46; GetKeyState&#40; VK_SHIFT &#41; if &#58;&#58;bChange != nil lAccept = Eval&#40; &#58;&#58;bChange, nKey, nFlags, Self &#41; if ValType&#40; lAccept &#41; == "L" &#46;and&#46; lAccept if Upper&#40; &#58;&#58;oWnd&#58;ClassName&#40;&#41; &#41; == "TCOMBOBOX" &#58;&#58;oWnd&#58;oWnd&#58;GoPrevCtrl&#40; &#58;&#58;hWnd &#41; else &#58;&#58;oWnd&#58;GoPrevCtrl&#40; &#58;&#58;hWnd &#41; endif endif else if Upper&#40; &#58;&#58;oWnd&#58;ClassName&#40;&#41; &#41; == "TCOMBOBOX" &#58;&#58;oWnd&#58;oWnd&#58;GoPrevCtrl&#40; &#58;&#58;hWnd &#41; else &#58;&#58;oWnd&#58;GoPrevCtrl&#40; &#58;&#58;hWnd &#41; endif endif return 0 case nKey == VK_TAB &#46;or&#46; nKey == VK_RETURN if &#58;&#58;bChange != nil &#46;and&#46; &#40; &#58;&#58;oGet&#58;Changed &#46;or&#46; &#40; &#58;&#58;oGet&#58;buffer != nil &#46;and&#46; &#58;&#58;oGet&#58;UnTransform&#40;&#41; != &#58;&#58;oGet&#58;Original &#41; &#41; lAccept = Eval&#40; &#58;&#58;bChange, nKey, nFlags, Self &#41; if ValType&#40; lAccept &#41; == "L" &#46;and&#46; lAccept &#58;&#58;oWnd&#58;GoNextCtrl&#40; &#58;&#58;hWnd &#41; endif else &#58;&#58;oWnd&#58;GoNextCtrl&#40; &#58;&#58;hWnd &#41; endif #ifndef __CLIPPER__ if nKey == VK_RETURN // Execute DEFPUSHBUTTON Action Super&#58;KeyChar&#40; nKey, nFlags &#41; endif #endif return 0 [/code:3dk6kceb]
tGet sin borde
Para Antonio Linares Es posible tener esta apariencia en un Get? (Titulo superior, solo borde inferior) [img:3o5u0iye]http&#58;//sgedukit&#46;com/files/get&#46;png[/img:3o5u0iye] Esta presentación es mas clara y facil de leer. Saludos
tGet sin borde
Look this <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36283&hilit=infield#p216540">viewtopic.php?f=3&t=36283&hilit=infield#p216540</a><!-- l -->
tGet sin borde
Thanks a lot! I will check it
tGet solitario ¿Por qué no se evalúa el bValid?
Si tengo un diálogo con un único control tGet, ¿es normal que no se evalúe su bValid ?
tGet solitario ¿Por qué no se evalúa el bValid?
César,Es preciso que exista otro control que tome el foco, para que así el GET lo pierda y se ejecute el VALID
tGet solitario ¿Por qué no se evalúa el bValid?
Vale!Gracias, Antonio.Lo que quiero es cerrar un dialogo con un get cuando pulse RETURN, UP o DOWN en el get y se cumpla una condición. Solución: pongo un boton fuera del diálog y hago que se evalúe la condición del Get cuando el botón tome el foco (bGotFocus). Si ésta se cumple cierro el diálogo y si no regreso el foco al get.
tGet solitario ¿Por qué no se evalúa el bValid?
César,Asi es <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Una solución es crear un botón no visible (que sea DEFAULT) por lo que al pulsar enter, se activará el VALID del GET, y la acción del botón es cerrar el diálogo.me refiero por botón no visible a que sus coordenadas estan fuera del area visible del diálogo
tIPClientFtp
Hello, can someone help me out with the syntax for the tUrl + tIPClientFtp classes. I would like to upload to a certain directory. How can I do that. oFtp:UploadFile( cdir + cfile ) How should the string look like: "\mydir\" + "myfile.zip" is not working. I also tried with slash but it is not working. Where do I find the source code of the xharbour class. Thank you in advance Otto
tIPClientFtp
Try using Cwd() method to change the working directory. The source code is in source\tip\ftpcln.prg (SVN). Or you can download xHarbour source code from xharbour.org. EMG
tIPClientFtp
Enrico thank you. This is working fine. Best regards Otto
tIPClientHttp and https
Hi all, I need to use tIPClientHttp to connect to an https url and it doesn't runs. Is there any turnaround or updated lib ? Thank you in advance Application =========== Path and name: K:\pigc\pigc.exe (32 bits) Size: ********* bytes Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150830) FiveWin Version: FWHX 15.09 Windows version: 6.2, Build 9200 Time from start: 0 hours 0 mins 20 secs Error occurred at: 09/06/16, 11:29:03 Error description: Error BASE/1081 Operation not supported: TIPCLIENTHTTP:New() Args: [ 1] = O TIPCLIENTHTTP [ 2] = C https Stack Calls =========== Called from: source\tip\client.prg => TIPCLIENT:NEW( 0 ) Called from: source\tip\httpcln.prg => TIPCLIENTHTTP:NEW( 0 )
tIPClientHttp and https
Hi, I understand I have to link the following libs hbssl, hbssls, hbtipssl, libeay32, ssleay32, is there anyone that could provide the version for BCC70 ? They seems in coff format and the conversion doesn't runs well. k:\XHARBOUR\Bin\Harbour.Exe K:\pigc\CNDRTN\MODSPGE.PRG -m -n -es2 -ik:\XHARBOUR\Include -dHB_API_MACROS -dHB_FM_STATISTICS_OFF -dHB_STACK_MACROS -ik:\XHARBOUR\Contrib\What32\Include;k:\fwh\include -oK:\pigc\Obj\MODSPGE.c xHarbour 1.2.3 Intl. (SimpLex) (Build 20150830) Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'K:\pigc\CNDRTN\MODSPGE.PRG'... Generating C source output to 'K:\pigc\Obj\MODSPGE.c'... Done. Lines 5978, Functions/Procedures 71, pCodes 24969 k:\BCC70\Bin\Bcc32.Exe -DHB_NO_DEFAULT_API_MACROS -M -c -O2 -e -tW -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_USED -DHB_FM_STATISTICS_OFF -D__HARBOUR__ -DSQLITE_HAS_CODEC=1 -DSQLITE_THREADSAFE=0 -Ik:\BCC70\Include;k:\XHARBOUR\Include -nK:\pigc\Obj K:\pigc\Obj\MODSPGE.c Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. K:\pigc\Obj\MODSPGE.c: k:\BCC70\Bin\iLink32.Exe -Gn -aa -Tpe -s @K:\pigc\PIGC.bcl Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: 'K:\XHARBOUR\LIB\HBSSL.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
tIcon Error
Hi, We are getting the following error occaisionally on certain machines - i cannot recreate this error on my machine but it is happening at our clients installation. The error occurs when the user double clicks on a record in an xBrowse and the code tries to setfocus to the previous dialog. Application =========== Path and name: I:\winiws6\ORD_MOD.EXE (32 bits) Size: 5,264,896 bytes Operator: CARP Time from start: 0 hours 2 mins 44 secs Error occurred at: 26/08/2010, 08:52:08 Error description: Error BASE/1005 Class: 'NIL' has no property: NRESULT - Please contact P & L Args: [ 1] = U [ 2] = O TICON Stack Calls =========== Called from: => _NRESULT(0) Called from: .\source\classes\CONTROL.PRG => TICON:GOTFOCUS(986) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1483) Called from: .\source\classes\ICON.PRG => TICON:HANDLEEVENT(131) Called from: => SETFOCUS(0) Called from: .\source\classes\WINDOW.PRG => TDIALOG:SETFOCUS(2785) Called from: \6.00\Source\Common\POPUP.PRG => POP_SELECT(1955) Called from: \6.00\Source\Common\Popupx.prg => (b)GENERIC_XLIST(103) Called from: .\source\classes\WINDOW.PRG => TWINDOW:LDBLCLICK(1870) Called from: .\source\classes\CONTROL.PRG => TCONTROL:LDBLCLICK(1498) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LDBLCLICK(3458) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1483) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT(10744) Called from: .\source\classes\WINDOW.PRG => _FWH(3391) Called from: => DIALOGBOX(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: \6.00\Source\Common\Popupx.prg => GENERIC_XLIST(113) Called from: \6.00\Source\Common\POPUP.PRG => CONT_LIST(349) Called from: \6.00\Source\Ord_mod\RENTAL.PRG => RENT_CONT(4361) Called from: \6.00\Source\Ord_mod\RENTAL.PRG => (b)RENTAL_ENT(221) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(463) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(658) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1483) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1437) Called from: .\source\classes\WINDOW.PRG => _FWH(3391) Called from: => WINRUN(0) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(976) Called from: ORD_MOD.PRG => MAIN(486) I did notice in the source code in control.prg that there is a comment saying "old code pending to be oCtlFocus" so i dont know if its just a case of commenting this line out? Using FW10.06 & xHarbour Commercial June 2010 Any ideas? Best regards, Pete
tIcon Error
Pete, Please try this change in Class TControl: [code=fw:3kshqx2u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GotFocus<span style="color: #000000;">&#40;</span> hCtlLost <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TControl<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lFocused</span> &nbsp; &nbsp; &nbsp; = .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nResult</span> &nbsp; = <span style="color: #00C800;">Self</span> &nbsp;<span style="color: #B900B9;">// old code pending to be oCtlFocus</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oCtlFocus</span> = <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hCtlFocus</span> = ::<span style="color: #000000;">hWnd</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;::<span style="color: #000000;">SetMsg</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cMsg</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;...<br />&nbsp;</div>[/code:3kshqx2u]
tIcon Error
I will put the changes in and let you know if we get the error again. Thanks for looking at this Antonio Best regards, Pete
tImage con resolución >= 1280
Por alguna razón que desconozco, cuando la resolución del monitor la pongo en 1280x768 o mayor, las imágenes (con tImage) no obedecen la cláusula ADJUST, sino que ocupan toda el área visible del diálogo que las contiene, como si se tratase de un brush. En 1024x768 la imagen vuelve a verse como se espera. Sin embargo, en un monitor específico puedo ver la imagen correctamente en la resolución problemática. He probado actualizando y retrasando freeimage y gdi32.dll, pero no cambia esta pérdida de ADJUST. Hay alguien que haya pasado por esto y que haya encontrado una solución que quiera compartir? Gracias. FWH07 + XH 1.0B + BCC55
tImage: Image desde campo de DB
He visto varios posts preguntando como mostrar imagenes guardadas en campos de una base. La mayoría de las respuestas a estos post se basan en crear un archivo temporal. Con Freeimage.dll esto puede hacerse directamente, pero deben descargar una versión más nueva que la que viene empaquetada con FWH. La versión de Freeimage.dll disponible actualmente es la 3.11.0. El link de descarga es: <!-- m --><a class="postlink" href="http://freeimage.sourceforge.net/download.html">http://freeimage.sourceforge.net/download.html</a><!-- m --> Ahora la solución para evitar el archivo temporal: SINTAXIS: REDEFINE IMAGE oImg ID 10 OF oDlg oImg:LoadFromMemory(MyDB->FOTO) Lo que hay que agregar a tImage es lo siguiente: //----------------------------------------------------------------------------// METHOD LoadFromMemory(cBuffer) //CEL 08-Nov-2008 local hOldBmp := ::hBitmap local hOldPal := ::hPalette if ! Empty( hOldBmp ) PalBmpFree( hOldBmp, hOldPal ) endif ::hBitmap:=FILoadFromMemory(cBuffer) PalBmpNew( ::hWnd, ::hBitmap, ::hPalette ) return nil //----------------------------------------------------------------------------// #define CBM_INIT 4 #define DIB_RGB_COLORS 0 static Function FILoadFromMemory(cBuffer) Local hMem, nFormat, nSize:=Len(cBuffer) Local hDib, hInfoH, hInfo, hBits, hWnd, hBmp #ifdef __CLIPPER__ hLib = LoadLib32( "freeimage.dll" ) #else hLib = LoadLibrary( "freeimage.dll" ) #endif if hLib <= 32 MsgStop( "Cannot load FreeImage.dll" ) return 0 endif hMem := FI_OpenMemory(cBuffer, nSize) nFormat:= FI_GetFileTypeFromMemory(hMem, 0) hDib := FI_LoadFromMemory(nFormat, hMem, 0) hInfoH := FIGETINFOHEADER( hDib ) hInfo := FIGETINFO( hDib ) hBits := FIGETBITS( hDib ) hWnd := GETDESKTOPWINDOW() #ifdef __CLIPPER__ hDC = GETDC32( hWnd ) #else hDC = GETDC( hWnd ) #endif hBmp := CreateDiBitmap( hDC, hInfoH, CBM_INIT, hBits, hInfo, DIB_RGB_COLORS ) #ifdef __CLIPPER__ ReleaseDC32( hWnd, hDC ) #else ReleaseDC( hWnd, hDC ) #endif #ifdef __CLIPPER__ ReleaseDC32( hWnd, hDC ) #else ReleaseDC( hWnd, hDC ) #endif FI_CloseMemory(hMem) #ifdef __CLIPPER__ FreeLib32( hLib ) #else FreeLibrary( hLib ) #endif return hBmp //----------------------------------------------------------------------------// DLL32 STATIC FUNCTION FI_OpenMemory(cData AS LPSTR, nSize AS LONG) AS LONG ; PASCAL FROM "_FreeImage_OpenMemory@8" LIB hLib DLL32 STATIC FUNCTION FI_LoadFromMemory(nFormat AS LONG,nStream AS LONG,nFlags AS LONG) AS LONG ; PASCAL FROM "_FreeImage_LoadFromMemory@12" LIB hLib DLL32 STATIC FUNCTION FI_CloseMemory(nStream AS LONG) AS LONG ; PASCAL FROM "_FreeImage_CloseMemory@4" LIB hLib DLL32 STATIC FUNCTION FI_GetFileTypeFromMemory(nStream AS LONG,nSize AS LONG ) AS LONG ; PASCAL FROM "_FreeImage_GetFileTypeFromMemory@8" LIB hLib La librería viene con una excelente ayuda. Ya publiqué un uso de ella para hacer un "crop" en una imagen archivada en <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14889">viewtopic.php?f=6&t=14889</a><!-- l -->. Espero se animen a echar una ojeada a la ayuda de freeimage y a encontrar y publicar nuevos usos de ella. Un saludo César Lozada
tImage: Image desde campo de DB
Buen aporte César,gracias. Lo he implementado en mi clase que hereda de tImage y funciona perfecto. Quizas este nuevo metodo se podria unificar con el ya existente LoadFromString (tBitMap).
tImage: Image desde campo de DB
HOw I can write the image on foto field ?
tImage: Image desde campo de DB
Silvio: repla myDB->FOTO with MemoRead("myPhoto.jpg")
tImage: Image desde campo de DB
is there a limit for sa ve a jpg on dbf
tImage: Image desde campo de DB
César, Gracias por tan interesante aportación. La hemos incluido en el próximo build de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tIpClientHttp bug
Hi all, I noted a problem downloading a text file through tipclienthttp oHttp:Readall: it is a 200 rows text file and some rows contains spur characters but only on Windows XP,Vista, 7, all is right on Windows 8/10. Is there something wrong on my code or do I have to upgrade my xharbour libs ? I'm using xHarbour with FWH Sept 2015 and BCC7.0 oUrl := TURL():New( "my http url") oHttp:= TIpClientHttp():new( oUrl, .f. ) IF .NOT. oHttp:open() ? "Connection error:", oHttp:lastErrorMessage() QUIT ENDIF cHtml := oHttp:readAll() && cHtml contains spur characters oHttp:close() Thank you in advance
tIpClientHttp bug
[code=fw:3pc6n4h2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/* TIP HTTP advanced operations test */</span><br /><br />#require <span style="color: #ff0000;">"hbssl"</span><br />#require <span style="color: #ff0000;">"hbtip"</span><br /><br />#if ! defined<span style="color: #000000;">&#40;</span> __HBSCRIPT__HBSHELL <span style="color: #000000;">&#41;</span><br />REQUEST __HBEXTERN__HBSSL__<br />#endif<br /><br />PROCEDURE Main<span style="color: #000000;">&#40;</span> cURL <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">LOCAL</span> oHTTP, oURL, i<br /><br />&nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> oURL := TUrl<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cURL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Invalid URL"</span>, cURL<br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !<span style="color: #000000;">&#40;</span> oURL:<span style="color: #000000;">cProto</span> == <span style="color: #ff0000;">"http"</span> <span style="color: #000000;">&#41;</span> .AND. ;<br />&nbsp; &nbsp;!<span style="color: #000000;">&#40;</span> oURL:<span style="color: #000000;">cProto</span> == <span style="color: #ff0000;">"https"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"This is a header test for http/https."</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Use an http/https address."</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> oURL:<span style="color: #000000;">cProto</span> == <span style="color: #ff0000;">"https"</span> .AND. ! tip_SSL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Error: Requires SSL support"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oHTTP := TIPClientHTTP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oURL <span style="color: #000000;">&#41;</span><br />&nbsp;oHTTP:<span style="color: #000000;">nConnTimeout</span> := <span style="color: #000000;">20000</span><br />&nbsp;? <span style="color: #ff0000;">"Connecting with"</span>, oURL:<span style="color: #000000;">cServer</span><br />&nbsp;<span style="color: #00C800;">IF</span> oHTTP:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cURL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Connection eshtablished"</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Retrieving"</span>, oURL:<span style="color: #000000;">cPath</span>, oURL:<span style="color: #000000;">cFile</span>, oURL:<span style="color: #000000;">cQuery</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oHTTP:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> oURL:<span style="color: #000000;">cPath</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"Get Successful"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">FOR</span> EACH i IN oHTTP:<span style="color: #000000;">hHeaders</span><br />&nbsp; &nbsp; &nbsp; ? i:__enumKey<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span>, i<br />&nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"Get failure (server reply:"</span>, oHTTP:<span style="color: #000000;">cReply</span>, <span style="color: #ff0000;">")"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oHTTP:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Can't connect with"</span>, oURL:<span style="color: #000000;">cServer</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oHTTP:<span style="color: #000000;">SocketCon</span> == <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"Connection not initiated"</span><br />&nbsp; &nbsp;ELSEIF hb_inetErrorCode<span style="color: #000000;">&#40;</span> oHTTP:<span style="color: #000000;">SocketCon</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"Server replied:"</span>, oHTTP:<span style="color: #000000;">cReply</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"Error in connection:"</span>, hb_inetErrorDesc<span style="color: #000000;">&#40;</span> oHTTP:<span style="color: #000000;">SocketCon</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;? <span style="color: #ff0000;">"Done"</span><br /><br />&nbsp;<span style="color: #00C800;">RETURN</span><br /><br />&nbsp;</div>[/code:3pc6n4h2]
tIpClientHttp bug
[url:12jezjkp]https&#58;//groups&#46;google&#46;com/forum/#!topic/harbour-users/cpXUY8QokFc[/url:12jezjkp]
tMail() and RichText (RTF)
Hello Fivewinners, it is possible to send an eMail with tMail() in RichFormat (RTF from TRichEdit() ) RTF-Text as body-Text Any ideas ? Regards, Norbert
tMail() and RichText (RTF)
Norbert, >RTF-Text as body-Text Email has to be in HTML, so maybe you can find some way to do a conversion on-the-fly. One way might be using Word and OLE. James
tMail() and RichText (RTF)
[quote="James Bott":cwsuwob3]Norbert, >RTF-Text as body-Text Email has to be in HTML, so maybe you can find some way to do a conversion on-the-fly. One way might be using Word and OLE. James[/quote:cwsuwob3] James, and how do I send a html-text? if I send it over DEFINE MAIL only the html-code will displayed. Regards Norbert
tMail() and RichText (RTF)
Norbert, With MAPI and OE this is what I found. [quote:byizs0i7]If the attachment file is html (has a .htm or .html extension) and you do not specify any TEXT (a message) then the file will appear in the message area.[/quote:byizs0i7] I have not tried this with Outlook. James
tMail() and RichText (RTF)
This is for Office Outlook: [code:ws9hxr53]oMail&#58;HTMLBody = &#46;&#46;&#46;[/code:ws9hxr53] EMG
tMetro Gracias FWH
[url=https&#58;//postimg&#46;cc/LYw2nJ5B:omu3h777][img:omu3h777]https&#58;//i&#46;postimg&#46;cc/LYw2nJ5B/tmetro&#46;jpg[/img:omu3h777][/url:omu3h777]
tMetro Gracias FWH
Marabilloso. Como hicestes esto? Podrias poner un pequeño ejemplo para que yo pueda iniciar el mio? Seria mui amable de tú parte, se no fué pedir mucho. 1000 gracias my dear friend. Regards, saludos.
tMetro Gracias FWH
Amigo dir METRO*.PRG .\SAMPLES\ Cualquier ayuda me buscas en facebook <!-- m --><a class="postlink" href="https://www.facebook.com/SysCtrl/">https://www.facebook.com/SysCtrl/</a><!-- m --> SALUDOS !
tMetro Gracias FWH
Muy bien, César! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tMetro Gracias FWH
Gracias Maestro saludos ! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
tMetro Gracias FWH
Gracias César. Email recebido, ok. Regards, saludos.
tMget methhod gotoline not working
The method gotoline it's not working on tmget.Any solutions ?Antonio
tMget methhod gotoline not working
Need some help! Any solutions ?Antonio
tMget methhod gotoline not working
Please post your code !
tMultiget and bLostFocus problem
Hi all, it is a bit strange problem that didn't exist on the FWH Oct 2009. if a make (in a multiget) a oGet:bLostfocus:={......} then when the bLostFocus is evaluated the new get value is not still assigned different from FWH Oct 2009 where the get was assigned. I tried to bypass the problem with oGet:Assign() after the bLostFocus is evaluated but this method is not available in tMultiget class. Any ideas ? Thanks in advance.
tMultiget and bLostFocus problem
This is the code of LostFocus method in multiget class [code=fw:2ruyhq1s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> LostFocus<span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TMultiGet<br /><br />   <span style="color: #00C800;">Super</span>:<span style="color: #000000;">LostFocus</span><span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bSetGet</span> != <span style="color: #00C800;">nil</span><br />      Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bSetGet</span>, GetWindowText<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   ::<span style="color: #000000;">nPos</span> = nLoWord<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">&#40;</span> EM_GETSEL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2ruyhq1s] Super:LostFocus(...) evaluate bLostFocus codeblock. By this time the buffer is still not assigned to the variable. This is the same code even in 10.07. I do not know why there is any change in the behavior between 10.07 ( or 10.09 ) and now. In any case try moving the line Super:LostFocus(..) next to the If ::bSetGet .... endif block. This should give the desired behavior for you. Let us see if this solution works well and has no other undesirable side-effects. Alternatively, keep the following line as the first line of your bLostFocus code block [code=fw:2ruyhq1s]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> oGet:<span style="color: #000000;">bSetGet</span>, GetWindowText<span style="color: #000000;">&#40;</span> oGet:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2ruyhq1s]
tMultiget and bLostFocus problem
Hi, moving Super:LostFocus( hCtlFocus ) all seems to runs well. I checked that LostFocus method is unchanged beetween Fwh oct 2009 and Fwh Nov 2010 so I think this issue is related to other changes in mget or other "core" FWH classes. Thanks for your quick support.
tMultiget and bLostFocus problem
Probably it may not be a good idea to change the class in FWH library. Instead better we insert this line as the first line of our bLostFocus code [code=fw:3qnjuvcd]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Eval<span style="color: #000000;">&#40;</span> oGet:<span style="color: #000000;">bSetGet</span>, oGet:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3qnjuvcd]
tMultiget and bLostFocus problem
Yes, I generally avoid to make changes to the fwh classes but this seem to be a bug so a correction of the mget module is needed, I think the tmultiget has to works with the same tGet logic so the value has to be automatically assigned when the lostfocus is valuated.
tOleAuto():New( ""Sapi.SPVoice"" ) en ingles
Amigos del foro: Para Windows 8, tOleAuto():New( "Sapi.SPVoice" ) funciona muy bien con la voz de helena en español, ahora intento hacer lo mismo para el idioma inglés. ¿ Como selecciono la otra voz que encuentro que es la de zira, pero en inglés. Muchas gracias por sus ideas.
tOleAuto():New( ""Sapi.SPVoice"" ) en ingles
SAPI.SpVoice Properties: '.Pause = pause speaking '.resume = resume after pause '.Rate = speed at which voice speaks '.Voice = you can use set and a voice value to change the voice (if multiple exist on machine) '.Volume = volume of voice (not system volume, just voice) '.WaitUntilDone = wait until done [url:uah5l1bs]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=26521&start=0[/url:uah5l1bs] Espero te sirva!
tOutLook2003 sobre mdichild
Tengo una barra OutLook2003 incrustada en una ventana mdichild.Al cerrar la ventana mdichil y volverla a abrir se me cerraba el programa.Buscando el problema encontre que se producía en el método paint de la clase tOutLook2003.Mas concretamente en la línea donde se llama a FillRect[code:vvl510i6]METHOD Paint&#40;&#41; CLASS TOutLook2003 local n, nTop local aInfo &#58;= &#58;&#58;DispBegin&#40;&#41; FillRect&#40; &#58;&#58;hDC, GetClientRect&#40; &#58;&#58;hWnd &#41;, &#58;&#58;oBrush&#58;hBrush &#41; &#46;&#46;&#46; [/code:vvl510i6] El motivo es que en la segunda vez que se carga la barra OutLook2003 ::oBrush no se ha definido. Buscando donde se define el brush por defecto en la clase tOutLook2003 encontre que se define en el método Register de la clase tWindow [code:vvl510i6] METHOD Register&#40; nClsStyle &#41; CLASS TWindow local hUser DEFAULT &#58;&#58;lRegistered &#58;= &#46;f&#46; // XBPP workaround if &#58;&#58;lRegistered return nil endif #ifdef __CLIPPER__ hUser = GetModuleHandle&#40; "user&#46;exe" &#41; #else hUser = GetInstance&#40;&#41; #endif DEFAULT nClsStyle &#58;= nOR&#40; CS_VREDRAW, CS_HREDRAW &#41;,; &#58;&#58;nClrPane &#58;= GetSysColor&#40; COLOR_WINDOW &#41;,; &#58;&#58;oBrush &#58;= TBrush&#40;&#41;&#58;New&#40; ,&#58;&#58;nClrPane &#41; &#46;&#46;&#46;[/code:vvl510i6]Pero la segunda vez que se llama a la definición de la barra OutLook2003 la data ::lRegistered tiene valor .T. por lo que abandona método Register antes de llegar a la definición DEFAULT de ::oBrush.Desconozco si esto tiene que funcionar así y cual debe ser la solución mas correcta.
tOutLook2003 sobre mdichild
Bueno, pues yo lo he solucionado de esta forma[code:2bx4ocf9]METHOD Paint&#40;&#41; CLASS TOutLook2003 local n, nTop local aInfo &#58;= &#58;&#58;DispBegin&#40;&#41; if &#58;&#58;oBrush<>NIL FillRect&#40; &#58;&#58;hDC, GetClientRect&#40; &#58;&#58;hWnd &#41;, &#58;&#58;oBrush&#58;hBrush endif &#46;&#46;&#46; [/code:2bx4ocf9]No se si será la mas correcta, pero ahora funciona.
tOutLook2003 sobre mdichild
Sigo usando outlook2003 con este cambio. Nadie mas tiene este problema?
tOutlook2003 & Imagen de Fondo
Buenos días foro, os pregunto a ver si me podeis echar una manita: 1) Tengo en mi aplicación incrustada la clase toutlook2003, ¿Sabéis si se puede cambiar un icono en tiempo de ejecución en dicha clase?. Es que uno de los botones de la clase es un apartado de alarmas, y por defecto tiene un icono. Cuando haya una alarma quiero que dicho icono cambie para que el usuario entre en dicha parte. 2) Le he instalado a mi cliente la aplicación en varias máquinas, y cada una tiene un monitor con una resolución distinta, con lo cual, la imagen de fondo (en JPG) en uno aparece bien pero en otro aparece como un mosaico. Creo que de esto había algo en el foro, pero no lo he encontrado. ¿Me podeís dar alguna pista de como ensanchar la imagen para que en todos los monitores aparezca bien? Muchas gracias por todo. Un Saludo, Miguel A.
tOutlook2003 & Imagen de Fondo
Sorry, I thought i was in spanish forum!!
tOutlook2003 & Imagen de Fondo
Buenos días foro, os pregunto a ver si me podeis echar una manita: 1) Tengo en mi aplicación incrustada la clase toutlook2003, ¿Sabéis si se puede cambiar un icono en tiempo de ejecución en dicha clase?. Es que uno de los botones de la clase es un apartado de alarmas, y por defecto tiene un icono. Cuando haya una alarma quiero que dicho icono cambie para que el usuario entre en dicha parte. 2) Le he instalado a mi cliente la aplicación en varias máquinas, y cada una tiene un monitor con una resolución distinta, con lo cual, la imagen de fondo (en JPG) en uno aparece bien pero en otro aparece como un mosaico. Creo que de esto había algo en el foro, pero no lo he encontrado. ¿Me podeís dar alguna pista de como ensanchar la imagen para que en todos los monitores aparezca bien? Muchas gracias por todo. Un Saludo, Miguel A
tOutlook2003 & Imagen de Fondo
Mike, 1) Puedes cambiar el bitmap de un grupo de la siguiente forma: [code=fw:2fhyz3vk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oOutLook:<span style="color: #000000;">aGroups</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oBitmap</span>:<span style="color: #000000;">SetBMP</span><span style="color: #000000;">&#40;</span> cBmpResName <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// desde recursos ó</span><br /><br />oOutLook:<span style="color: #000000;">aGroups</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oBitmap</span>:<span style="color: #000000;">LoadBMP</span><span style="color: #000000;">&#40;</span> cBmpName <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// desde un fichero</span><br /><br />oOutLook:<span style="color: #000000;">aGroups</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2fhyz3vk] 2) Como estas pintando la imagen en la ventana ? Usas un objeto TImage ? Por favor muestra el código que usas, gracias
tOutlook2003 & Imagen de Fondo
Como siempre, gracias Antonio por contestar. 1) Solucionado, se queda perfecto con lo indicado 2) Con respecto al segundo punto, lo he intentado sin exito de las siguientes formas: Con un BRUSH [code=fw:3hkup117]<div class="fw" id="{CB}" style="font-family: monospace;">   <br />      ....<br />      ....<br />      <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">BRUSH</span> obmp FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\I</span>MG<span style="color: #000000;">\l</span>ogosocial.bmp"</span> <span style="color: #0000ff;">of</span> oWndPrincipal<br />    <br />    <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">title</span> oApplication:<span style="color: #0000ff;">Title</span> + <span style="color: #ff0000;">" Empresa: "</span> + oCompany:<span style="color: #000000;">Nombre</span> <span style="color: #0000ff;">mdi</span> <span style="color: #0000ff;">menu</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">icon</span> icono colors CLR_BLUE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>,<span style="color: #000000;">242</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">BRUSH</span> obmp<br />      ....<br />      ....<br />      ....<br />    <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">maximized</span> <span style="color: #0000ff;">valid</span> CloseAplicattion<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>oApplication:<span style="color: #000000;">oWnd</span>:=oWndPrincipal, SearchAlarms<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">ON</span> RESIZE <span style="color: #000000;">&#40;</span> oSplit:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                  WndLeft<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oSplit:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,;<br />                  WndWidth<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oWndPrincipal:<span style="color: #000000;">nWidth</span> - oOutLook2003:<span style="color: #000000;">nWidth</span> + <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:3hkup117] Con una clase IMAGE [code=fw:3hkup117]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     ....<br />     ....<br />    <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">title</span> oApplication:<span style="color: #0000ff;">Title</span> + <span style="color: #ff0000;">" Empresa: "</span> + oCompany:<span style="color: #000000;">Codigo</span> + <span style="color: #ff0000;">" - "</span> + oCompany:<span style="color: #000000;">Nombre</span> <span style="color: #0000ff;">mdi</span> <span style="color: #0000ff;">menu</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">icon</span> icono colors CLR_BLUE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>,<span style="color: #000000;">242</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />        ....<br />        <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">image</span> obmp FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\I</span>MG<span style="color: #000000;">\l</span>ogosocial.bmp"</span> <span style="color: #0000ff;">of</span> oWndPrincipal<br />        <br />    oWndPrincipal:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | hDC | BmpTiled<span style="color: #000000;">&#40;</span> hDC,oBmp, oWndPrincipal <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        ....<br />    <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">maximized</span> <span style="color: #0000ff;">valid</span> CloseAplicattion<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>oApplication:<span style="color: #000000;">oWnd</span>:=oWndPrincipal, SearchAlarms<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">ON</span> RESIZE <span style="color: #000000;">&#40;</span> oSplit:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                  WndLeft<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oSplit:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,;<br />                  WndWidth<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oWndPrincipal:<span style="color: #000000;">nWidth</span> - oOutLook2003:<span style="color: #000000;">nWidth</span> + <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /><br /> </div>[/code:3hkup117] Con la clase BITMAP [code=fw:3hkup117]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     ....   <br />    <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">title</span> oApplication:<span style="color: #0000ff;">Title</span> + <span style="color: #ff0000;">" Empresa: "</span> + oCompany:<span style="color: #000000;">Codigo</span> + <span style="color: #ff0000;">" - "</span> + oCompany:<span style="color: #000000;">Nombre</span> <span style="color: #0000ff;">mdi</span> <span style="color: #0000ff;">menu</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">icon</span> icono colors CLR_BLUE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>,<span style="color: #000000;">242</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #0000ff;">define</span> bitmap obmp FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\I</span>MG<span style="color: #000000;">\l</span>ogosocial.bmp"</span> <span style="color: #0000ff;">of</span> oWndPrincipal<br />        <br />    ...<br />        oWndPrincipal:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | hDC | BmpTiled<span style="color: #000000;">&#40;</span> hDC,oBmp, oWndPrincipal <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      <br />    <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWndPrincipal <span style="color: #0000ff;">maximized</span> <span style="color: #0000ff;">valid</span> CloseAplicattion<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>oApplication:<span style="color: #000000;">oWnd</span>:=oWndPrincipal, SearchAlarms<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">ON</span> RESIZE <span style="color: #000000;">&#40;</span> oSplit:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                  WndLeft<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oSplit:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,;<br />                  WndWidth<span style="color: #000000;">&#40;</span> oWndPrincipal:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">hWnd</span>, oWndPrincipal:<span style="color: #000000;">nWidth</span> - oOutLook2003:<span style="color: #000000;">nWidth</span> + <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /> </div>[/code:3hkup117] El código de la función BmpTiled (para 2 y 3) es el siguiente: [code=fw:3hkup117]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> BmpTiled<span style="color: #000000;">&#40;</span> hDC, oBmp, oWnd <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//BmpTiled(</span><br />    <br /><span style="color: #00C800;">local</span> nWidth := oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nHeight := oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nRow := <span style="color: #000000;">0</span>, nCol := <span style="color: #000000;">0</span>, n<br /><span style="color: #00C800;">local</span> nBmpWidth := oBmp:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nBmpHeight := oBmp:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">while</span> nRow < nHeight<br />nCol = <span style="color: #000000;">0</span><br /><span style="color: #00C800;">while</span> nCol < nWidth<br />PalBmpDraw<span style="color: #000000;">&#40;</span> hDC, nRow, nCol, oBmp:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><br />nCol += nBmpWidth<br />end<br />nRow += nBmpHeight<br />end<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3hkup117] Espero que me puedas ayudar. Muchas Gracias por Todo. Saludos
tOutlook2003 & Imagen de Fondo
Mike, Hazlo asi: [code=fw:og7yi0b0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oBmp<br /><br />   <span style="color: #0000ff;">DEFINE</span> BITMAP oBmp FILENAME <span style="color: #ff0000;">"logo.bmp"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DrawBitmap<span style="color: #000000;">&#40;</span> hDC, oBmp:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oWnd:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>  <br /> </div>[/code:og7yi0b0] [img:og7yi0b0]http&#58;//img190&#46;imageshack&#46;us/img190/2681/61312253&#46;jpg[/img:og7yi0b0]
tOutlook2003 & Imagen de Fondo
Funcionó perfectamente, muchisimas gracias Antonio Saludos,
tPreview iniciado al 100%
Hola a todos... Existe alguna manera en la que pueda inicializar tPreview en 100% ???? He modificado el Metodo PaintMeta() y puedo cambiar el tamaño del visualizador, pero no me funciona con el vScroll... He intentado llamando el metodo SetFactor() desde ON INIT, pero no me reconoce ::oMeta1 y creo que la clase no crea un objeto al que pueda llamar??? Alguien sabe de alguna manera en que pueda hacer esto???
tPrinter
Puede usarse la tPrinter en puerto Com o Paralelo??? Puede usarse para imprimir un documento (ticket/recibo) indicándole ancho de papel, pero no el largo ??? La tDosprn maneja puertos USB nativamente (Soportada por FiveTech)??? Necesito imprimir recibos de venta en impresoras Serial y USB con rollo de 3 pulgadas... Se que la clase tDosprn puede ser usada para esto, pero no sé si ésta maneja los puertos USB, y necesito que el Usuario pueda configurar las impresoras sin mi intervensión...(Hasta 3 Impresoras podrán ser instaladas, en la terminal, en cocina y en barra por ejemplo) Cualquier ayuda o comentario es agradecido de antemano!!!!
tPrinter ""problem"" with last FWH release
Hi all, I'm using FWH 15.07 updated from FWH december 2012. I noted there is an important change into the tPrinter method, essentially this new FWH always use as default the Windows default printer while the old FWH always use the current app printer (eg. the printer I selected with PrinterSetup()). This is reported into the whatsnews.txt as enhancement. In my opinion this is a wrong change: the tPrinter should use the current printer selected in the app (if different from the Windows default printe). Anyway do you know how can solve the problem ? Thank you in advance. * Enhancement: Class TPrinter Method New() has been improved so the selected printer (default printer) remains the same all the app life. Thanks to Enrico!
tPrinter ""problem"" with last FWH release
Look to see if it helps <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=31362#p181915">viewtopic.php?f=6&t=31362#p181915</a><!-- l --> Regards
tPrinter ""problem"" with last FWH release
Hi, I checked the turnaround but it is not correct in my opinion. That turnaround essentially change the Windows default printer with the printer selected with PrinterSetup() but this is wrong, due the PrinterSetup() should only change the default printer for THAT Windows app until it is running non for the full OS. The right solution was that with FWH december 2012.
tPrinter ""problem"" with last FWH release
[quote="Marco Turco":2c6d9i7a]* Enhancement: Class TPrinter Method New() has been improved so the selected printer (default printer) remains the same all the app life. Thanks to Enrico![/quote:2c6d9i7a] This should work exactly as you want. Apps use their selected printers and not the Windows default one. At least that's how it works in my applications. EMG
tPrinter ""problem"" with last FWH release
[quote:2fz7awge]* Enhancement: Class TPrinter Method New() has been improved so the selected printer (default printer) remains the same all the app life. Thanks to Enrico![/quote:2fz7awge] The above statement is confusing. The selected printer may, or may not, be the windows default printer. FW used to always use the default printer when it started but you could change that via either code or the printer selection dialog to a new printer which would become the "current" printer for that app, until or unless a different printer was selected (again, either via code, or user selection). It is unclear in the above statement if "(default printer)" is referring to the Windows default printer or the app default printer (normally called the "current" printer in my experience). Not having the ability to default to a different printer in an app would mean the programmer will have to override every print function via code to use different printer by default. If some programmers think defaulting to the Windows default printer always is helpful, then perhaps it would be useful for them to have a system-wide flag that would provide that behavior, but that defaults to the legacy behavior. James
tPrinter a PDF
Saludos Fivewinners tengo este codigo PRINTER oPrn FILE ( RutaPdf() + "\Informe" + Alltrim(Str(NumNumero)) + ".PDF") Genero el PDF sin problemas, queda bien, bonito... perooooo Si tengo predeterminada una impresora de Tickets, NO, adopta las caracteristicas de la impresora predeterminada, sea de Tickets, Etiquetas de barra etc. Como hacerlo para que salga en forma "normal", tamaño carta por ej. No todos los equipos tienen impresora "normal", algunos solo de Tickets, otros de Etiquetas de codigo de barra, otros Plotter de manera predeterminada, y en algunos casos no púedo cambiarla pues comparto con aplicaciones que si requieren tal o cual tipo de impresora y yo no puedo interfir. Eso Saludos
tPrinter a PDF
Probe con oPrn:SetPage( 1 ) oPrn:SetPortrait() mi codigo lo tengo todo con oPrn:CmSay( 1.0, 6.8 ,"Informe N° " + Alltrim(Str(NumNumero)),oFont1) oPrn:CmBox( 0.7, 6.5, 1.8, 14, oPen1 ) Y aun aparece recortado el PDF al tamaño de la etiqueta programada en la impresora
tPrinter a PDF
Hola, Me pareciera a mi que no queda otra que cambiar, por programa, la impresora por defecto, luego imprimir a pdf y restaurar Salu2
tPrinter a PDF
Lo pense. Gracias No es solucion, en algunos puntos, por ej en las bodegas solo esta la impresora de etiquetas de barras, algunos ni tienen pues envian todo por mail o en excel. Saludos
tPrinter a PDF
yo lo hago asi: Local cPrinter:="Microsoft XPS Document Writer" oPrn:=PrnSetSize( 2159, 3302 ) PRINT oPrn NAME "Impresión " PREVIEW TO cPrinter y luego imprimo a pdf saludos
tPrinter a PDF
Hola Jose Tambien lo habia probado, pasa que no hay intervencion del usuario, es un proceso con solo dos botones y listo Pasarlo por el preview enlentece el procedimiento y tengo seguro que mas de alguno se va a aproblemar con las opciones y demases... los conozco Saludos y gracias
tPrinter a PDF
Puedes probar así? [code=fw:37jp2ii4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">PRINT</span> oPrn FILE <span style="color: #000000;">&#40;</span> RutaPdf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\I</span>nforme"</span> + Alltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>NumNumero<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">".PDF"</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #000000;">cModel</span> := ALLTRIM<span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">imp_predet</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />.... El resto del codigo de impresión &nbsp; <br />&nbsp;</div>[/code:37jp2ii4] Donde oApp:imp_predet es el nombre de una impresora válida en la terminal que estés trabajando que tenga una hoja A4 como configuración. En caso de que no tenga impresoras que no sean tickeadoras, vas a tener que ponerle una pdf al menos.
tPrinter directo a PDF????
Amigos: Como imprimo directo a PDF con tprinter, por favor. Muchas Gracias.
tPrinter directo a PDF????
Hola a Todos Me uno a la petición, alguna forma que se haga directa la impresión a pdf indicando ya el nombre de archivo sin que lo pida Carlos I. De La Rosa <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> fwh 12.04 harbout Borland 5.8
tPrinter directo a PDF????
La solución es tan simple como efectiva. Te instalas el PDFCreator, y lo configuras para que tome el nombre del archivo PDF, del nombre de la ventana que vas a sacar a imprimir. Esta solución lo he aplicado por años con programas en clipper y con FWH.