topic
stringlengths
1
63
text
stringlengths
1
577k
tWord Class
Hi Can anyone point me to where I can download tWord class or send me a copy. Regards Colin
tWord Class
Hello Colin, what word version do you plan to work with? Best regards, Otto
tWord Class
Hi Otto I am using Word 2003. Regards Colin
tWord Class
Colin, here you can download it [url:28ux7v5g]http://www.box.net/shared/o8om8gj295[/url:28ux7v5g]
tWord Class
Hi Stefan I tried both twordx.prg and tword2.prg but in both cases it does not work but I am using FWH 7.12 and xHarbour build 1.0.0 which are both quite old - do I need to update to use Tword. Thanks Colin
tWord Class
Hi Colin, TWord is dated from 2003 / 2006, it should work with older versions of fwh. I didn´t use it in my apps,but the sample is working here. What error do you get ? Maybe there differences in the commands word uses. I´m not sure if it´s working with Office 2003 or 2007.
tWord Class
Stefan This is the error using twordx.prg Path and name: C:\dev\wca\wca.exe (32 bits) Size: 2,328,576 bytes Time from start: 0 hours 0 mins 7 secs Error occurred at: 19/05/2009, 21:55:36 Error description: Error BASE/1004 Class: 'NIL' has no exported method: GET Args: [ 1] = U [ 2] = C Documents Stack Calls =========== Called from: tget.prg => GET(0) Called from: Twordx.prg => TWORD:OPENDOC(376) Called from: report7.prg => REPORT7(13) Called from: Main.prg => (b)MAINMENU(149) Called from: MENU.PRG => TMENU:COMMAND(0) Called from: WINDOW.PRG => TWINDOW:COMMAND(0) Called from: MDIFRAME.PRG => TMDIFRAME:COMMAND(0) Called from: => TMDIFRAME:HANDLEEVENT(0) Called from: WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0) Called from: Main.prg => MAIN(92) I am trying to open an existing word 2003 document. Cheers Colin
tWord Class
Colin, it seems, that ::oWord is still nil, maybe the ole connection failed. Please replace the Method New () with this one to be sure that ::oWord is initialized: [code=fw:37tujp04]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span>   <span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #00C800;">CLASS</span> TWord<br />      ::<span style="color: #000000;">lWord</span>  := .T.<br />      <span style="color: #00C800;">TRY</span><br />        ::<span style="color: #000000;">oWord</span> := GetActiveObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />      CATCH<br />         <span style="color: #00C800;">TRY</span><br />            ::<span style="color: #000000;">oWord</span> := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />         CATCH<br />            Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ERROR! Word is not installed on this PC. ["</span> + Ole2TxtError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">"]"</span> <span style="color: #000000;">&#41;</span><br />            ::<span style="color: #000000;">lWord</span>  := .F.<br />         END<br />      END<br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:37tujp04]
tWord Class
Colin, I made some tests and I found the problem. The method OpenDoc (cNombre) needs the filename with its full path to work correctly. [code=fw:i7k4i9om]<div class="fw" id="{CB}" style="font-family: monospace;">oWord := TWord<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;">&#41;</span><br /><br /><span style="color: #B900B9;">//oWord:NewDoc('Creswin.doc')  // not working !</span><br />oWord:<span style="color: #000000;">OpenDoc</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"d:<span style="color: #000000;">\x</span>base<span style="color: #000000;">\x</span>harbour<span style="color: #000000;">\t</span>word<span style="color: #000000;">\C</span>reswin.doc"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// working fine </span></div>[/code:i7k4i9om] Hope it helps
tWord Class
[url:1opfk93d]https&#58;//github&#46;com/FiveTechSoft/FWH_tools/blob/master/Tword&#46;zip[/url:1opfk93d]
tWord Class
Dear Antonio, I think that tword class is buggy for last harbour and fivewin editions. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33813&hilit=TWORD#p200152">viewtopic.php?f=6&t=33813&hilit=TWORD#p200152</a><!-- l --> Regards
tWord Class
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=199936#p199936">viewtopic.php?p=199936#p199936</a><!-- l -->
tWord con Metodo de abrir un fichero con READONLY
Alguien ha creado el metodo de solo lectura para abrir un documento word, en la clase tWord, para que asi no se pueda variar el documento original. Me lo prodrian mandar por favor.[code:34w0e5me] Sub SoloLectura&#40;&#41; ' ' SoloLectura Macro ' Macro grabada el 24/10/2007 por &#46; ' Documents&#46;Open FileName&#58;="""capituo 1 al 5&#46;doc""", ConfirmConversions&#58;= _ False, ReadOnly&#58;=True, AddToRecentFiles&#58;=False, PasswordDocument&#58;="", _ PasswordTemplate&#58;="", Revert&#58;=False, WritePasswordDocument&#58;="", _ WritePasswordTemplate&#58;="", Format&#58;=wdOpenFormatAuto End Sub [/code:34w0e5me]
tWord con Metodo de abrir un fichero con READONLY
[quote="Andrés González":2h6gvri1]Alguien ha creado el metodo de solo lectura para abrir un documento word, en la clase tWord, para que asi no se pueda variar el documento original. Me lo prodrian mandar por favor.[code:2h6gvri1] Sub SoloLectura&#40;&#41; ' ' SoloLectura Macro ' Macro grabada el 24/10/2007 por &#46; ' Documents&#46;Open FileName&#58;="""capituo 1 al 5&#46;doc""", ConfirmConversions&#58;= _ False, ReadOnly&#58;=True, AddToRecentFiles&#58;=False, PasswordDocument&#58;="", _ PasswordTemplate&#58;="", Revert&#58;=False, WritePasswordDocument&#58;="", _ WritePasswordTemplate&#58;="", Format&#58;=wdOpenFormatAuto End Sub [/code:2h6gvri1][/quote:2h6gvri1] Andres : Mira este código : [code:2h6gvri1]METHOD OpenDoc&#40; cNombreDoc &#41; CLASS TWord local sal &#58;= &#46;t&#46; &#58;&#58;oDocs &#58;= &#58;&#58;oWord&#58;Get&#40; "Documents" &#41; if file&#40; cNombreDoc &#41; &#58;&#58;oActiveDoc &#58;= &#58;&#58;oDocs&#58;Invoke&#40; "Open",cNombreDoc &#41; [/code:2h6gvri1] Esta linea [b:2h6gvri1] ::oActiveDoc := ::oDocs:Invoke( "Open",cNombreDoc ) [/b:2h6gvri1] Hace el llamado de la función Open() donde el tercer paramatro indicado en el código que publicas es tipo logico. Entonces el método open de la clase tword quedaría de esta forma : [code:2h6gvri1]METHOD OpenDoc&#40; cNombreDoc , lReadOnly &#41; CLASS TWord local sal &#58;= &#46;t&#46; &#58;&#58;oDocs &#58;= &#58;&#58;oWord&#58;Get&#40; "Documents" &#41; if file&#40; cNombreDoc &#41; &#58;&#58;oActiveDoc &#58;= &#58;&#58;oDocs&#58;Invoke&#40; "Open",cNombreDoc , &#46;F&#46; , lReadOnly &#41; [/code:2h6gvri1]
tWord con Metodo de abrir un fichero con READONLY
Gracias Vikthor
tabindex
Olá, É possível mudar a ordem do foco dos objetos (tabindex) em tempo de execução ? Obrigado, Rossine.
tabindex
Rossine, You have to use Windows API SetWindowPos() (review "z order"): <!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/ms633545.aspx">http://msdn2.microsoft.com/en-us/library/ms633545.aspx</a><!-- m -->
tabindex
Gracias Maestro Rossine.
table with rtf
can I create tables with rtfpad test sample ?
table with rtf
Silvio, Where is rtfpad sample ?
table with rtf
dear antonio, testrtf.prg
tablet function AutoRotationPref()
como utilizar esta funcion? como utilizar modo portrait (default)? []s
tablet function AutoRotationPref()
[url:2dat75fu]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=16&t=31751[/url:2dat75fu]
tablet function AutoRotationPref()
karinha obrigado por responder eu tentei com base no link abaixo, mais sem resultado [url:1hvotjo9]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/dn376360(v=vs&#46;85)&#46;aspx[/url:1hvotjo9]
tablet functions
wich are all functions to use with the tablet ? ( Isee it at sillian but I n ot found the snapshot..) I remember Anserkk and Rao discussion
tablet functions
Silvio, There is a photo control that allows you to take pictures using your tablet camera, but it is only buildable using Microosft C++ Tim
tablet functions
Aaaahhhhh..... If you was at Sillian perhaps you can rember someone made istable() func and other funs for tablet with fwh.....
tablet functions
I was not able to attend, but I believe the WhatsNew discusses tablet functions. Otto has done much of the work with tablets. I do have a version of my software customized to the display of the Surface 3. However I did not use tablet functions ...
tablet functions
[quote="Silvio.Falconi":3e059dbv]wich are all functions to use with the tablet ? ( Isee it at sillian but I n ot found the snapshot..) I remember Anserkk and Rao discussion[/quote:3e059dbv] \Fwh\Samples\w10mode.Prg
tablet functions
thanks anserkk
tablet message
How show message big on tablet ? I mean msginfo, msgalert .... thanks
tablet message
Use Toast function or Class TToast
tablet message
and [b:33o05pib]msgYesNo[/b:33o05pib] ?
tablet message
TToast class, allows you to customize messages with controls as well
tablet message
is there a sample test for win10 pro ?
tablet message
A SAMPLE PLESASE
tableta de captura de firma en formato digital
Hola, Estoy probando una tableta para la captura de firma, como la que tienen los bancos, pero no se por donde empezar ¿Alguien la está utilizando? Algún ejemplo, o ayuda será bienvenido Gracias
tableta de captura de firma en formato digital
Marca y modelo?
tableta de captura de firma en formato digital
WACOM STU-430/G
tableta de captura de firma en formato digital
Entiendo que te han de proporcionar alguna DLL, o algún SDK para su programación desde cualquier lenguaje ------------------------------------------- EDITO ----------------------------------------------- Si, he visto esto <!-- m --><a class="postlink" href="http://signature.wacom.eu/es/productos/software/kits-de-desarrollo-de-software-sdk/">http://signature.wacom.eu/es/productos/ ... tware-sdk/</a><!-- m -->
tableta de captura de firma en formato digital
Mira si ayuda: [url:2kewz3op]http&#58;//signature&#46;wacom&#46;eu/pt-br/service/downloads/[/url:2kewz3op] Saludos.
tableta de captura de firma en formato digital
gracias, voy a ver si consigo la información
tableta de captura de firma en formato digital
Buena día... Esta fue mi solución... 1. Las pen tablet, funcionan como una extensión del mouse y de la pantalla 2. Una vez instalada cualquier marca de pen tablet, queda habilita esta función y ya puede usar el lápiz sobre la tablet y dibujar. Esta función la puede hacer a manera de prueba con el mouse sobre la aplicación que captura la digitalización ( dibujar a mano alzada), que puede ser microsoft paint o una aplicación propia ( desarrollo) 3. En fivewin lo puede implementar con la clase TGRAPH En estos días estoy desarrollando una app para manejo y registro de firmas, fotos y huellas y me encontré con los siguientes problemas : A. Para la firma se debe capturar y luego recortar para que la imagen resultante no sea del tamaño de la ventana y que al imprimir se pueda ajustar y ser legible en una área de firma de documento, no encontré esta opción en fivewin , sino que en java . B. La solución fue en java (captura firma, la recorta y genera la imagen) y hacer interface desde mi app-fivewin mediante paso de parámetros (directo o con archivo texto), y lanzar y cerrar la app-java desde fivewin como si fuera una ventana mas de mi app-fivewin. ( No se nota que es una app externa) C. De esta forma ya tengo una app para toma de huellas, toma de fotos, lectura de basculas POS y ahora captura de firmas. Con gusto le puedo ampliar este tema... * todo lo hice con ejemplos java tomados de los fabricantes y adaptadas por terceros - google + el ajuste o desarrollo particular en java Johnson Russi Colombia
tableta de captura de firma en formato digital
Bueno, me he puesto en contacto con el fabricante y he descargado el SDK, pero no se por donde tirar, Tengo libreriras para C, pero al intentar enlazarlas en un ejemplo que tiene para C me tira el error [code=fw:cgbkuxo9]<div class="fw" id="{CB}" style="font-family: monospace;">Turbo Incremental Link <span style="color: #000000;">6.70</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2014</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #ff0000;">'X:<span style="color: #000000;">\C</span>EPP<span style="color: #000000;">\F</span>UENTES<span style="color: #000000;">\F</span>W<span style="color: #000000;">\W</span>ACOM<span style="color: #000000;">\L</span>IB<span style="color: #000000;">\W</span>32<span style="color: #000000;">\W</span>GSSSTU.LIB'</span> contains invalid OMF record, type 0x21 <span style="color: #000000;">&#40;</span>possibly COFF<span style="color: #000000;">&#41;</span></div>[/code:cgbkuxo9] creo que el problema es que estan escritas para otro compilador. tambien tengo la DLL "wgssSTU.DLL" y ahora estoy intentando usar una DLL pero no no se que funciones puedo utilizar y como llamarlas. La documentación se refiere a esta clase como la primera para obtener los dispositvos conectados [i:cgbkuxo9]For those wanting to skip any preamble, the key classes and functions are: wgssSTU::UsbDevices – retrieves an array of attached USB tablets. wgssSTU::UsbInterface and wgssSTU::SerialInterface – connects to a specific tablet. wgssSTU::Tablet – queries and controls a tablet. wgssSTU::JScript – provides helper routines for use in HTML.[/i:cgbkuxo9] Intento leeer el array de dispositivos con este ejemplo [code=fw:cgbkuxo9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   pruebaC<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"fin"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PruebaC<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Testear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Testear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> x<br /><br />    x := WgssSTU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">UsbDevices</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Array de tablets conectadas</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />DLL <span style="color: #00C800;">FUNCTION</span> WgssSTU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> AS LONG PASCAL LIB <span style="color: #ff0000;">"wgssSTU.DLL"</span><br /><br /><span style="color: #B900B9;">//DLL FUNCTION WgssSTU() AS LONG PASCAL FROM "WgssSTU" LIB "wgssSTU.dll"</span><br />*/<br /> </div>[/code:cgbkuxo9]
tableta de captura de firma en formato digital
Parece que la lib es para Visual Studio, compila con las libs de fw para visual studio Seguramente tengas que desarrollar un wrapper de la lib para poder acceder a las funciones
tableta de captura de firma en formato digital
Bueno, sigo con el tema, Estoy probando los ejemplos que me pasaron en javascript y hay algo que no funciona. A ver si alguien me puede echar una mano Cuando ejecuto la pagina con internet explorer la imagen se carga correctamente en la tablet, pero cuando lo hago yo, la imagen no se carga bien aunque se carga algo y además se produce un error en metodo tablet:writeimage ¿Alguna idea? Gracias pagina javascript [code=fw:3k6kddjo]<div class="fw" id="{CB}" style="font-family: monospace;"><html><br /><head><br /><title>SendToSTU</title><br /><script type=<span style="color: #ff0000;">"text/javascript"</span>><br /><br /><!--<br /><span style="color: #B900B9;">// ==========================================================================</span><br /><span style="color: #B900B9;">//      Utilities</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00C800;">function</span> <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>txt<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />  <span style="color: #0000ff;">var</span> txtDisplay = document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"txtDisplay"</span><span style="color: #000000;">&#41;</span>;<br />  txtDisplay.value += txt + <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>;<br />  txtDisplay.scrollTop = txtDisplay.scrollHeight; <span style="color: #B900B9;">// scroll to end</span><br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> dec2hex<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"0x"</span> + <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>i<<span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span>?<span style="color: #ff0000;">"0"</span>:<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span> + i.toString<span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span>.toUpperCase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// add leading zero if < 16 e.g. 0x0F</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> DisplayImage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        <span style="color: #0000ff;">var</span> filename = document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"imgFilename"</span><span style="color: #000000;">&#41;</span>.value;<br />        document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"idImg"</span><span style="color: #000000;">&#41;</span>.src = filename;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> SendToSTU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        DisplayImage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #0000ff;">var</span> filename = document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"imgFilename"</span><span style="color: #000000;">&#41;</span>.value;<br />        <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SendToSTU: "</span> + filename<span style="color: #000000;">&#41;</span>;<br />    sdkSendToSTU<span style="color: #000000;">&#40;</span>filename<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> getCurrentDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> scriptFullName = <span style="color: #0000ff;">window</span>.location.pathname; <span style="color: #B900B9;">// gets /c:/pathname/file.html</span><br />    scriptFullName = scriptFullName.replace<span style="color: #000000;">&#40;</span>/\<span style="color: #B900B9;">//g,"\\"); //convert all '/' to '\'</span><br />    <span style="color: #0000ff;">var</span> scriptPath = scriptFullName.substring<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, scriptFullName.lastIndexOf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span style="color: #000000;">\\</span>"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// c:\pathname\</span><br />    scriptPath = unescape<span style="color: #000000;">&#40;</span>scriptPath<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// change %20 back to space</span><br />    <span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> scriptPath <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">function</span> OnLoad<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"imgFilename"</span><span style="color: #000000;">&#41;</span>.value = getCurrentDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"640x480.png"</span>; <span style="color: #B900B9;">// default to STU-500</span><br />        DisplayImage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Use the [Browse] button to select an image file. Sample images are included in this folder:"</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> getCurrentDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />    <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"To display the image on an STU press [Send Image to STU]"</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">// ==========================================================================</span><br /><span style="color: #B900B9;">//      SDK Application code</span><br /><span style="color: #B900B9;">//</span><br /><br />                                    <span style="color: #B900B9;">// enumerations copied from SDK\COM\doc with reformatted syntax</span><br />enumEncodingFlag = <span style="color: #000000;">&#123;</span>                <span style="color: #B900B9;">// encodingFlag reports what the STU device is capable of:</span><br />  EncodingFlag_Zlib : 0x01, <br />  EncodingFlag_1bit : 0x02,         <span style="color: #B900B9;">// mono</span><br />  EncodingFlag_16bit : 0x04,        <span style="color: #B900B9;">// 16bit colour (520/530)</span><br />  EncodingFlag_24bit : 0x08         <span style="color: #B900B9;">// 24bit colour (530)</span><br /><span style="color: #000000;">&#125;</span><br /><br />enumEncodingMode = <span style="color: #000000;">&#123;</span>                <span style="color: #B900B9;">// selects image transformation</span><br />  EncodingMode_1bit : 0x00,         <span style="color: #B900B9;">// mono display STU300/430/500</span><br />  EncodingMode_1bit_Zlib : 0x01,    <span style="color: #B900B9;">// use zlib compression (not automated by the SDK – the application code has to compress the data)</span><br />  EncodingMode_16bit : 0x02,        <span style="color: #B900B9;">// colour stu-520 & 530</span><br />  EncodingMode_24bit : 0x04,        <span style="color: #B900B9;">// colour STU 530</span><br />                                    <span style="color: #B900B9;">// tablet.supportsWrite() is true if the bulk driver is installed and available</span><br />  EncodingMode_1bit_Bulk : 0x10,    <span style="color: #B900B9;">// use bulk driver (520/530) </span><br />  EncodingMode_16bit_Bulk : 0x12, <br />  EncodingMode_24bit_Bulk : 0x14, <br /><br />  EncodingMode_Raw : 0x00, <br />  EncodingMode_Zlib : 0x01, <br />  EncodingMode_Bulk : 0x10, <br />  EncodingMode_16bit_565 : 0x02 <br /><span style="color: #000000;">&#125;</span><br /><br />enumScale = <span style="color: #000000;">&#123;</span><br />  Scale_Stretch : <span style="color: #000000;">0</span>, <br />  Scale_Fit : <span style="color: #000000;">1</span>, <br />  Scale_Clip : <span style="color: #000000;">2</span> <br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">var</span> tablet;<br /><span style="color: #0000ff;">var</span> protocolHelper;<br />    <br /><span style="color: #00C800;">function</span> sdkSendToSTU<span style="color: #000000;">&#40;</span>filename<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>connect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">try</span><br />    <span style="color: #000000;">&#123;</span><br />      <span style="color: #0000ff;">var</span> caps = tablet.getCapability<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #0000ff;">var</span> info = tablet.getInformation<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"STU model: "</span> + info.modelName<span style="color: #000000;">&#41;</span>;<br />      <span style="color: #0000ff;">var</span> pId = tablet.getProductId<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Product id: "</span>+ dec2hex<span style="color: #000000;">&#40;</span>pId<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #0000ff;">var</span> encodingFlag = protocolHelper.simulateEncodingFlag<span style="color: #000000;">&#40;</span>pId, caps.encodingFlag<span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"encodingFlag: "</span> + dec2hex<span style="color: #000000;">&#40;</span>encodingFlag<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />      <br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>encodingFlag & enumEncodingFlag.EncodingFlag_24bit<span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />        encodingMode = tablet.supportsWrite<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ? enumEncodingMode.EncodingMode_24bit_Bulk : <span style="color: #000000;">enumEncodingMode</span>.EncodingMode_24bit; <br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>encodingFlag & enumEncodingFlag.EncodingFlag_16bit<span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />        encodingMode = tablet.supportsWrite<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ? enumEncodingMode.EncodingMode_16bit_Bulk : <span style="color: #000000;">enumEncodingMode</span>.EncodingMode_16bit; <br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />        <span style="color: #B900B9;">// assumes 1bit is available</span><br />        encodingMode = enumEncodingMode.EncodingMode_1bit; <br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"encodingMode: "</span> + dec2hex<span style="color: #000000;">&#40;</span>encodingMode<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #0000ff;">var</span> stuImage = protocolHelper.resizeAndFlatten<span style="color: #000000;">&#40;</span>unescape<span style="color: #000000;">&#40;</span>filename<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, caps.screenWidth, caps.screenHeight, encodingMode, enumScale.Scale_Fit, <span style="color: #00C800;">false</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />      tablet.writeImage<span style="color: #000000;">&#40;</span>encodingMode, stuImage<span style="color: #000000;">&#41;</span>;      <span style="color: #B900B9;">// uses the colour mode flags in encodingMode</span><br />      tablet.disconnect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />    catch<span style="color: #000000;">&#40;</span>e<span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Exception: "</span> + e.<span style="color: #0000ff;">message</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />  <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> connect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />  <span style="color: #0000ff;">var</span> connected = <span style="color: #00C800;">false</span>;<br />  <span style="color: #00C800;">try</span> <br />  <span style="color: #000000;">&#123;</span><br />    <span style="color: #0000ff;">var</span> usbDevices;<br />    usbDevices = <span style="color: #00C800;">new</span> ActiveXObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.UsbDevices"</span><span style="color: #000000;">&#41;</span>;<br /><br />    <span style="color: #0000ff;">var</span> <span style="color: #0000ff;">count</span> = usbDevices.<span style="color: #0000ff;">Count</span>;<br /><br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">count</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />      <span style="color: #0000ff;">var</span> usbDevice = usbDevices.Item<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;     <span style="color: #B900B9;">// use the first STU found in the list.</span><br /><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>tablet == <span style="color: #00C800;">null</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />        protocolHelper = <span style="color: #00C800;">new</span> ActiveXObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.ProtocolHelper"</span><span style="color: #000000;">&#41;</span>;<br />        tablet = <span style="color: #00C800;">new</span> ActiveXObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.Tablet"</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br /><br />      <span style="color: #0000ff;">var</span> r1 = tablet.usbConnect<span style="color: #000000;">&#40;</span>usbDevice, <span style="color: #00C800;">false</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #0000ff;">var</span> r = r1.value;<br /><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>r == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />        connected = <span style="color: #00C800;">true</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span> <br />      <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Connect failed"</span><span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />    <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">else</span><br />    <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No devices connected"</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />    usbDevices = <span style="color: #00C800;">null</span>;<br />  <span style="color: #000000;">&#125;</span><br />  catch <span style="color: #000000;">&#40;</span>e<span style="color: #000000;">&#41;</span> <br />  <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Exception: "</span>+ e.<span style="color: #0000ff;">message</span><span style="color: #000000;">&#41;</span>;<br />  <span style="color: #000000;">&#125;</span><br />  <span style="color: #00C800;">return</span> connected;<br /><span style="color: #000000;">&#125;</span><br /><br /><br />--><br /></script><br /></head><br /><body onload=<span style="color: #ff0000;">"OnLoad()"</span>><br />        <h1>SendToSTU</h1><br /><table><br />     <tr><br />          <td <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"border:1px solid black;width:250pt;height:190pt;"</span>><br />               <img <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"idImg"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:250pt;"</span>/><br />          </td><br />          <td><br />          <input type=<span style="color: #ff0000;">"button"</span> value=<span style="color: #ff0000;">"Send Image to STU"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:40mm;margin-left:5mm"</span>  onClick=<span style="color: #ff0000;">"SendToSTU();"</span><br />                    <span style="color: #0000ff;">title</span>=<span style="color: #ff0000;">"Sends the image file to the STU display"</span>/><br />          </td><br />     </tr><br /></table><br />  <p/><br />  <input type=<span style="color: #ff0000;">"hidden"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"imgFilename"</span> /><br />  <input type=<span style="color: #ff0000;">"file"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"browseFile"</span> <span style="color: #0000ff;">size</span>=<span style="color: #000000;">80</span> onchange=<span style="color: #ff0000;">"imgFilename.value=this.value;DisplayImage();"</span> /><br />  <br/><br/><br />  <textarea cols=<span style="color: #ff0000;">"125"</span> rows=<span style="color: #ff0000;">"15"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"txtDisplay"</span>></textarea><br /></body><br /></html><br /> </div>[/code:3k6kddjo] y esto es lo que yo he generado en harbour [code=fw:3k6kddjo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#define</span> NTRIM<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span>    <span style="color: #000000;">&#40;</span> LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//#define print(x)  msginfo(x)</span><br /><br /><br /><br />#translate <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> <v1><span style="color: #000000;">&#91;</span>, <v2><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>      =>  ;<br />                   depura<span style="color: #000000;">&#40;</span> <v1> <span style="color: #000000;">&#91;</span>,  <v2> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> UsbDevices, usbDevice, tablet, protocolHelper, r, r1<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------//</span><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;">If</span> MsgNoYes<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Borrar"</span><span style="color: #000000;">&#41;</span><br />      BorrarTablet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Else</span><br />      EnviarImagen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndIf</span><br /><br />   <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"fin"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Connect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nCount    <span style="color: #B900B9;">//, r1, r</span><br /><span style="color: #B900B9;">//Local usbDevices, nCount</span><br /><span style="color: #B900B9;">//Local usbDevice, tablet, protocolHelper, r1, r</span><br /><span style="color: #00C800;">Local</span> Connected := .F.<br /><br />     nCount := <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">TRY</span><br />       usbDevices = createObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.UsbDevices"</span><span style="color: #000000;">&#41;</span><br />       nCount := usbDevices:<span style="color: #0000ff;">Count</span><br />     CATCH<br />        <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Falta el driver de conexion STU"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span> Connected<br />     END<br /><br />     <span style="color: #00C800;">If</span> nCount ==<span style="color: #000000;">0</span><br />        WindAviso<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No se localizaron dispositivos STU"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">Return</span> Connected<br />     <span style="color: #00C800;">EndIf</span><br /><br /><br />     with object usbDevices<br />          usbDevice := :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />     End<br /><br />    protocolHelper = createObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.ProtocolHelper"</span><span style="color: #000000;">&#41;</span><br />    tablet         = createObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WacomGSS.STU.Tablet"</span><span style="color: #000000;">&#41;</span><br />    r1             = tablet:<span style="color: #000000;">usbConnect</span><span style="color: #000000;">&#40;</span>usbDevice, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    r              = r1:<span style="color: #000000;">value</span><br />    <span style="color: #00C800;">If</span> r = <span style="color: #000000;">0</span><br />       Connected = .t.<br />    <span style="color: #00C800;">Else</span><br />       WindAviso<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No se pudo conectar"</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">Return</span> Connected<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------//</span><br /><span style="color: #00D7D7;">#define</span> EncodingFlag_Zlib   0x01<br /><span style="color: #00D7D7;">#define</span> EncodingFlag_1bit   0x02        <span style="color: #B900B9;">// mono</span><br /><span style="color: #00D7D7;">#define</span> EncodingFlag_16bit  0x04        <span style="color: #B900B9;">// 16bit colour (520/530)</span><br /><span style="color: #00D7D7;">#define</span> EncodingFlag_24bit  0x08        <span style="color: #B900B9;">// 24bit colour (530)</span><br /><br /><span style="color: #B900B9;">/*<br />enumEncodingFlag = {                // encodingFlag reports what the STU device is capable of:<br />  EncodingFlag_Zlib : 0x01,<br />  EncodingFlag_1bit : 0x02,         // mono<br />  EncodingFlag_16bit : 0x04,        // 16bit colour (520/530)<br />  EncodingFlag_24bit : 0x08         // 24bit colour (530)<br />}<br />*/</span><br /><br /><span style="color: #00D7D7;">#define</span> EncodingMode_1bit   0x00    <span style="color: #B900B9;">// mono display STU300/430/500</span><br /><span style="color: #00D7D7;">#define</span> EncodingMode_1bit_Zlib  0x01    <span style="color: #B900B9;">// use zlib compression (not automated by the SDK – the application code has to compress the data)</span><br /><span style="color: #00D7D7;">#define</span> EncodingMode_16bit  0x02    <span style="color: #B900B9;">// colour stu-520 & 530</span><br /><span style="color: #00D7D7;">#define</span> EncodingMode_24bit  0x04    <span style="color: #B900B9;">// colour STU 530</span><br />                                        <span style="color: #B900B9;">// tablet.supportsWrite() is true if the bulk driver is installed and available</span><br /><span style="color: #00D7D7;">#define</span> EncodingMode_1bit_Bulk  0x10    <span style="color: #B900B9;">// use bulk driver (520/530)</span><br /><span style="color: #00D7D7;">#define</span> EncodingMode_16bit_Bulk 0x12<br /><span style="color: #00D7D7;">#define</span> EncodingMode_24bit_Bulk 0x14<br /><span style="color: #00D7D7;">#define</span> EncodingMode_Raw    0x00<br /><span style="color: #00D7D7;">#define</span> EncodingMode_Zlib   0x01<br /><span style="color: #00D7D7;">#define</span> EncodingMode_Bulk   0x10<br /><span style="color: #00D7D7;">#define</span> EncodingMode_16bit_565  0x02<br /><br /><br /><span style="color: #B900B9;">/*<br />enumEncodingMode = {                // selects image transformation<br />  EncodingMode_1bit : 0x00,         // mono display STU300/430/500<br />  EncodingMode_1bit_Zlib : 0x01,    // use zlib compression (not automated by the SDK – the application code has to compress the data)<br />  EncodingMode_16bit : 0x02,        // colour stu-520 & 530<br />  EncodingMode_24bit : 0x04,        // colour STU 530<br />                                    // tablet.supportsWrite() is true if the bulk driver is installed and available<br />  EncodingMode_1bit_Bulk : 0x10,    // use bulk driver (520/530)<br />  EncodingMode_16bit_Bulk : 0x12,<br />  EncodingMode_24bit_Bulk : 0x14,<br /><br />  EncodingMode_Raw : 0x00,<br />  EncodingMode_Zlib : 0x01,<br />  EncodingMode_Bulk : 0x10,<br />  EncodingMode_16bit_565 : 0x02<br />}<br />*/</span><br /><br /><span style="color: #00D7D7;">#define</span> Scale_Stretch   <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> Scale_Fit   <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> Scale_Clip  <span style="color: #000000;">2</span><br /><br /><span style="color: #B900B9;">/*<br />enumScale = {<br />  Scale_Stretch : 0,<br />  Scale_Fit : 1,<br />  Scale_Clip : 2<br />}<br />*/</span><br /><br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">false</span>   <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">FUNCTION</span> BorrarTablet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">If</span> !Connect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Tablet conectada"</span><span style="color: #000000;">&#41;</span><br />tablet:<span style="color: #000000;">setClearScreen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />tablet:<span style="color: #000000;">disconnect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"tablet borrada"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> unescape<span style="color: #000000;">&#40;</span>xValue<span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">RETURN</span> xValue<br /><br /><span style="color: #00C800;">FUNCTION</span> EnviarImagen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Memvar oErr<br /><span style="color: #00C800;">Local</span> caps, info, pId, encodingFlag, encodingMode, stuImage, filename<br />BorrarTablet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> !Connect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Tablet conectada"</span><span style="color: #000000;">&#41;</span><br /><br />caps = tablet:<span style="color: #000000;">getCapability</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />info = tablet:<span style="color: #000000;">getInformation</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"STU model: "</span> + info:<span style="color: #000000;">modelName</span><span style="color: #000000;">&#41;</span><br />pId = tablet:<span style="color: #000000;">getProductId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Product id: "</span>+ dec2hex<span style="color: #000000;">&#40;</span>pId<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />encodingFlag = protocolHelper:<span style="color: #000000;">simulateEncodingFlag</span><span style="color: #000000;">&#40;</span>pId, caps:<span style="color: #000000;">encodingFlag</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"encodingFlag: "</span> + dec2hex<span style="color: #000000;">&#40;</span>encodingFlag<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nAnd<span style="color: #000000;">&#40;</span>encodingFlag, EncodingFlag_24bit <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />    encodingMode = iif<span style="color: #000000;">&#40;</span>tablet:<span style="color: #000000;">supportsWrite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, EncodingMode_24bit_Bulk, EncodingMode_24bit<span style="color: #000000;">&#41;</span><br />elseif nAnd<span style="color: #000000;">&#40;</span>encodingFlag , EncodingFlag_16bit<span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />    encodingMode = iif<span style="color: #000000;">&#40;</span>tablet:<span style="color: #000000;">supportsWrite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, EncodingMode_16bit_Bulk, EncodingMode_16bit<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />    encodingMode = EncodingMode_1bit<br /><span style="color: #00C800;">EndIf</span><br /><br /><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>encodingflag<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>EncodingFlag_24bit <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>nAnd<span style="color: #000000;">&#40;</span>EncodingFlag, EncodingFlag_Zlib <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>nAnd<span style="color: #000000;">&#40;</span>EncodingFlag, EncodingFlag_1bit <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>nAnd<span style="color: #000000;">&#40;</span>EncodingFlag, EncodingFlag_16bit<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>nAnd<span style="color: #000000;">&#40;</span>EncodingFlag, EncodingFlag_24bit <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>tablet:<span style="color: #000000;">supportsWrite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"suportswrite"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"encodingMode: "</span> + dec2hex<span style="color: #000000;">&#40;</span>encodingMode<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />filename := unescape<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"imagen.jpg"</span><span style="color: #000000;">&#41;</span><br />stuImage = protocolHelper:<span style="color: #000000;">resizeAndFlatten</span><span style="color: #000000;">&#40;</span>filename, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, caps:<span style="color: #000000;">screenWidth</span>, caps:<span style="color: #000000;">screenHeight</span>, encodingMode, Scale_Fit, .f., <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>filename, <span style="color: #ff0000;">"filename"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>caps:<span style="color: #000000;">screenWidth</span>, <span style="color: #ff0000;">"screenwidth"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>caps:<span style="color: #000000;">screenHeight</span>, <span style="color: #ff0000;">"screenhigh"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>encodingMode, <span style="color: #ff0000;">"encondingmode"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span>Scale_Fit, <span style="color: #ff0000;">"ScaleFit"</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">TRY</span><br />   tablet:<span style="color: #000000;">writeImage</span><span style="color: #000000;">&#40;</span>encodingMode, stuImage<span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// uses the colour mode flags in encodingMode</span><br />CATCH oErr<br />   <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error en la escritura de la tablet"</span><span style="color: #000000;">&#41;</span><br />END<br /><br /><br />tablet:<span style="color: #000000;">disconnect</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 /><br /> </div>[/code:3k6kddjo]
tableta de captura de firma en formato digital
¿ Que tipo de captura de firma necesitas ? . Me refiero si simplemente es capturar una imagen de firma o se trata de que se "realmente segura" con todo lo que aporta wacom, de seguridad en trazos, certificado,fechado , etc Yo me peleé con una de un amigo hace como un año. Si lo que buscas requiere "seguridad" la opción facil es usar el programa de generacíon de pdf que trae la tableta, te permite personalizar ciertos parametros ( limitados) pero te genera "pdf seguros" con un monton de información sobre la firma. Si necnesitas personalizarlo mucho mas tienes que tirar del sdk que ademas creo que era de pago . Para una cosa simple donde quieras recoger los trazos tienes un sdk mas simple con ejemplos en varios idiomas de programación. Yo lo intente intentando crear un wrapper a harbour pero no funcionaba como debería. La solución final para mi ( que solo pretendía capturar la firma ) fue coger el ejemplo que tienes en Delphi y modificarlo un poco para poner el logo de fondo de pantalla y los tesxto que quería mostar y que generase una imagen de la firma . Es un exe delphi con unos pocos parametros en un fichero ini. Se llama desde el programa fwh.exe , se espera a que genere el archivo imagen de la firma y se cierra el programa y se devuelve el control al exe fwh para que genere el pdf con la firma ...
tableta de captura de firma en formato digital
Gracias por responder, De momento estoy haciendo pruebas, El caso es que estoy jugando un poco con la tableta para ver que se puede hacer y como es la primera vez que trabajo con objetos COM estoy un poco perdido, Lo que me sorprende es que cuando ejecuto la pagina html, el codigo javascript hace el trabajo correctamente, (enviar una imagen que aparece en la tablet) pero cuando lo hago con harbour se envia la imagen (pero no sale correctamente) y se genera un error. Creo que debe se por el tipo de algun dato (int, long...) que le paso a la funcion pero no se como comprobar. caps = tablet:getCapability() la variable caps que se carga con el metodo getCapability() devuelve un objeto con varios valores pero de distintos tipos segun la documentacion UNIT16 y UNIT8 Creo que el problema está en el metodo [color=#FF0000:v0vd792p]protocolHelper.resizeAndFlatten[/color:v0vd792p] en javascript es var stuImage = protocolHelper.resizeAndFlatten(unescape(filename), 0, 0, 0, 0, caps.screenWidth, caps.screenHeight, encodingMode, enumScale.Scale_Fit, false, 0) En harbour lo he traducido y los valores que envio a la funcion son los mismos pero el resultado es que aparece en la tablet una imagen que es como si se viera la imagen ampliada y a continuación se genera un error. [code=fw:v0vd792p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />filename := <span style="color: #ff0000;">"imagen.jpg"</span><br />stuImage = protocolHelper:<span style="color: #000000;">resizeAndFlatten</span><span style="color: #000000;">&#40;</span>filename, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, caps:<span style="color: #000000;">screenWidth</span>, caps:<span style="color: #000000;">screenHeight</span>, encodingMode, Scale_Fit, .f., <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">TRY</span><br />   tablet:<span style="color: #000000;">writeImage</span><span style="color: #000000;">&#40;</span>encodingMode, stuImage<span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// uses the colour mode flags in encodingMode</span><br />CATCH oErr<br />   <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error en la escritura de la tablet"</span><span style="color: #000000;">&#41;</span><br />END</div>[/code:v0vd792p] Un saludo
tableta de captura de firma en formato digital
Hola amigos, ¿algún avance al respecto? Me toca pelearme también con una wacom. Saludos!
tableta de captura de firma en formato digital
[quote="mastintin":2y9nvznk]¿ Que tipo de captura de firma necesitas ? . Me refiero si simplemente es capturar una imagen de firma o se trata de que se "realmente segura" con todo lo que aporta wacom, de seguridad en trazos, certificado,fechado , etc Yo me peleé con una de un amigo hace como un año. Si lo que buscas requiere "seguridad" la opción facil es usar el programa de generacíon de pdf que trae la tableta, te permite personalizar ciertos parametros ( limitados) pero te genera "pdf seguros" con un monton de información sobre la firma. Si necnesitas personalizarlo mucho mas tienes que tirar del sdk que ademas creo que era de pago . Para una cosa simple donde quieras recoger los trazos tienes un sdk mas simple con ejemplos en varios idiomas de programación. Yo lo intente intentando crear un wrapper a harbour pero no funcionaba como debería. La solución final para mi ( que solo pretendía capturar la firma ) fue coger el ejemplo que tienes en Delphi y modificarlo un poco para poner el logo de fondo de pantalla y los tesxto que quería mostar y que generase una imagen de la firma . Es un exe delphi con unos pocos parametros en un fichero ini. Se llama desde el programa fwh.exe , se espera a que genere el archivo imagen de la firma y se cierra el programa y se devuelve el control al exe fwh para que genere el pdf con la firma ...[/quote:2y9nvznk] Hola mastintin , ¿sería posible que me pasaras el fuente Delphi modificado? Me basta con recoger la firma sin más florituras.
tableta de captura de firma en formato digital
[quote="AngelSalom":xcf0r3up] Hola mastintin , ¿sería posible que me pasaras el fuente Delphi modificado? Me basta con recoger la firma sin más florituras.[/quote:xcf0r3up] Lo busco y te envío lo que tengo .Facilitame un mail ...
tableta de captura de firma en formato digital
angel [arroba] visionwin [punto] com Gracias!
tabs look 2015
Hello, Could be posible please? Thank you
tabs look 2015
pls post a image
tabs look 2015
It should be the same as the SET MESSAGE OF oWndMain 2015, thank you.
tabs look 2015
??????????
tabs look 2015
Yes, the flat look in the Message bar in a Window when adding 2015 clause to the Set Message.
tabs look 2015
I think you cannot have this because Linares made the fwhTabs with bmps only can remake the bmp with the brush of 2015 colors I use another my class [img:f9i6r0hb]https&#58;//i&#46;postimg&#46;cc/7Lz0b2YZ/tabs&#46;png[/img:f9i6r0hb] [img:f9i6r0hb]https&#58;//i&#46;postimg&#46;cc/y88zVmj0/dd&#46;png[/img:f9i6r0hb] good for windows seven and windows 10
tabs look 2015
Lets wait to Antonio reply.
tabs look 2015
Please go to ttabs.prg Can you see yourself how the class create the tabs.
tabs look 2015
I'm making a TTab 2015 class, [img:17lgfr82]https&#58;//i&#46;postimg&#46;cc/dVtDFJH6/ttabs&#46;png[/img:17lgfr82] run ok with xharbour, on harbour I have also one error,I'm working..
tabs look 2015
Silvio, This is the look I am looking: [img:19jdedbn]https&#58;//i&#46;postimg&#46;cc/qvmzRP6h/SILVIO&#46;png[/img:19jdedbn] In this way, the 2015 look will be homogeneous in all aspects. Could be possible? Thank you.
tabs look 2015
my new class have 3 colors set you can insert wich you want for your application as for the ribbonbar setstyle 1. Line set is the line you can see here : [img:37j3vyaq]https&#58;//i&#46;postimg&#46;cc/vmPWcj7s/line&#46;jpg[/img:37j3vyaq] 2. Focus ( selected) 3. not focus ( no selected) each tab have two color on top and on bottom as you can see here [img:37j3vyaq]https&#58;//i&#46;postimg&#46;cc/632YwwkS/onetab&#46;jpg[/img:37j3vyaq] on picture I have blue light and white you must set only the colors an sample with Images [img:37j3vyaq]https&#58;//i&#46;postimg&#46;cc/xdYhTrs1/new3&#46;png[/img:37j3vyaq]
tabs look 2015
Thank you very much. Please note that it should not have any relief, but be completely flat like the message in the main window.
tabs look 2015
[quote="MOISES":zknnuouv]Thank you very much. Please note that it should not have any relief, but be completely flat like the message in the main window.[/quote:zknnuouv] you can decide your style to make or not make gradient, wich colors you want to make "completely flat" we can set same color
tabs look 2015
Thank you Silvio <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tabs look 2015
I will send everything ( source and sample) to Antonio Linares when I return from the Christmas holidays
tabs look 2015
Thank you and happy 2020!
tabs look 2015
Hi, What is the status? I don´t see it in FWH 20.02. Thank you.
tabs look 2015
We haven't got it yet (as far as I remember)
tabs look 2015
Antonio, I would need to paint the tabs as the bottom bar of the window with SET MESSAGE OF oWndMain ; TO ( cMainMsg ) ; CLOCK ; DATE ; KEYBOARD 2015 Here's an earlier version, but I don't know how to make the changes to the painting. Please can you help me? [code=fw:3nxes2cn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Font.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> COLOR_INACTIVECAPTION <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOWTEXT &nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNFACE &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNSHADOW &nbsp; &nbsp; &nbsp;<span style="color: #000000;">16</span><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNHIGHLIGHT &nbsp; <span style="color: #000000;">20</span><br /><br /><span style="color: #00D7D7;">#define</span> FD_BORDER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> FD_HEIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">22</span><br /><br /><span style="color: #00D7D7;">#define</span> DT_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> DT_VCENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span><br /><br /><span style="color: #00D7D7;">#define</span> WINDING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SC_KEYMENU &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">61696</span> &nbsp; <span style="color: #B900B9;">// 0xF100</span><br /><br />#ifdef __XPP__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">Super</span> ::<span style="color: #000000;">TControl</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">New</span> &nbsp; _New<br />#endif<br /><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> oDlg, oTabs<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TESTING TABS"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> TABS oTabs ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">oTop</span> = oTabs<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TTabs <span style="color: #0000ff;">FROM</span> TControl<br /><br />&nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br />&nbsp; &nbsp;CLASSDATA aProperties <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"aPrompts"</span>, <span style="color: #ff0000;">"nAlign"</span>, <span style="color: #ff0000;">"nClrText"</span>, <span style="color: #ff0000;">"nClrPane"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"nOption"</span>, <span style="color: #ff0000;">"nTop"</span>, <span style="color: #ff0000;">"nLeft"</span>, <span style="color: #ff0000;">"nWidth"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"nHeight"</span>, <span style="color: #ff0000;">"Cargo"</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aPrompts, aSizes<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nOption<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bAction<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cMode<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, aPrompts, bAction, oWnd, nOption, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack, lPixel, lDesign, nWidth, nHeight,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cMsg, cMode <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, aPrompts, bAction, oWnd, nOption, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrBack <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Initiate<span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> AddItem<span style="color: #000000;">&#40;</span> cItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DelItem<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SetOption<span style="color: #000000;">&#40;</span> nOption <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SetTabs<span style="color: #000000;">&#40;</span> aTabs, nOption <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetHotPos<span style="color: #000000;">&#40;</span> nChar <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SysCommand<span style="color: #000000;">&#40;</span> nType, nLoWord, nHiWord <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Inspect<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> EditPrompts<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, aPrompts, bAction, oWnd, nOption, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrBack, lPixel, lDesign, nWidth, nHeight, cMsg, cMode <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;#ifdef __XPP__<br />&nbsp; &nbsp; &nbsp; #undef <span style="color: #00C800;">New</span><br />&nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nTop &nbsp; &nbsp; := <span style="color: #000000;">0</span>, nLeft := <span style="color: #000000;">0</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aPrompts := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"&One"</span>, <span style="color: #ff0000;">"&Two"</span>, <span style="color: #ff0000;">"T&hree"</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd &nbsp; &nbsp; := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOption &nbsp;:= <span style="color: #000000;">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore := oWnd:<span style="color: #000000;">nClrText</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNFACE <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lPixel &nbsp; := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDesign &nbsp;:= .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth &nbsp; := <span style="color: #000000;">200</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeight &nbsp;:= <span style="color: #000000;">24</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cMode &nbsp; &nbsp;:= <span style="color: #ff0000;">"BOTTOM"</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;= nOR<span style="color: #000000;">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDesign, WS_CLIPSIBLINGS, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, WS_TABSTOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; = ::<span style="color: #000000;">GetNewId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">aPrompts</span> &nbsp;= aPrompts<br />&nbsp; &nbsp;::<span style="color: #000000;">bAction</span> &nbsp; = bAction<br />&nbsp; &nbsp;::<span style="color: #000000;">nOption</span> &nbsp; = nOption<br />&nbsp; &nbsp;::<span style="color: #000000;">cMsg</span> &nbsp; &nbsp; &nbsp;= cMsg<br />&nbsp; &nbsp;::<span style="color: #000000;">nTop</span> &nbsp; &nbsp; &nbsp;= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, nTop, nTop * SAY_CHARPIX_H <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, nLeft, nLeft * SAY_CHARPIX_W <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nBottom</span> &nbsp; = ::<span style="color: #000000;">nTop</span> + nHeight - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRight</span> &nbsp; &nbsp;= ::<span style="color: #000000;">nLeft</span> + nWidth - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lDrag</span> &nbsp; &nbsp; = lDesign<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> = .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">oFont</span> &nbsp; &nbsp; = TFont<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: #ff0000;">"Ms Sans Serif"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nClrText</span> &nbsp;= nClrFore<br />&nbsp; &nbsp;::<span style="color: #000000;">nClrPane</span> &nbsp;= nClrBack<br />&nbsp; &nbsp;::<span style="color: #000000;">cMode</span> &nbsp; &nbsp; = cMode<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> ::<span style="color: #000000;">oBrush</span> <span style="color: #0000ff;">STYLE</span> TABS<br /><br />&nbsp; &nbsp;#ifdef __XPP__<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">lRegistered</span> := .f.<br />&nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lDesign<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">CheckDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, aPrompts, bAction, oWnd, nOption, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nOption &nbsp;:= <span style="color: #000000;">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore := oWnd:<span style="color: #000000;">nClrText</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNFACE <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp;= nId<br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; = oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">aPrompts</span> = aPrompts<br />&nbsp; &nbsp;::<span style="color: #000000;">bAction</span> &nbsp;= bAction<br />&nbsp; &nbsp;::<span style="color: #000000;">nOption</span> &nbsp;= nOption<br />&nbsp; &nbsp;::<span style="color: #000000;">oFont</span> &nbsp; &nbsp;= TFont<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: #ff0000;">"Ms Sans Serif"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nClrText</span> = nClrFore<br />&nbsp; &nbsp;::<span style="color: #000000;">nClrPane</span> = nClrBack<br />&nbsp; &nbsp;::<span style="color: #000000;">cMode</span> &nbsp; &nbsp;= <span style="color: #ff0000;">"BOTTOM"</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hOldFont<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hOldBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hOldPen<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nCol &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">5</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hDC &nbsp; &nbsp; &nbsp; &nbsp; := ::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hDarkPen &nbsp; &nbsp;:= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hGrayPen &nbsp; &nbsp;:= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hLightPen &nbsp; := CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hGrayBrush &nbsp;:= CreateSolidBrush<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hDarkBrush &nbsp;:= CreateSolidBrush<span style="color: #000000;">&#40;</span> GetSysColor<span style="color: #000000;">&#40;</span> COLOR_INACTIVECAPTION <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;hOldFont &nbsp;= SelectObject<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hOldPen &nbsp; = SelectObject<span style="color: #000000;">&#40;</span> hDC, hDarkPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hOldBrush = SelectObject<span style="color: #000000;">&#40;</span> hDC, hDarkBrush <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aSizes</span> <span style="color: #000000;">&#41;</span> < Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">cMode</span> == <span style="color: #ff0000;">"BOTTOM"</span><br /><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SetBlackPen<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> n == ::<span style="color: #000000;">nOption</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBlackPen<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PolyPolygon<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> &nbsp;<span style="color: #000000;">&#123;</span> nCol, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol , <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span> + <span style="color: #000000;">17</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hLightPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol , <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span> + <span style="color: #000000;">17</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrText</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <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: #000000;">5</span>, nCol + <span style="color: #000000;">4</span>, <span style="color: #000000;">19</span>, nCol + <span style="color: #000000;">5</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOr<span style="color: #000000;">&#40;</span> DT_CENTER, DT_VCENTER <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hDarkBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBlackPen<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PolyPolygon<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> &nbsp;<span style="color: #000000;">&#123;</span> nCol, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol , <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span> + <span style="color: #000000;">17</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol , <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, CLR_WHITE <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_INACTIVECAPTION <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">5</span>, nCol + <span style="color: #000000;">3</span>, <span style="color: #000000;">19</span>, nCol + <span style="color: #000000;">5</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">6</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOr<span style="color: #000000;">&#40;</span> DT_CENTER, DT_VCENTER <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol += <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">26</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;elseif ::<span style="color: #000000;">cMode</span> == <span style="color: #ff0000;">"TOP"</span><br /><br />&nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</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 />&nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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 />&nbsp; &nbsp; &nbsp; SetWhitePen<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">-3</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> n == ::<span style="color: #000000;">nOption</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBlackPen<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PolyPolygon<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> &nbsp;<span style="color: #000000;">&#123;</span> nCol, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hLightPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol + <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">8</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, CLR_BLACK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <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: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">19</span>, nCol + <span style="color: #000000;">4</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">5</span>, nCol + <span style="color: #000000;">5</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOr<span style="color: #000000;">&#40;</span> DT_CENTER, DT_VCENTER <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject( hDC, hDarkBrush )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBlackPen( hDC )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PolyPolygon( hDC, { &nbsp;{ nCol , ::nHeight() - &nbsp;3 },;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ nCol , ::nHeight() - 20 },;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ nCol + 4 + ::aSizes[ n ] + 8, ::nHeight() - 20 },;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ nCol + 4 + ::aSizes[ n ] + 8, ::nHeight() - 3 } } )<br />*/</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, nCol , ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, CLR_WHITE <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//GetSysColor( COLOR_INACTIVECAPTION ) )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">19</span> , nCol + <span style="color: #000000;">3</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">5</span>, nCol + <span style="color: #000000;">5</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">6</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOr<span style="color: #000000;">&#40;</span> DT_CENTER, DT_VCENTER <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end <span style="color: #00C800;">if</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; nCol += <span style="color: #000000;">4</span> + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">26</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;end <span style="color: #00C800;">if</span><br /><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldBrush <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hDarkPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hLightPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hDarkBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayBrush <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</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 /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> Initiate<span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">Initiate</span><span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrush</span> == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> ::<span style="color: #000000;">oBrush</span> <span style="color: #0000ff;">STYLE</span> TABS<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #00C800;">Default</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 /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span>, nPos := <span style="color: #000000;">5</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDrag</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> nRow, nCol, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nRow <= FD_HEIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">while</span> nCol > nPos + ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">30</span> .and. n < Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos += ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">30</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">aSizes</span> = Array<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aSizes</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> = GetTextWidth<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, StrTran<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"&"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> AddItem<span style="color: #000000;">&#40;</span> cItem <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span>, cItem <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</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 /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> DelItem<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aPrompts</span> = ADel<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span>, ::<span style="color: #000000;">nOption</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aPrompts</span> = ASize<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span>, Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aPrompts</span> = <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"No Defined"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</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 /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SetOption<span style="color: #000000;">&#40;</span> nOption <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nOption != ::<span style="color: #000000;">nOption</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nOption</span> = nOption<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bAction</span>, nOption <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> GetHotPos<span style="color: #000000;">&#40;</span> nChar <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nAt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> n <= Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&"</span>, ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; Lower<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> nChar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> n<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;n++<br />&nbsp; &nbsp;end<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SysCommand<span style="color: #000000;">&#40;</span> nType, nLoWord, nHiWord <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nItem<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> nType == SC_KEYMENU &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Alt+... control accelerator pressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nItem := ::<span style="color: #000000;">GetHotPos</span><span style="color: #000000;">&#40;</span> nLoWord <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> nItem <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SetTabs<span style="color: #000000;">&#40;</span> aTabs, nOption <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> aTabs := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"&One"</span>, <span style="color: #ff0000;">"&Two"</span>, <span style="color: #ff0000;">"T&hree"</span> <span style="color: #000000;">&#125;</span>, nOption := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">aPrompts</span> = aTabs<br />&nbsp; &nbsp;::<span style="color: #000000;">nOption</span> &nbsp;= nOption<br />&nbsp; &nbsp;::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</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 /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> Inspect<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> cData == <span style="color: #ff0000;">"aPrompts"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">EditPrompts</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> EditPrompts<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTabs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, n<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPrompts := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lOk := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aPrompts := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cPrompts += ::<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> + CRLF<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">178</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Edit prompts"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0.2</span>, <span style="color: #000000;">0.3</span> <span style="color: #0000ff;">GET</span> cPrompts MEMO <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">70</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">7.5</span>, <span style="color: #000000;">10.1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">11</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lOk := .t., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">7.5</span>, <span style="color: #000000;">22.1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">11</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lOk<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> MLCount<span style="color: #000000;">&#40;</span> cPrompts <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aPrompts, AllTrim<span style="color: #000000;">&#40;</span> MemoLine<span style="color: #000000;">&#40;</span> cPrompts,, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetTabs</span><span style="color: #000000;">&#40;</span> aPrompts, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:3nxes2cn] .RC FILE: [code=fw:3nxes2cn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />test <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">78</span>, <span style="color: #000000;">72</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">119</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Test"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">100</span>, <span style="color: #ff0000;">"TTabs"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">193</span>, <span style="color: #000000;">17</span><br />&nbsp;DEFPUSHBUTTON <span style="color: #ff0000;">"OK"</span>, IDOK, <span style="color: #000000;">12</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"Cancel"</span>, IDCANCEL, <span style="color: #000000;">72</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"Help"</span>, IDHELP, <span style="color: #000000;">132</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3nxes2cn] Thank you very much.
tabs look 2015
Moises, Class TTabs uses bitmaps to paint the tabs. In order to change the look of the tabs you have to implement these functions in your app: bmp_TabSel() bmp_TabSelL() bmp_TabSelR() bmp_TabUnSel() bmp_TabUnSL() bmp_TabUnSR() bmp_TabSelV() bmp_TabSelLV() bmp_TabSelRV() bmp_TabUnSelV() bmp_TabUnSLV() bmp_TabUnSRV() Each of those functions has to provide the required bitmap. Please review these bitmaps in FWH\bitmaps: tabsel.bmp, tabsell.bmp, tabselr.bmp, tabunsel.bmp, tabunsl.bmp, tabunsr.bmp, tabselv.bmp, tabselllv.bmp, tabselrv.bmp, tabunselv.bmp, tabunslv.bmp and tabunsrv.bmp Next is to modify those bitmaps with the look that you want. Once modified use FWH\bmptoc.prg to create the C code for each bitmap. Finally you have to implement the above functions to replace the FWH equivalent ones. Here you have an example: moises.prg [code=fw:3m9z78bf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oTabs<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">14</span>, <span style="color: #000000;">0</span> TABS oTabs <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"one"</span>, <span style="color: #ff0000;">"two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> oWnd:<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2015</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Hello"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <fwh.h><br /><br />extern LPSTR DibBits<span style="color: #000000;">&#40;</span> LPBITMAPINFOHEADER lpBmp <span style="color: #000000;">&#41;</span>;<br />void RegisterResource<span style="color: #000000;">&#40;</span> HANDLE hResource, LPSTR szType <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">static</span> unsigned char tabsel<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span><br />0x42, 0x4D, 0xDE, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, <br />0x00, 0x28, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, <br />0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0x02, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x00, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, <br />0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, <br />0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, 0x1C, 0xED, 0x24, <br />0x1C, 0xED, 0x24, 0x1C, 0xED, 0x00 <span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #00C800;">static</span> HBITMAP CreateMemBitmap<span style="color: #000000;">&#40;</span> LPBITMAPINFO pBitmap <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HBITMAP hBitmap = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HDC hDC;<br /><br />&nbsp; &nbsp;hDC = GetDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pBitmap <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;hBitmap = &nbsp;CreateDIBitmap<span style="color: #000000;">&#40;</span> hDC,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&pBitmap->bmiHeader,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CBM_INIT,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DibBits<span style="color: #000000;">&#40;</span> &pBitmap->bmiHeader <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pBitmap,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DIB_RGB_COLORS <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;RegisterResource<span style="color: #000000;">&#40;</span> hBitmap, <span style="color: #ff0000;">"BMP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> hBitmap;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMP_TABSEL <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;fw_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> CreateMemBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPBITMAPINFO <span style="color: #000000;">&#41;</span> tabsel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:3m9z78bf] Once you complete it, we appreciate if you contribute it to FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tabs look 2015
In FWH\samples\bmptoc.prg there is a minor change to do: (BMP bytes to use are from position 15) [code=fw:2xy3asdc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Generates the C language bytes for a bitmap</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span> cBmpFile <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cBytes, cResult := <span style="color: #ff0000;">"static unsigned char "</span>, n, cHex<br /><br />   <span style="color: #00C800;">DEFAULT</span> cBmpFile := cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Bitmap file| *.bmp| "</span>, <span style="color: #ff0000;">"Please select a bitmap"</span> <span style="color: #000000;">&#41;</span><br /><br />   cResult += cFileNoExt<span style="color: #000000;">&#40;</span> cBmpFile <span style="color: #000000;">&#41;</span><br />   cResult += <span style="color: #ff0000;">"[] = {"</span> + CRLF<br /><br />   <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> cBmpFile <span style="color: #000000;">&#41;</span><br />      cBytes = MemoRead<span style="color: #000000;">&#40;</span> cBmpFile <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">for</span> n = <span style="color: #000000;">15</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> cBytes <span style="color: #000000;">&#41;</span><br />         cHex = DecToHex<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Asc</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cBytes, n, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />         cResult += <span style="color: #ff0000;">"0x"</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cHex <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"0"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + cHex + <span style="color: #ff0000;">", "</span> <br />         <span style="color: #00C800;">if</span> n % <span style="color: #000000;">13</span> == <span style="color: #000000;">0</span><br />            cResult += CRLF<br />         <span style="color: #00C800;">endif</span>  <br />      <span style="color: #00C800;">next</span><br /><br />      cResult = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cResult, <span style="color: #000000;">1</span>, Len<span style="color: #000000;">&#40;</span> cResult <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" };"</span><br /><br />      MemoEdit<span style="color: #000000;">&#40;</span> cResult <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>          </div>[/code:2xy3asdc] This is an enhanced moises.prg with the selected tab already completed: [code=fw:2xy3asdc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oTabs<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />   @ <span style="color: #000000;">14</span>, <span style="color: #000000;">0</span> TABS oTabs <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"one"</span>, <span style="color: #ff0000;">"two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> oWnd:<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">10</span><br /><br />   SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2015</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Hello"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <fwh.h><br /><br />extern LPSTR DibBits<span style="color: #000000;">&#40;</span> LPBITMAPINFOHEADER lpBmp <span style="color: #000000;">&#41;</span>;<br />void RegisterResource<span style="color: #000000;">&#40;</span> HANDLE hResource, LPSTR szType <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">static</span> unsigned char tabsel<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span><br />0x28, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, <br />0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0x02, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00<br /> <span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #00C800;">static</span> unsigned char tabsell<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span><br />0x28, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, <br />0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, <br />0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0xC3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0xC3, 0xC3, 0xC3, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, <br />0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, <br />0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, <br />0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF   <span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #00C800;">static</span> unsigned char tabselr<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span><br />0x28, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, <br />0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x00, 0x00, 0xC4, <br />0x0E, 0x00, 0x00, 0xC4, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, <br />0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, <br />0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, <br />0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, <br />0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, <br />0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, <br />0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, <br />0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, <br />0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, <br />0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, <br />0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00 <span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #00C800;">static</span> HBITMAP CreateMemBitmap<span style="color: #000000;">&#40;</span> LPBITMAPINFO pBitmap <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HBITMAP hBitmap = <span style="color: #000000;">0</span>;<br />   HDC hDC;<br /><br />   hDC = GetDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pBitmap <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />       hBitmap =  CreateDIBitmap<span style="color: #000000;">&#40;</span> hDC,<br />                       &pBitmap->bmiHeader,<br />                       CBM_INIT,<br />                       DibBits<span style="color: #000000;">&#40;</span> &pBitmap->bmiHeader <span style="color: #000000;">&#41;</span>,<br />                       pBitmap,<br />                       DIB_RGB_COLORS <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, hDC <span style="color: #000000;">&#41;</span>;<br />   RegisterResource<span style="color: #000000;">&#40;</span> hBitmap, <span style="color: #ff0000;">"BMP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> hBitmap;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMP_TABSEL <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   fw_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> CreateMemBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPBITMAPINFO <span style="color: #000000;">&#41;</span> tabsel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMP_TABSELL <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   fw_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> CreateMemBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPBITMAPINFO <span style="color: #000000;">&#41;</span> tabsell <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BMP_TABSELR <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   fw_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> CreateMemBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPBITMAPINFO <span style="color: #000000;">&#41;</span> tabselr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:2xy3asdc] [img:2xy3asdc]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/newtabs&#46;JPG?raw=true[/img:2xy3asdc]
tabs look 2015
[quote="Antonio Linares":q7jus5v8]We haven't got it yet (as far as I remember)[/quote:q7jus5v8] Antonio, as you wrote me on email [b:q7jus5v8]I sent all sources to Mr Nages Rao[/b:q7jus5v8] Tell me if you don't find it, I'll send it back
tabs look 2015
Antonio, I resent you Now a zip file with the ttabs class but I had a Mail Delivery Subsystem, I resent now another
tabs look 2015
Dear Silvio, I got your file, thanks
tagging multiple files in a cGetFile
Hi, I called to the function cGetFile. Can I tag multiple files / folders ( in order to copy them to clipboard) ?
tagging multiple files in a cGetFile
Please have a look at <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30681&p=176430&hilit=agetfiles#p176430">viewtopic.php?f=3&t=30681&p=176430&hilit=agetfiles#p176430</a><!-- l --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
tagging multiple files in a cGetFile
Thanks, I completely forgot about this function <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
tags a la evernote
Hello, I'm sure that many of you know the evernote application. I want to simulate the tag intruduction of Evernote web clipper in my programs. I'd like to have an input field and write some text and when press enter the program show the text as a tag, with his borderline and the x to delete it. Something like this: [img:29sfj6d4]http&#58;//alanit&#46;com/wordpress/wp-content/uploads/2013/11/evernotetags&#46;png[/img:29sfj6d4] Is it possible to do with FWH ? Regards, José Luis Sánchez
tamanho do arquivo (resolvido)
ola grupo preciso saber o tamanho(size) do meu executavel vlw
tamanho do arquivo (resolvido)
[code=fw:1qhveomy]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;<br />&nbsp; adir1 &nbsp; := Directory<span style="color: #000000;">&#40;</span>cDir_001+<span style="color: #ff0000;">"sistema.exe"</span><span style="color: #000000;">&#41;</span><br />&nbsp; adir2 &nbsp; := Directory<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDir_002,nLenArq<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"sistema.exe"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> adir1<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> # adir2<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;cOrigem &nbsp;:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDir_002,nLenArq<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"sistema.exe"</span><br />&nbsp; &nbsp; &nbsp;cDestino := cDir_001+<span style="color: #ff0000;">"sistema.exe"</span><br />&nbsp; &nbsp; &nbsp;__CopyFile<span style="color: #000000;">&#40;</span>cOrigem,cDestino<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp;</div>[/code:1qhveomy]
tamaño de campo para e-mail
¿Cual es el tamaño de campo máximo en un registro de una dbf para poner una dirección de e-mail?
tamaño de campo para e-mail
hummmmmm..... El DBF se invento mucho antes de que el e-mail fuera un "comodity". Yo diria que la longitud maxima de un campo en el DBF para poner una direccion de correo electronico seria a su vez el tamaño maximo de un campo tipo character, que a su vez creo recordar que es de 10000 (10 kbytes)
tamaño de fuente en xbrowse
Hola a todos no me había topado con la necesidad de aumentar el tamaño de letra en xbrowse. ¿alguien sabe como?...gracias
tamaño de fuente en xbrowse
DEFINE FONT oFont NAME "Arial Narrow" SIZE 5, 18 ..... WITH OBJECT ( oBrwFW2 := TXBrowse():New( oPanBrw ) ) *... WITH OBJECT (oCol := oBrwFW2:AddCol()) <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->DataFont := oFont
tamaño de fuente en xbrowse
At runtime of xbrowse, the user can increase or decrease the font size by pressing CTRL+ or CTRL-. ( + and - on the num key pad). This works the same way as we press Ctrl+ or Ctrl- when we view web pages. Programatically, we can increase or decrease the font size by calling oBrw:FontSize( +n ) or oBrw:FontSize( -n )
tamaño de fuente en xbrowse
Hi Nages: ... and what happened if I want to increase only the font size on the line rowsel ... .or. just converter it to boolean or italic by example ... I can ? Regards Julio César Gómez Cortéz Godryc Experiencias Lima Perú
tamaño de fuente en xbrowse
[quote="nageswaragunupudi":glpb7tfk]At runtime of xbrowse, the user can increase or decrease the font size by pressing CTRL+ or CTRL-. ( + and - on the num key pad). This works the same way as we press Ctrl+ or Ctrl- when we view web pages. Programatically, we can increase or decrease the font size by calling oBrw:FontSize( +n ) or oBrw:FontSize( -n )[/quote:glpb7tfk] Mr NAO, I tried this function to increase font size with CTRL + and if it does but the logical field column where I have a setcheck the value of .t appears now. or .f. next to the check image, I am using a DBF ... greetings, thanks. Mr NAO, he probado esta funcion de aumentar tamaño de letra con CTRL + y si lo hace pero la columna de campo logico donde tengo un setcheck aparece ahora el valor .t. o .f. al lado de la imagen de check, estoy usando una DBF...saludos, gracias.
tamaño de fuente en xbrowse
Mr Jose I understand the problem. Seems we need to fix this. I'll get back to you asap.
tamaño de hoja
Hola como estan, todavía no he podido resolver el problema. Tengo una comandera termica como predeterminada por más que defina: PRINT oPrn_Ret FILE ( "\archivos pdf\retencion.PDF") preview oPrn_Ret:SetPage( 9 ) oPrn_Ret:SetPortrait() la impresión sale la hoja bien pero la impresión cortada Si tengo otra impresora como predeterminada sale perfecta <!-- m --><a class="postlink" href="https://drive.google.com/file/d/1fLsvY2gmLPRer8gpYVnogQqDl6Xj2ZPv/view?usp=share_link">https://drive.google.com/file/d/1fLsvY2 ... share_link</a><!-- m --> Saludos Jorge
tamaño de hoja
cual es la marca de esta impresora y como son sus configuraciones internas? ¿No está configurado en la configuración para generar 40 columnas o algo similar? Por favor, compruebe. ¿Es una impresora de tickets tipo supermercado? ¿Configuró el valor predeterminado de impresión en EPSON LX-300 o el valor predeterminado de Microsoft cuando se trata de la impresora tickt? Regards, saludos.
tamaño de hoja
Hola, gracias por responder. El problema está que al estar predeterminada la impresora térmica de 80 mm de ancho, al querer imprimir en pdf por ej. sin haber usado en ningún momento la térmica, no cambia el área de impresión, por más que defina el tamaño de hoja. O sea que me está faltando algo para cambiar el tamaño del area de impresión. Es más, le puse printersetup() y tampoco funciona al elegir cualquier impresora. No encuentro cual es mi error. Saludos Jorge.
tamaño imagen
Hola. Necesito imprimir imagenes un un reporte, y lo estoy haciendo con el Saybitmap. Salen bien, pero tengo que saber de antemano el largo y el ancho del bmp, para poder imprimirlo y que salga bien (que no salga deformado). ¿Existe alguna funcion que me permita determinar el largo y el alto de una imagen? (de un .bmp, por ej.). Porque tengo el problema de que los usuarios cargan imagenes, y no siempre respetan un mismo tamaño, sino que varian. Cargan una foto por registro nuevo (registramos alumnos). Entonces al imprimir, si el usuario puso una imagen de 10 x 10 cm de la cara del alumno, la impresion sale bien, pero si pone una de 20 x 15, por ej, sale toda deformada. Si yo pudiera conocer para un alumnoxxx.bmp, cual es el largo y cual el alto, podría crear alguna especie de do case para que no quede tan feo. ¿se puede? o si no alguna alternativa, si alguien conoce... se los agradeceré.
tamaño imagen
Hola, Prueba con [b:2vuwhy7o]nBmpHeight(hBmp)[/b:2vuwhy7o] y [b:2vuwhy7o]nBmpWidth(hBmp)[/b:2vuwhy7o]
tamaño imagen
Tuve un problema similar. Revisa el topico: [url:2wd3bfrf]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=4736&p=20954&hilit=nconvert#p20954[/url:2wd3bfrf] Ralph
tamaño renglones xbrowse
hola foro, Me inetersa tener de diferenetes tamaños en renglones en un xbrowse, ya que en algunos casos algunos productos tienen algunas notas( color rojo y este campo es un MEMO), por lo tanto el tamaño puede variar, alguna idea de como hacerlo? adjunto imagen como me gustaria que quedara, (el producto + notas un solo renglon) [url=http&#58;//imageshack&#46;us/photo/my-images/835/posof&#46;jpg/:2udojwvv][img:2udojwvv]http&#58;//img835&#46;imageshack&#46;us/img835/8473/posof&#46;jpg[/img:2udojwvv][/url:2udojwvv] Uploaded with [url=http&#58;//imageshack&#46;us:2udojwvv]ImageShack.us[/url:2udojwvv] gracias paco
tamaño renglones xbrowse
Francisco en "Samples" fíjate en Testmerg.prg. Ahi hace lo que vos queres. Un abrazo.
tamaño renglones xbrowse
Gracias Loco, le echare un vistazo salu2 paco
tamaño renglones xbrowse
parece que no me funciono <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> alguna otra sugerencia?? saludos paco