topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
tgantt class | We think that this class is not freeware and I think its cost wil be around to 200 €. |
tgantt class | Yes,
We can confirm Tplan 32 bit Version 1.02
On the package : Manual help file, Test Samples
€ 199,99
Write email for information to <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
tget spinner bug add ::refresh() | Hi,
1. Tget class method spinner() ,add the ::refresh() is better .
::oVScroll:bGoUp := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bUp ),::refresh() }
::oVScroll:bGoDown := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bDown ),::refresh() }
2. @1,2 get date1 of odlg size 72,12 spinner ...
the width will over the size
Shuming Wang |
tget for chinese characters | Hi Antonio,
How to amend the TGET.PRG so that it can work like TEDIT.PRG
for two characters support (Chinese, etc.) without set the FW_SETUNICODE(.T.).
Regards and thanks |
tget for chinese characters | We are going to review it
thanks |
tget for chinese characters | Thanks Antonio very much looking forward to see. |
tget for chinese characters | [quote:kt4sxyb5]it can work like TEDIT.PRG[/quote:kt4sxyb5]
Where is the TEDIT.PRG please ? |
tget for chinese characters | source\classes\edit.prg
<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG |
tget for chinese characters | [quote="Enrico Maria Giordano":1g1tmmca]source\classes\edit.prg
<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG[/quote:1g1tmmca]
Can we see an example of using Unicode text in Edit control without setting FW_SetUnicode( .T. ) ?
Thanks in advance. |
tget for chinese characters | HI
I think TEdit.prg not work Unicode and 2 bytes Chinese.
Long time ago, FWH not support Unicode and 2 bytes Chinese. so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)
When I run MiniGUI, I found TEdit replace TGet within MiniGUI. so I suggestion Antonio to make TEdit.prg , not I think not work and return use TGet.prg( modify support Chinese )
But I don't know new FWH TEdit support 2 bytes Chinese and Use or not FW_SetUnicode( .T. ) |
tget for chinese characters | TEdit control uses Windows native Edit control. It can only handle either ANSI or Unicode. There is nothing we can do about it.
[quote:2n1g6lih]
so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)
[/quote:2n1g6lih]
This is what is required. |
tget for chinese characters | Exactly, Richard would you please amend the Tget.prg again ? |
tget for chinese characters | Mr alfredlam
Richard's help would be highly useful.
Meanwhile would you mind sharing with us how with Edit control you are able to enter Chinese characters? We may try to make TGet behave like Edit control. Are you setting any Chinese codepage like CP950 or BIG5 ? |
tget for chinese characters | [quote="alfredlam":1vw5n5yw]Exactly, Richard would you please amend the Tget.prg again ?[/quote:1vw5n5yw]
Mr alfredlam
I will send TGet.prg to Mr.Rao
This TGet.prg not support XP Themes.
If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem. |
tget for chinese characters | Mr Richard
Thanks
[quote:3uut81dl]If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.
[/quote:3uut81dl]
Mr Alfredlam does not want to use Unicode.
Yes, Unicode application is not compatible with BIG5 or CP950.
Can you please clarify as to how can we test entering Chinese characters into your TGet class? We do not have Chinese keyboard. I believe the on-screen Chinese keyboard of Windows enters only utf8 characters. |
tget for chinese characters | Seems has been discussed the same issue on
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22508&hilit=chinese+get">viewtopic.php?f=3&t=22508&hilit=chinese+get</a><!-- l --> |
tget for chinese characters | [quote="alfredlam":3mt18xww]Seems has been discussed the same issue on
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22508&hilit=chinese+get">viewtopic.php?f=3&t=22508&hilit=chinese+get</a><!-- l -->[/quote:3mt18xww]
Mr alfredlam
Yes. I think you'll meet end user input Unicode word and appear "???". Because you use old TGet 2byes solution not XP Themes( CP950/BIG5 ) |
tget for chinese characters | Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred |
tget for chinese characters | [quote="alfredlam":3oc6pvvx]Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred[/quote:3oc6pvvx]
Mr alfredlam
I remember I tested my TGet( 2bytes ) that can't add XP Themes( mean WindowsXP.manifest ).
Because position not work( left/right ... key control ).
Now, FWH can support it( Unicode and XP Themes ). |
tget for chinese characters | [quote="nageswaragunupudi":1l5tkyn2]Mr Richard
Thanks
[quote:1l5tkyn2]If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.
[/quote:1l5tkyn2]
Mr Alfredlam does not want to use Unicode.
Yes, Unicode application is not compatible with BIG5 or CP950.
Can you please clarify as to how can we test entering Chinese characters into your TGet class? We do not have Chinese keyboard. I believe the on-screen Chinese keyboard of Windows enters only utf8 characters.[/quote:1l5tkyn2]
Mr alfredlam
I sent to Mr Rao my old TGet.prg for Chinese 2bytes. |
tget manipular un evento | Hola a Todos Necesito con la clase TGet saber cuando presiono la tecla Ariba, Abajo, Derecha, Izquierda con el metodo::bKeyDown := {|nKey| MsgInfo(nKey)}no me sirvenecesito saber si existe una forma de saber cuando presiono Up, Down, Left, RightAntes lo hacia con solo FiveWinni siquiera me sirve consetkey(37,{||MsgInfo("x")})setkey(38,{||MsgInfo("x")})setkey(39,{||MsgInfo("x")})setkey(40,{||MsgInfo("x")})Gracias de antemano |
tget manipular un evento | Ejemplo:[code:igil7tur]
IF GETASYNCKEY( VK_UP )
RETURN( .T. )
ENDIF
ó
IF nKey = 46
? [ UP ]
ENDIF
[/code:igil7tur] |
tget manipular un evento | NO eso lo se, el problema es el siguiente tengo un get cualquiera un ejemplo que pida el nombre de una perona por ejemplo lo que quiero controlar es que dentro del cuadro del get al presionar tecla derecha poder ejecutar una accioncuando utilizo oBrw:bKeyDown := {|nKey| FunKeyDown(nKey)}cuando presion por ejemplo una tecla como A el me da en nKey el numero 65, pero no me sirve con las teclas direccionales. |
tget manipular un evento | Use BTNGET.PRG y BTNGET.CH[code:2rc0mn89]
REDEFINE BTNGET aGet[1] VAR XCODVEND PICTURE "@K 99" ID 20 OF ODLG ;
RESOURCE "FOLDER16" ;
FONT oFnt2 UPDATE ;
COLOR nRGB( 000, 000, 000 ), nRGB( 243, 250, 200 ) ;
VALID ( CLICK(), ACHA_CODIGO_VENDEDOR( XCODVEND, aGet ) ) ;
ACTION( CLICK(), ACHA_CODIGO_VENDEDOR( XCODVEND, aGet ) )
[/code:2rc0mn89] |
tget manipular un evento | Gracias pero lo que necesito es que al presionar en un get tecla abajo o tecla arriba sin presionar ningun boton ni enter pueda efectuar un eventooGet:bKeyDown := {|nKey|If(nKey = 46 funInsLin()}eso es un ejemplo y trabaja bien pero necesito que me sirva con las teclas direccionales porque oGet:bKeyDown me toma letras numeros teclas de control y no me toma las direcionales , cuando tengo un getsi es caracterejemplo Nombre: _Luis______________________ en cualquier momento puedo presionar la tecla direcional y necesito ejecutar un evento agradezco cualquier ayudaantes con Fivewin pordia hacer esto y lo maneja biensetkey(VK_UP,{|| FUNKEY()}) |
tget manipular un evento | Luis,Comprueba que tengas estas líneas en la Clase TGet:[code:1au66r0o]
METHOD KeyDown( nKey, nFlags ) CLASS TGet
local nHi, nLo, nPos, nLastHi := -1, uVal
::nLastKey = nKey
if ::bKeyDown != nil
if ValType( uVal := Eval( ::bKeyDown, nKey, nFlags, Self ) ) == "N" .and. ;
uVal == 0
return 0
endif
endif
do case
...
[/code:1au66r0o]Si no las tienes, inclúyelas, y así oGet:bKeyDown te reconocerá las teclas arriba, abajo, etc. |
tget manipular un evento | Si las tiene Maestro AntoniooGet:bKeyDown := {|nKey|msginfo(nkey)}el me muestra cada una de las teclas que presiono en el get bien pero no toma en cuenta las teclas direccionales.Y trate de hacerlo de otra forma con setkeyel me hace bien elsetkey(vk_f2,{||funkey()})perosetkey(vk_up,{||funkey()})setkey(vk_down,{||funkey()})no las toma en cuenta y esa es una solucion a lo que necesitoGracias de antemano |
tget manipular un evento | [quote="luisduque":17pv3sqz]el me muestra cada una de las teclas que presiono en el get bien pero no toma en cuenta las teclas direccionales.[/quote:17pv3sqz]Hola Luis:Un pequeño ejemplo funcionando:[code:17pv3sqz]#include "Fivewin.ch"
Function Main()
LOCAL oDlg, oGet, ;
nVal := 123
DEFINE DIALOG oDlg;
SIZE 400, 400
@ 10, 0 GET oGet VAR nVal OF oDlg SIZE 40, 10 PIXEL
oGet:bKeyDown := {|nKey| If( nKey == VK_UP, MsgInfo( "UP" ), ;
If( nKey == VK_DOWN, MsgInfo( "DOWN" ), Nil ) ) }
ACTIVATE DIALOG oDlg CENTERED
Return Nil[/code:17pv3sqz]Espero te ayude.Manuel Mercado |
tget only numbers and ""."" | the user can digit only number and "." on a get
LOCAL oGet, cvar := Space(100)
@ 82, 2 GET oGet VAR cVar SIZE 200,20 PIXEL OF oBarRight NOBORDER FONT oFontGet
oGet:bChange := {|nKey|(Chr(nKey)$"0123456789.")}
why I can insert also characters ? (as you see in this picture )
[img:24miosh6]https://i.postimg.cc/qvSZZKDT/kk.png[/img:24miosh6] |
tget only numbers and ""."" | hi Silvo,
[quote="Silvio.Falconi":2ozaf5f1]the user can digit only number and "." on a get[/quote:2ozaf5f1]
what about using cPicture "99" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
tget only numbers and ""."" | Algo asi?
[code=fw:22exfn24]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\SILVGETN.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oDlg, oFont<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oGet, cVar := Space<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oBtnX2, cTitle, aGrad, oSay<br /><br /> cTitle := <span style="color: #ff0000;">"Cambia GET"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE ;<br /> <span style="color: #0000ff;">TITLE</span> cTitle GRADIENT aGrad <span style="color: #0000ff;">FONT</span> oFont<br /><br /> oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /> @ <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@R 99,999,999,999.99"</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">(</span> CAMBIA_PICT<span style="color: #000000;">(</span> oGet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CAMBIA_PICT<span style="color: #000000;">(</span> oGet <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cPict := <span style="color: #ff0000;">"012345678912"</span><br /><br /> oGet:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">(</span> cPict <span style="color: #000000;">)</span><br /> oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br /> </div>[/code:22exfn24]
Regards, saludos. |
tget only numbers and ""."" | [quote="karinha":1wf3p14z]Algo asi?
[code=fw:1wf3p14z]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\SILVGETN.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oDlg, oFont<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oGet, cVar := Space<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oBtnX2, cTitle, aGrad, oSay<br /><br /> cTitle := <span style="color: #ff0000;">"Cambia GET"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE ;<br /> <span style="color: #0000ff;">TITLE</span> cTitle GRADIENT aGrad <span style="color: #0000ff;">FONT</span> oFont<br /><br /> oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /> @ <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@R 99,999,999,999.99"</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">(</span> CAMBIA_PICT<span style="color: #000000;">(</span> oGet <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CAMBIA_PICT<span style="color: #000000;">(</span> oGet <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cPict := <span style="color: #ff0000;">"012345678912"</span><br /><br /> oGet:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">(</span> cPict <span style="color: #000000;">)</span><br /> oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br /> </div>[/code:1wf3p14z]
Regards, saludos.[/quote:1wf3p14z]
[size=200:1wf3p14z]NO[/size:1wf3p14z]
I must write a string no a price
I must write also "." sample: 36.67.80.7.3.23.45 and not PICTURE "@R 99,999,999,999.99"
because the tget control is read by a procedure that finds the numbers in the xbrowse and colors them as you can see here
oGet:bChange := {|nKey|(Chr(nKey)$"0123456789.")}
oGet:bKeyDown := { | nKey |(oGet:assign(), ActiveNavigator(cVar,oBrw,oItem2:lChecked)) }
[img:1wf3p14z]https://i.postimg.cc/Dyr6MKKx/jjjjj.png[/img:1wf3p14z] |
tget only numbers and ""."" | [code=fw:1d2j2ong]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99.99.99.9.9.99.99"</span> <span style="color: #B900B9;">//-> 36.67.80.7.3.23.45</span><br /> </div>[/code:1d2j2ong]
[url:1d2j2ong]https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/[/url:1d2j2ong]
Regards, saludos. |
tget only numbers and ""."" | [quote="karinha":3d44ulqo][code=fw:3d44ulqo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99.99.99.9.9.99.99"</span> <span style="color: #B900B9;">//-> 36.67.80.7.3.23.45</span><br /> </div>[/code:3d44ulqo]
[url:3d44ulqo]https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/[/url:3d44ulqo]
Regards, saludos.[/quote:3d44ulqo]
I not know the config of string
Can be 36.6 or 45.66 .78 or more numbers
Chat Is space(100)
Perhaps U not understood my problem |
tget only numbers and ""."" | [code=fw:5i73eca0]<div class="fw" id="{CB}" style="font-family: monospace;">oGet:<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">{</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> chr<span style="color: #000000;">(</span> k <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">".0123456789"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:5i73eca0] |
tget only numbers and ""."" | [quote="nageswaragunupudi":1gkn7m53][code=fw:1gkn7m53]<div class="fw" id="{CB}" style="font-family: monospace;">oGet:<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">{</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> chr<span style="color: #000000;">(</span> k <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">".0123456789"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:1gkn7m53][/quote:1gkn7m53]
Thanks rao |
tget to support 2 bytes word winxp themes | As title,
Support 2 byte words /languages and winxp themes, it seems call win32 api TEdit .
Could convert the gets into fivewin ?
tget needs support:
1. 2 bytes word/ languages as Chinse .
2. winXP themes languages as Chinse .
3. unicode
Regards
shuming Wang |
tget to support 2 bytes word winxp themes | Do they support PICTUREs in Gets ? |
tget to support 2 bytes word winxp themes | Yes!
Shuming Wang |
tget to support 2 bytes word winxp themes | Shuming,
Then, why don't you review their source code and modify FWH Class TGet for your needs ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
tget to support 2 bytes word winxp themes | Antonio,
Sorry the last version 'tget not support Chinese word either, The cusor jump and display disorder code, the early versions <2.06 works well.
I have no ability to enhance tget . <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Shuming Wang[/img] |
tget to support 2 bytes word winxp themes | Antonio,
A video file made shows theme mode tget face Chinese words input. mian problem is the cursor more right the positon .
<!-- m --><a class="postlink" href="http://www.xtech.com.cn/down/theme-tget.rar">http://www.xtech.com.cn/down/theme-tget.rar</a><!-- m -->
Regards!
Shuming Wang |
tget to support 2 bytes word winxp themes | Shuming,
Please email me that EXE and PRG as a ZIP file and we will try to fix it here, thanks |
tget to support 2 bytes word winxp themes | Antonio,
Any normal tget with sring type var input under WinXP themes mode will show this .
Best Regards!
Shuming Wang |
tget to support 2 bytes word winxp themes | Shuming,
I send you an email |
tget to support 2 bytes word winxp themes | [quote="Antonio Linares":y738rbdf]Shuming,
I send you an email[/quote:y738rbdf]
Hi Antonio,
Please add me for this plan.
Regards,
Richard |
tget to support 2 bytes word winxp themes | We have already installed NJStar to emulate Chinese characters.
What should we type to reproduce the error ? thanks! |
tget to support 2 bytes word winxp themes | Antonio,
Or create a temp 'tget32' like textbox class, direct call C function ,reach the basic use : pictures char upper ,lower ,numeric masks ,valid ,when .
That 's enough for us input Chinse words 'Get under XP themes '.
Thanks!
Shuming Wang |
tget to support 2 bytes word winxp themes | Shuming,
Please modify Class TGet to call ::oGet:Left() after every typed char |
tgraph - FWHGETPRTCOORS() ??? | Pessoal como consigo esta função:
FWHGETPRTCOORS()
Estou tentando compilar o exemplo M_TEST da TGRAPH e pede esta função.
Grato |
tgraph - FWHGETPRTCOORS() ??? | NPI, de este lado funciona. |
tgraph - FWHGETPRTCOORS() ??? | grato |
tgraph and Y series alignment | hi,
I'm working with TGRAPH class and have this graph:
[img:2a08cytz]https://i.imgur.com/h2ttF3y.jpg[/img:2a08cytz]
I would like get this kind of alignment:
[img:2a08cytz]https://i.imgur.com/L4fC9zz.jpg[/img:2a08cytz]
is it possible?
thanks |
tgraph and Y series alignment | Did You define a BAR-SEPERATOR <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[b:2liljf85]oGraph:nBarSep := nVal // Bar Separator[/b:2liljf85]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
tgraph and Y series alignment | I Uwe
I would like to rotate the text like 2nd picture |
tgraph and Y series alignment | I think You have to define a extra font
The tested fontstring ( saved to a DBF-field )
cBFont[3] := {"AcmeFont",0,-13,.F.,.F., [color=#0000FF:yjj06n93][b:yjj06n93]900[/b:yjj06n93][/color:yjj06n93] ,0,,.F.,.F.,.F.,0,3,2,1,,2}
I save the fontstring cBFont[3] to a DBF-field like
ACTION ( aFont := CHOOSEFONT(), ;
oFont0 := [color=#0000FF:yjj06n93]BUILDFONT( aFont )[/color:yjj06n93] , ;
IIF( aFont[ LF_FACENAME ] <> NIL, ;
( DeleteObject(oBFont[3]), ;
cBFont[3] := [color=#0000FF:yjj06n93]FontToText(oFont0)[/color:yjj06n93] , ;
oBFont[3] := oFont0, ;
oFGet[3]:SetFont(oBFont[3]), ; // control
oGet[5]:Refresh(), ; // control
oFGet[3]:Refresh(), ; // control
DeleteObject(oFont0), ;
oGraph:aFont[3] := oBFont[3], ;
ograph:Refresh() ), NIL ) ) ;
The function BUILDFONT( aFont )
[code=fw:yjj06n93]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> BUILDFONT<span style="color: #000000;">(</span> aFont <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">(</span> aFont<span style="color: #000000;">[</span> LF_FACENAME <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No Font selected !"</span>,<span style="color: #ff0000;">"Break"</span> <span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><span style="color: #00C800;">ENDIF</span> <br /><br /><span style="color: #00C800;">RETURN</span> TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> aFont<span style="color: #000000;">[</span> LF_FACENAME <span style="color: #000000;">]</span>,; <br />,; <br />aFont<span style="color: #000000;">[</span> LF_HEIGHT <span style="color: #000000;">]</span>,; <br />.f.,; <br />!<span style="color: #000000;">(</span> aFont<span style="color: #000000;">[</span> LF_WEIGHT <span style="color: #000000;">]</span> == <span style="color: #000000;">400</span> <span style="color: #000000;">)</span>,; <br />aFont<span style="color: #000000;">[</span> LF_ESCAPEMENT <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_ORIENTATION <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_WEIGHT <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_ITALIC <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_UNDERLINE <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_STRIKEOUT <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_CHARSET <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_OUTPRECISION <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_CLIPPRECISION <span style="color: #000000;">]</span>,; <br />aFont<span style="color: #000000;">[</span> LF_QUALITY <span style="color: #000000;">]</span>,; <br />,; <br />aFont<span style="color: #000000;">[</span> LF_PITCHANDFAMILY <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br /> </div>[/code:yjj06n93]
Fonts are defined like
[color=#0000FF:yjj06n93]
oGraph:aFont[1] := aFont[1] // Title
oGraph:aFont[2] := aFont[2] // xFont
oGraph:aFont[3] := aFont[3] // yFont
oGraph:aFont[4] := aFont[4] // Legends
oGraph:aFont[5] := aFont[5] // Subtitle
oGraph:aFont[6] := aFont[6] // xTitle
oGraph:aFont[7] := aFont[7] // y Title
oGraph:aFont[8] := aFont[8] // Values[/color:yjj06n93]
[size=150:yjj06n93][b:yjj06n93]Just a quick test ![/b:yjj06n93][/size:yjj06n93]
[img:yjj06n93]http://www.pflegeplus.com/IMAGES/Graph40.jpg[/img:yjj06n93]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
tgraph and Y series alignment | hi Uwe, thank you, I try this:
[code=fw:bvrrj255]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontY <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Courier new"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-8</span> <br /> <br /> oFont45 := oFontY:<span style="color: #000000;">Rotate</span><span style="color: #000000;">(</span> <span style="color: #000000;">450</span> <span style="color: #000000;">)</span><br /> mieiFont<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> := oFont45<br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1080</span>,<span style="color: #000000;">600</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont;<br /> <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br /> WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Periodo di riferimento: "</span>+DtoC<span style="color: #000000;">(</span>m_get<span style="color: #000000;">[</span><span style="color: #000000;">01</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">" - "</span>+dtoc<span style="color: #000000;">(</span>m_get<span style="color: #000000;">[</span><span style="color: #000000;">02</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// grafico 1</span><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">1</span> GRAPH oGraph1;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">80</span> <span style="color: #0000ff;">PIXEL</span> ; <br /> TYPE GRAPH_TYPE_BAR;<br /> YVALUES XGRID XVALUES<br /> <br /> oGraph1:<span style="color: #000000;">aSeries</span> = <span style="color: #000000;">{</span><span style="color: #000000;">{</span> m_get<span style="color: #000000;">[</span><span style="color: #000000;">21</span><span style="color: #000000;">]</span>, CLR_CYAN <span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> oGraph1:<span style="color: #000000;">aYVals</span> = aResiYval<br /> oGraph1:<span style="color: #000000;">aData</span> = <span style="color: #000000;">{</span>aResiPerc<span style="color: #000000;">}</span><br /> oGraph1:<span style="color: #000000;">nClrX</span> = CLR_GREEN<br /> oGraph1:<span style="color: #000000;">nClrY</span> = CLR_RED<br /> oGraph1:<span style="color: #000000;">nMinVal</span> = <span style="color: #000000;">0</span><br /> oGraph1:<span style="color: #000000;">lDegrade</span> = .t.<br /> oGraph1:<span style="color: #000000;">cTitle</span> := m_get<span style="color: #000000;">[</span><span style="color: #000000;">21</span><span style="color: #000000;">]</span>+<span style="color: #ff0000;">" %"</span><br /> oGraph1:<span style="color: #000000;">cToolTip</span> = <span style="color: #000000;">{</span>|oGph,nSerie,nPos,nVal| oGraph1:<span style="color: #000000;">aYVals</span><span style="color: #000000;">[</span>nPos<span style="color: #000000;">]</span>+<span style="color: #ff0000;">": "</span>+cValToChar<span style="color: #000000;">(</span><span style="color: #0000ff;">Round</span><span style="color: #000000;">(</span>nVal,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oGraph1:<span style="color: #000000;">SetFonts</span><span style="color: #000000;">(</span>mieiFont<span style="color: #000000;">)</span></div>[/code:bvrrj255]
but nothing..
I change metod paint in tgraph.prg
[code=fw:bvrrj255]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span> nTop, nLeft, nBottom, nRight <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGraph<br /><br /> ...<br /> <span style="color: #00C800;">local</span> oFont45<br />oFont45 := ::<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Rotate</span><span style="color: #000000;">(</span> <span style="color: #000000;">450</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> lyVal .AND. Len<span style="color: #000000;">(</span>::<span style="color: #000000;">aYVals</span><span style="color: #000000;">)</span>><span style="color: #000000;">0</span> <span style="color: #B900B9;">// Show yLabels</span><br /> nI := nLeft + nWide<br /> <span style="color: #00C800;">FOR</span> nJ := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">nMax</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />* ::<span style="color: #0000ff;">Say</span><span style="color: #000000;">(</span>nBottom+ <span style="color: #000000;">5</span>, nI-nDeep, ::<span style="color: #000000;">aYVals</span><span style="color: #000000;">[</span>nJ<span style="color: #000000;">]</span>, ::<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>, ::<span style="color: #000000;">nClrY</span>, ::<span style="color: #000000;">nTCent</span><span style="color: #000000;">)</span><br /> ::<span style="color: #0000ff;">Say</span><span style="color: #000000;">(</span>nBottom+ <span style="color: #000000;">5</span>, nI-nDeep, ::<span style="color: #000000;">aYVals</span><span style="color: #000000;">[</span>nJ<span style="color: #000000;">]</span>, oFont45, ::<span style="color: #000000;">nClrY</span>, ::<span style="color: #000000;">nTCent</span><span style="color: #000000;">)</span><br /> nI += nWide<br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> </div>[/code:bvrrj255]
that works
[img:bvrrj255]https://i.imgur.com/ZGIYMUr.jpg[/img:bvrrj255]
it seems that
[code=fw:bvrrj255]<div class="fw" id="{CB}" style="font-family: monospace;">oGraph1:<span style="color: #000000;">SetFonts</span><span style="color: #000000;">(</span>mieiFont<span style="color: #000000;">)</span></div>[/code:bvrrj255] does not work
why? |
tgraph and Y series alignment | damianodec ,
Some years ago[color=#0000FF:2yvadrru] [b:2yvadrru]2014[/b:2yvadrru], [/color:2yvadrru]I created a graph-designer
I can define anything I want ( visual design ) like fonts, style colors...
There was nothing wrong with the font or class TGraph.
I want to update this tool because of many new possible things during this time
and screen adjustment for modern monitors. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
But in the moment I'm jumping around between different topics
that means it will still take some time for the update.
[img:2yvadrru]http://www.pflegeplus.com/IMAGES/Graph31.jpg[/img:2yvadrru]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
tgraph and Y series alignment | damianodec ,
I got it working using the original FWH-sample graph.prg
I noticed there is [color=#0000FF:1x68e9rt][b:1x68e9rt]NO[/b:1x68e9rt][/color:1x68e9rt] value to define the text-startposition ([color=#0000FF:1x68e9rt] [b:1x68e9rt]yFont[/b:1x68e9rt][/color:1x68e9rt] ) at the bottom
[img:1x68e9rt]http://www.pflegeplus.com/IMAGES/Graph32.jpg[/img:1x68e9rt]
[code=fw:1x68e9rt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nType <span style="color: #B900B9;">// Graph Type</span><br />nDegrade <span style="color: #B900B9;">// Degrade bars color 0, 1, 2</span><br /><br />l3D <span style="color: #B900B9;">// Show 3D</span><br />lxGrid <span style="color: #B900B9;">// Show Grid</span><br />lyGrid <span style="color: #B900B9;">// Show Grid</span><br />lDotted <span style="color: #B900B9;">// Grid Dotted</span><br />lxVal <span style="color: #B900B9;">// Show xValues</span><br />lyVal <span style="color: #B900B9;">// Show yValues</span><br />nBarD <span style="color: #B900B9;">// Deep bar</span><br />lTitle <span style="color: #B900B9;">// Show Title</span><br />lLegends <span style="color: #B900B9;">// Show Legends</span><br />cTitle <span style="color: #B900B9;">// Graph Title</span><br />cPicture <span style="color: #B900B9;">// Mask values</span><br />aSeries <span style="color: #B900B9;">// Series</span><br />aData <span style="color: #B900B9;">// Data</span><br />aSTemp <span style="color: #B900B9;">// Series</span><br />aDTemp <span style="color: #B900B9;">// Data</span><br />aYVals <span style="color: #B900B9;">// yValues</span><br />aYTemp <span style="color: #B900B9;">// yValues</span><br />aFont <span style="color: #B900B9;">// Title, xFont, yFont, Legends</span><br /> <span style="color: #B900B9;">// Subtitle, xTitle, yTitle, Values</span><br />nClrT <span style="color: #B900B9;">// Color titles</span><br />nClrX <span style="color: #B900B9;">// Color x labels</span><br />nClrY <span style="color: #B900B9;">// Color y labels</span><br />nClrL <span style="color: #B900B9;">// Color legends</span><br />nClrV <span style="color: #B900B9;">// Color values</span><br />nClrST <span style="color: #B900B9;">// Color subtitle</span><br />nClrXT <span style="color: #B900B9;">// Color xTitle</span><br />nClrYT <span style="color: #B900B9;">// Color yTitle</span><br />nPieX <span style="color: #B900B9;">// Pie graph pos</span><br />nPieSt <span style="color: #B900B9;">// Start pie (angle)</span><br />nPoint <span style="color: #B900B9;">// Point type</span><br />nBarSep <span style="color: #B900B9;">// Bar Separator</span><br />nXRanges <span style="color: #B900B9;">// n Ranges</span><br />nValues <span style="color: #B900B9;">// Pie values (Serie/Period)</span><br />lViewVal <span style="color: #B900B9;">// View values</span><br />nClr, hPen, hOldPen <span style="color: #B900B9;">// Pen handles</span><br />nPenWidth <span style="color: #B900B9;">// Graph line pen width</span><br />lBorders <span style="color: #B900B9;">// Borders</span><br />lcTitle <span style="color: #B900B9;">// Center title</span><br />nClrGrid <span style="color: #B900B9;">// Grid color</span><br />nClrBack <span style="color: #B900B9;">// Background color</span><br />nClrBLeg <span style="color: #B900B9;">// Back legend color</span><br />cBitmap <span style="color: #B900B9;">// Background bitmap</span><br />cSubTit <span style="color: #B900B9;">// Subtitle</span><br />cTitX <span style="color: #B900B9;">// xTitle</span><br />cTitY <span style="color: #B900B9;">// yTitle</span><br />nMaxVal <span style="color: #B900B9;">// Max Value</span><br />nMinVal <span style="color: #B900B9;">// Min Value</span><br />lLine <span style="color: #B900B9;">// Yellow line</span><br />lPopUp <span style="color: #B900B9;">// PopUp menu</span><br />lSelView <span style="color: #B900B9;">// Select view option</span><br />lSelBack <span style="color: #B900B9;">// Select back option</span><br />lFull <span style="color: #B900B9;">// All Graph Area</span><br />nLanguage <span style="color: #B900B9;">// Language (1-English, 2-Spanish, 3-...)</span><br />aSTitle <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">{</span>.T.,.T.,.T.,.T.<span style="color: #000000;">}</span> <span style="color: #B900B9;">// Shadow titles</span><br /><br />nTRight <span style="color: #B900B9;">// Right align</span><br />nTLeft <span style="color: #B900B9;">// Left align</span><br />nTCent <span style="color: #B900B9;">// Cent align</span><br />oPrn <span style="color: #B900B9;">// Printer object by Galvez</span><br />lBordLeg <span style="color: #0000ff;">INIT</span> .T. <span style="color: #B900B9;">// Legend border by dREHER</span><br /> </div>[/code:1x68e9rt]
Add to the sample
[code=fw:1x68e9rt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SET_FONTS<span style="color: #000000;">(</span> oGraph <span style="color: #000000;">)</span> <span style="color: #B900B9;">// FONTS on INIT !!!</span><br /><br />SET RESOURCES <span style="color: #0000ff;">TO</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;">FUNCTION</span> SET_FONTS<span style="color: #000000;">(</span> oGraph <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// oGraph:aFont[1] := aFont[1] // Title</span><br /><span style="color: #B900B9;">// oGraph:aFont[2] := aFont[2] // xFont</span><br /><span style="color: #B900B9;">// oGraph:aFont[3] := aFont[3] // yFont</span><br /><span style="color: #B900B9;">// oGraph:aFont[4] := aFont[4] // Legends</span><br /><span style="color: #B900B9;">// oGraph:aFont[5] := aFont[5] // Subtitle</span><br /><span style="color: #B900B9;">// oGraph:aFont[6] := aFont[6] // xTitle</span><br /><span style="color: #B900B9;">// oGraph:aFont[7] := aFont[7] // y Title</span><br /><span style="color: #B900B9;">// oGraph:aFont[8] := aFont[8] // Values</span><br /><br /><span style="color: #B900B9;">// METHOD New( </span><br /><span style="color: #B900B9;">// 1 cFaceName, </span><br /><span style="color: #B900B9;">// 2 nWidth, </span><br /><span style="color: #B900B9;">// 3 nHeight, </span><br /><span style="color: #B900B9;">// 4 lFromUser,;</span><br /><span style="color: #B900B9;">// 5 lBold, </span><br /><span style="color: #B900B9;">// 6 nEscapement, </span><br /><span style="color: #B900B9;">// 7 nOrientation, </span><br /><span style="color: #B900B9;">// 8 nWeight,</span><br /><span style="color: #B900B9;">// 9 lItalic,;</span><br /><span style="color: #B900B9;">// 10 lUnderline, </span><br /><span style="color: #B900B9;">// 11 lStrikeOut, </span><br /><span style="color: #B900B9;">// 12 nCharSet, </span><br /><span style="color: #B900B9;">// 13 nOutPrecision,;</span><br /><span style="color: #B900B9;">// 14 nClipPrecision, </span><br /><span style="color: #B900B9;">// 15 nQuality, </span><br /><span style="color: #B900B9;">// 16 oDevice, </span><br /><span style="color: #B900B9;">// 17 nPitchFamily )</span><br /><span style="color: #B900B9;">// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 </span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span>, .F., .T., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, ,<span style="color: #000000;">34</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-18</span>, .F., .T., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span>, .F., .T., <span style="color: #000000;">900</span>, <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, ,<span style="color: #000000;">34</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span>, .F., .T., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span>, .F., .F., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span>, .F., .F., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-18</span>, .F., .T., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, ,<span style="color: #000000;">34</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span> := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Arial"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-20</span>, .F., .T., <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span>, , .F., .F., .F., <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, ,<span style="color: #000000;">34</span> <span style="color: #000000;">)</span><br /><br />oGraph:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1x68e9rt]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
tgraph and Y series alignment | hi Uwe
thank you, but I have 3 graph on dialog I would like TFont():New( "Arial", 0, -14, .F., .T., 900, 0, , .F., .F., .F., 0, 3, 2, 1, ,34 ) on the first graph |
tgraph and Y series alignment | A Simple way to do:
[code=fw:qpeg6p2y]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> oVert := oGraph:<span style="color: #000000;">aFont</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Rotate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oGraph:<span style="color: #000000;">SetFonts</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, oVert <span style="color: #000000;">}</span> <span style="color: #000000;">)</span>, ;<br /> oVert:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:qpeg6p2y]
oGraph refers to your first Graph. |
tgraph and Y series alignment | thank you Mr. Rao and Mr Uwe |
tgraph and Y series alignment | You cannot split the text with different fonts for
[color=#0000FF:108i6rcc]oGraph:aYVals := { "Jan", "Feb", "Mar", "Apr", "May" } [/color:108i6rcc]
but You can paint / add extra images ( with possible action ) or text to the graph
[img:108i6rcc]http://www.pflegeplus.com/IMAGES/Graph33.jpg[/img:108i6rcc]
disable NOBORDER during design <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> to see the painted areas
[code=fw:108i6rcc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"TTitle.ch"</span><br />...<br />...<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SET_VAL<span style="color: #000000;">(</span> oGraph, oDlg <span style="color: #000000;">)</span><br /><br />SET RESOURCES <span style="color: #0000ff;">TO</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;">FUNCTION</span> SET_VAL<span style="color: #000000;">(</span> oGraph, oDlg <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oText1, oTitle1, oTitle2<br /><br />@ <span style="color: #000000;">450</span>, <span style="color: #000000;">68</span> <span style="color: #0000ff;">TITLE</span> oTitle1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT NOBORDER<br />@ <span style="color: #000000;">57</span>, <span style="color: #000000;">75</span> TITLETEXT oText1 <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Test 1"</span> <span style="color: #0000ff;">FONT</span> oFont90 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span><br />@ <span style="color: #000000;">57</span>, <span style="color: #000000;">160</span> TITLETEXT oText1 <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Test 2"</span> <span style="color: #0000ff;">FONT</span> oFont90 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">16711680</span><br />@ <span style="color: #000000;">57</span>, <span style="color: #000000;">245</span> TITLETEXT oText1 <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Test 3"</span> <span style="color: #0000ff;">FONT</span> oFont90 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">32768</span><br />@ <span style="color: #000000;">57</span>, <span style="color: #000000;">330</span> TITLETEXT oText1 <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Test 4"</span> <span style="color: #0000ff;">FONT</span> oFont90 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">16711935</span><br />@ <span style="color: #000000;">57</span>, <span style="color: #000000;">415</span> TITLETEXT oText1 <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Test 5"</span> <span style="color: #0000ff;">FONT</span> oFont90 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">128</span><br /><br />@ <span style="color: #000000;">95</span>, <span style="color: #000000;">540</span> <span style="color: #0000ff;">TITLE</span> oTitle2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT NOSHADOW NOBORDER <br />oTitle2:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br />@ <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle2 BITMAP <span style="color: #ff0000;">"Favorite.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">60</span> ;<br />TRANSPARENT ANIMA ; <br /><span style="color: #0000ff;">ACTION</span> YOUR_ACTION<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />...<br />...<br /> </div>[/code:108i6rcc]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
tgraph fwh15.01 | Compañeros buenas tardes
he estado haciendo algo con tgraph y me encontre con que siempre me da un error en el método MouseMove, lo solucioné poniendo una variable local y midiendo un limite si a alguien le sirve
[code=fw:3mlpn4e8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> MouseMove<span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGraph<br /><br /> <span style="color: #00C800;">local</span> nAt := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">local</span> nLen := <span style="color: #000000;">0</span> <span style="color: #B900B9;">//esto aumente</span><br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">aBarCoors</span> <span style="color: #000000;">)</span><br /> nAt = AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aBarCoors</span>,;<br /> <span style="color: #000000;">{</span> | aCoors | nRow <= aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> .and. ;<br /> nRow >= aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> .and. ;<br /> nCol >= aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> .and. ;<br /> nCol <= aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + aCoors<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> nLen = len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aData</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//aumentado</span><br /> <span style="color: #00C800;">if</span> nAt > nLen <span style="color: #B900B9;">//aumentado</span><br /> nAt = nLen <span style="color: #B900B9;">//aumentado</span><br /> <span style="color: #00C800;">else</span> <span style="color: #B900B9;">//aumentado</span><br /> <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">cToolTip</span> := <span style="color: #000000;">{</span> | nAt | AllTrim<span style="color: #000000;">(</span> Transform<span style="color: #000000;">(</span> ::<span style="color: #000000;">aData</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>,;<br /> <span style="color: #ff0000;">"999,999,999.99"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> ::<span style="color: #000000;">ShowToolTip</span><span style="color: #000000;">(</span> nRow, nCol, Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">cToolTip</span>, nAt <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> end<span style="color: #B900B9;">//aumentado</span><br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #000000;">DestroyTooltip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3mlpn4e8]
el error era el siguiente al pasar el mouse en el grafico me daba
Application
===========
Path and name: d:\sistemas\josenet\bi\josenet_bi.exe (32 bits)
Size: 5,213,696 bytes
Compiler version: Harbour 3.2.0dev (Rev. 18917)
FiveWin Version: FWH 15.01
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 22 secs
Error occurred at: 23/09/2015, 13:26:57
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... } length: 12
[ 2] = N 13
Stack Calls
===========
Called from: .\source\classes\TGRAPH.PRG => (b)TGRAPH_MOUSEMOVE( 1139 )
Called from: .\source\classes\TGRAPH.PRG => TGRAPH:MOUSEMOVE( 1140 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\CONTROL.PRG => TGRAPH:HANDLEEVENT( 1733 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 286 )
Called from: josenet_bi.prg => TWG_BIGRAPH:DIALOG_ANIOMES( 197 )
Called from: josenet_bi.prg => (b)TWG_BI_MAKEMAIN( 86 )
Called from: josenet_bi.prg => (b)TWG_BI_MAKEMAIN( 104 )
Called from: .\source\classes\TRBTN.PRG => TRBTN:CLICK( 715 )
Called from: .\source\classes\TRBTN.PRG => TRBTN:LBUTTONUP( 924 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1723 )
Called from: .\source\classes\TRBTN.PRG => TRBTN:HANDLEEVENT( 1597 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3450 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1152 )
Called from: josenet_bi.prg => TWG_BI:MAKEMAIN( 155 )
Called from: josenet_bi.prg => MAIN( 26 )
System
======
CPU type: Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz 1800 Mhz
Hardware memory: 3976 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Windows total applications running: 5
1 ,
2 , C:\WINDOWS\SYSTEM32\shcore.dll
3 , C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb
4 , d:\sistemas\josenet\bi\josenet_bi.exe
5 DDE Server Window, C:\WINDOWS\SYSTEM32\OLE32.DLL
Variables in use
================
Procedure Type Value
==========================
(b)TGRAPH_MOUSEMOVE
Param 1: O Class: ERROR
TGRAPH:MOUSEMOVE
saludos
Wilson |
tgraph fwh15.01 | Wilson,
gracias por compartirlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
tgraph problem end oDlg and print | When I x out of a graph presentation it ends the oGraph but it leaves the underlying dialog. How can I get rid of the both with one x out. Here is the code.[code:33kvpgq0]
DEFINE DIALOG oDlg;
SIZE 750, 500
@ 1, 1 GRAPH oGraph;
SIZE 350, 200;
TYPE nType;
@ 15,14 say alltrim(mcompname)+"-"+cTitle
@ 0,01 Button "Print" action (oDlg:print())
ACTIVATE DIALOG oDlg;
CENTER
[/code:33kvpgq0]Item 2...I use the oDlg:print() to print the graph. Is there a way to size the print and center it on the paper. Now is very small and in the left corner of the paper. |
tgraph problem end oDlg and print | Item 1Change this line to:> @ 0,01 Button "Print" action (oDlg:print(), oDlg:end()) Item 2See this message thread:<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=12339&highlight=print+scale">http://forums.fivetechsoft.com/viewtopi ... rint+scale</a><!-- m -->James |
tgraph problem end oDlg and print | James:You said:> @ 0,01 Button "Print" action (oDlg:print(), oDlg:end()) Putting the oDlg:end() kills the graph after printing.Maybe I didn't make it clear the "X" in the upper right corner won't kill the oDlg when clicked it kills the oGraph. How can I get them to both go when the X is clicked.Item 2 you said>See this message thread: <!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=12339&highlight=print+scale">http://forums.fivetechsoft.com/viewtopi ... rint+scale</a><!-- m -->Nothing there works. Just keeps printing small graphic. Much smaller then whats on the screen. |
tgraph problem end oDlg and print | Harvey,>Maybe I didn't make it clear the "X" in the upper right corner won't kill the oDlg when clicked it kills the oGraph. How can I get them to both go when the X is clicked. Sorry, I misuderstood. Here are two options. Use a valid clause to end the dialog.Or, better in my opion, is to remove the X button. In Workshop, double click on the dialog, and under the "Dialog Style" group, uncheck the "system menu" item.Regards,James |
tgraph problem end oDlg and print | The dialog is created with code. How can I turn off the sysmenu when dialog created with code?James I really appreciate you assistance.Thanks |
tgraph problem end oDlg and print | [code:edh9aw6q] local oDlg, nStyle :=nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION )
define dialog oDlg style nStyle
activate dialog oDlg[/code:edh9aw6q]James |
tgraph problem end oDlg and print | James:This is really dumb.... <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> After the click on X there was no return. All I need to do was add a return nil and the oGraph and oDlg are gone on one click.real dumb on my part.Still can't get the graph to print in a reasonable size. Any new ideas?HArvey |
tgraph problem end oDlg and print | Harvey,>After the click on X there was no return.Glad you found a solution. I would still recommend not leaving the X button on any dialog. The users don't really know what it means, OK or Cancel.>Still can't get the graph to print in a reasonable size. Any new ideas? You tried changing nScale and there was no difference in the print size?James |
tgraph problem end oDlg and print | Harvey,Why don't you just use the TGraph Print method?METHOD Print( oPrn, nTop, nLeft, nWidth, nHeight ) CLASS TGraphRegards,James |
tgraph problem end oDlg and print | James:> Print( oPrn, nTop, nLeft, nWidth, nHeight ) CLASS TGraph Perfect. Harvey |
tgraph problem end oDlg and print | Hello Harvey,this code is working for me.Regards,Otto[code:yf82shby]function graphprint (oGraph,oReport)
local oPrn, nTop := 3.0, nLeft := 2.0, nHeight := 9, nWidth := 16
oPrn:=PrintBegin("Aufloesung",.F.,.T.,,.T.)
oPrn:SetPortrait()
oPrn:Cmtr2Pix(@nTop , @nLeft)
oPrn:Cmtr2Pix(@nWidth, @nHeight)
sysRefresh()
oPrn:End()
nTop := INT(nTop)
nLeft := INT(nLeft)
nWidth := INT(nWidth)
nHeight:= INT(nHeight)
/*Page
oGraph:Print( oPrn, nTop, nLeft, nWidth, nHeight )
PageEnd()
PrintEnd()
DeleteObject(oPrn)
*/
oGraph:Print( oReport:oDevice,nTop,nLeft,nWidth,nHeight )
return NIL
[/code:yf82shby][img:yf82shby]http://www.atzwanger.com/fw/statistik.jpg[/img:yf82shby] |
tgraph problem end oDlg and print | Otto;
Hi.
How about creating and printing the graph without first displaying on the screen? That is, create and print a tgraph directly to the printer either on a treport or a tprinter object without showing the graph on a window or dialog.
Can you help with that?
Thank you,
Reinaldo. |
tgraph problem end oDlg and print | Hi Reinaldo,
If Otto doesn't have an answer, you might try a trick. Draw the window offscreen (negative coordinates) then print, then close the window.
James |
tgraph problem end oDlg and print | James;
Thank you.
Do you mean something like:
[code=fw:2mq62blt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> oPie<br /><span style="color: #00C800;">local</span> oWnd := tWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">-500</span>,<span style="color: #000000;">-550</span>, <span style="color: #000000;">-50</span>,<span style="color: #000000;">-30</span> <span style="color: #000000;">)</span><br /> <br /> oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oPie := TGraph<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oWnd, nWidth, nHeight, .f., .t. <span style="color: #000000;">)</span><br /><br /> with object oPie<br /> :<span style="color: #000000;">cTitle</span> := <span style="color: #ff0000;">"Malignancy % Found On Sample"</span><br /> :<span style="color: #000000;">cSubTit</span> := alltrim<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Specimen</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Cancer %"</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>,<span style="color: #000000;">200</span><span style="color: #000000;">)</span>, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">100.00</span> - ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Non-Cancer"</span>, <span style="color: #B900B9;">/*RGB( 200, 50,200)*/</span>CLR_WHITE, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> end<br /><br /> oPie:<span style="color: #00C800;">Print</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oPrn</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, b<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, b<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> oPie:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />...<br /> </div>[/code:2mq62blt]
I get this runtime error:
[quote:2mq62blt] Error description: Error BASE/1087 Argument error: --
Args:
[ 1] = U
Stack Calls
===========
Called from: window.prg => (b)TWINDOW:TWINDOW(460)
Called from: window.prg => TWINDOW:RELEASEDC(0)
Called from: tgraph.prg => TGRAPH:PRINT(1505)[/quote:2mq62blt]
Help?
Thank you,
Reinaldo. |
tgraph problem end oDlg and print | Reinaldo,
What is line 460 of your version of TWindow?
Does it work if the window coordinates are all positive?
Try a sysRefresh() after oPie():print.
If neither of those work, how about providing a small self contained sample we can test.
James |
tgraph problem end oDlg and print | I think window is to be activated after creating the Graph control.
Window can be activated in hidden mode. ACTIVATE WINDOW HIDDEN. I don't know if this helps. |
tgraph problem end oDlg and print | Reinaldo,
OK, here is a crude working example. The acual pies are not showing but that is probably due to my made-up numbers.
James
[code=fw:118dy0em]<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;">"tgraph.ch"</span><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnd<br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Graph printing test"</span><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> doIt<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">function</span> doIt<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnd<br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd<br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> doPie<span style="color: #000000;">(</span>oWnd<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">function</span> doPie<span style="color: #000000;">(</span>oWnd<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oPie<br /> <span style="color: #00C800;">local</span> a:=<span style="color: #000000;">{</span><span style="color: #000000;">}</span>,b:=<span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> nWidth:=<span style="color: #000000;">500</span>, nHeight:=<span style="color: #000000;">500</span><br /><br /> oWnd:<span style="color: #000000;">hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> aadd<span style="color: #000000;">(</span>a,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> aadd<span style="color: #000000;">(</span>a,<span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> aadd<span style="color: #000000;">(</span>b,<span style="color: #000000;">20</span><span style="color: #000000;">)</span><br /> aadd<span style="color: #000000;">(</span>b,<span style="color: #000000;">20</span><span style="color: #000000;">)</span><br /><br /> oPie := TGraph<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oWnd, nWidth, nHeight, .f., .t. <span style="color: #000000;">)</span><br /><br /> with object oPie<br /> :<span style="color: #000000;">cTitle</span> := <span style="color: #ff0000;">"Malignancy % Found On Sample"</span><br /> :<span style="color: #000000;">cSubTit</span> := alltrim<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Specimen"</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">14</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Cancer %"</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>,<span style="color: #000000;">200</span><span style="color: #000000;">)</span>, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">100.00</span> - <span style="color: #000000;">14</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Non-Cancer"</span>, CLR_BLUE, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> end<br /><br /> PrintGraph<span style="color: #000000;">(</span> oPie, a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, b<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, b<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /> oPie:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> PrintGraph<span style="color: #000000;">(</span>oGraph, nTop, nLeft, nWidth, nHeight<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oPrn<br /> <span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Impresión de gráficos"</span> <span style="color: #B900B9;">//PREVIEW</span><br /> oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">(</span>@nTop , @nLeft<span style="color: #000000;">)</span><br /> oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">(</span>@nWidth, @nHeight<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">PAGE</span><br /> oGraph:<span style="color: #00C800;">Print</span><span style="color: #000000;">(</span> oPrn, nTop, nLeft, nWidth, nHeight <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDPAGE</span><br /> <span style="color: #0000ff;">ENDPRINT</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// eof </span></div>[/code:118dy0em] |
tgraph problem end oDlg and print | James and Neogs;
Thank you for your replies. I'm sorry I was off-line over the weekend. I found a way to solve the problem. Actually I'm creating and displaying the window, but for some reason, it doesn't show. Maybe the coordinates are so small, it shows but it is invisible, or maybe the procedure runs so fast, that it creates and :end()'s the window before it can be catch by the eye... Bottom line is that the window doesn't display and I'm not sure why. But it works.
You can see the output here:
[url:2wonwhzr]http://ssfl.dynalias.com/utilities/Printing_transcription.pdf[/url:2wonwhzr]
And, here is the code:
[code=fw:2wonwhzr]<div class="fw" id="{CB}" style="font-family: monospace;">*--------------------------------------------------------------------------------------------------------------------------<br /><span style="color: #00C800;">METHOD</span> PrintPieCharts<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">Class</span> PathologyTranscription<br /><span style="color: #00C800;">local</span> oPie<br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> a, b<br /><span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> nLastLine := ::<span style="color: #000000;">nLastLine</span> - <span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> nWidthInInchs, nhrzFctr, nVrtFctr<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">odbf</span>:<span style="color: #000000;">PathNo</span> <span style="color: #000000;">)</span><br /><br /> nhrzFctr := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> / GetDeviceCaps<span style="color: #000000;">(</span> ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">hDC</span>, HORZRES <span style="color: #000000;">)</span><br /> nVrtFctr := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> / GetDeviceCaps<span style="color: #000000;">(</span> ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">hDC</span>, VERTRES <span style="color: #000000;">)</span> <br /> <br /> <span style="color: #00C800;">While</span> !::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">PathNo</span> == ::<span style="color: #000000;">odbf</span>:<span style="color: #000000;">PathNo</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span> > <span style="color: #000000;">0.00</span><br /><br /> nLastLine += <span style="color: #000000;">2.00</span><br /> <br /> nWidthInInchs := <span style="color: #0000ff;">Min</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span><br /> <br /> a := ::<span style="color: #000000;">oprn</span>:<span style="color: #000000;">Inch2Pix</span><span style="color: #000000;">(</span> nLastLine, ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">+1.25</span><span style="color: #000000;">)</span><br /> b := ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">Inch2Pix</span><span style="color: #000000;">(</span> nLastLine + <span style="color: #000000;">1.5</span>, nWidthInInchs + <span style="color: #000000;">0.5</span><span style="color: #000000;">)</span><br /> <br /> oPie := TGraph<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> * nVrtFctr, a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> * nhrzFctr, oWnd, ;<br /> b<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> * nHrzFctr , b<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> * nVrtFctr <span style="color: #000000;">)</span><br /> <br /> With Object oPie<br /> :<span style="color: #000000;">lPopUp</span> := .f.<br /> :<span style="color: #000000;">nType</span> := GRAPH_TYPE_PIE<br /> :<span style="color: #000000;">l3D</span> := .T.<br /> :<span style="color: #000000;">lLegends</span> := .f.<br /> :<span style="color: #000000;">lViewVal</span> := .f.<br /> :<span style="color: #000000;">lBorders</span> := .t.<br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Cancer %"</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>,<span style="color: #000000;">200</span><span style="color: #000000;">)</span>, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">100.00</span> - ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span> <span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Non-Cancer"</span>, CLR_WHITE, GRAPH_TYPE_PIE, .t. <span style="color: #000000;">)</span><br /> End With<br /><br /> oPie:<span style="color: #00C800;">Print</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oPrn</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">0.00</span>, <span style="color: #000000;">0.00</span> <span style="color: #000000;">)</span><br /> oPie:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> a := ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">Inch2Pix</span><span style="color: #000000;">(</span> nLastLine - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> b := ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">Inch2Pix</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, nLastLine - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">PrintSectionHdr</span><span style="color: #000000;">(</span> a, b,, Str<span style="color: #000000;">(</span> n, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">")"</span> + ;<br /> ProperName<span style="color: #000000;">(</span> Alltrim<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Specimen</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">aFonts</span><span style="color: #000000;">[</span> <span style="color: #000000;">13</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">InchSay</span><span style="color: #000000;">(</span> nLastLine + <span style="color: #000000;">0.25</span>, ::<span style="color: #000000;">aColumnsCoords</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nCurrCol</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">0.25</span>, ;<br /> <span style="color: #ff0000;">"Malignancy "</span> + Transform<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Cancrprcnt</span>, <span style="color: #ff0000;">"999.99%"</span> <span style="color: #000000;">)</span> + ;<br /> iif<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">gleason_1</span> + ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">gleason_2</span> > <span style="color: #000000;">0</span>, ;<br /> <span style="color: #ff0000;">" Gleason Score: "</span> + Str<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Gleason_1</span> + ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Gleason_2</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> +;<br /> <span style="color: #ff0000;">" ("</span> + Str<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Gleason_1</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"-"</span> + Str<span style="color: #000000;">(</span> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Gleason_2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">") "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>, ;<br /> ::<span style="color: #000000;">aFonts</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">nMaxLineOnPage</span> := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nMaxLineOnPage</span>, nLastLine <span style="color: #000000;">)</span> <span style="color: #B900B9;">//used for placement of signature</span><br /> <br /> <span style="color: #00C800;">if</span> nLastLine + <span style="color: #000000;">1.5</span> > ::<span style="color: #000000;">nbottom</span><br /> nLastLine := ::<span style="color: #000000;">nTop</span> - <span style="color: #000000;">1</span><br /> ::<span style="color: #000000;">nCurrCol</span>++<br /> <br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nCurrCol</span> > ::<span style="color: #000000;">nMaxCols</span><br /> ::<span style="color: #000000;">nCurrCol</span> := <span style="color: #000000;">1</span><br /> ::<span style="color: #000000;">PrintFooter</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oPrn</span>:<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oPrn</span>:<span style="color: #000000;">StartPage</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <br /> <span style="color: #00C800;">endif</span><br /><br /> End<br /> <br /> n++<br /> ::<span style="color: #000000;">oSpcs</span>:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> End<br /><br /> <span style="color: #00C800;">if</span> nLastLine == ::<span style="color: #000000;">nLastLine</span> - <span style="color: #000000;">1</span><br /> ::<span style="color: #000000;">nLastLine</span> := ::<span style="color: #000000;">nTop</span><br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #000000;">nLastLine</span> := nLastLine + <span style="color: #000000;">1</span> <span style="color: #B900B9;">//units is in inches</span><br /> <span style="color: #00C800;">endif</span><br /> <br /> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:2wonwhzr]
Any ideas to further enhance the output report are always welcome.
Regards,
Reinaldo. |
tgraph problem end oDlg and print | Small coordinates...good idea. Glad you got it working.
The report looks very professional.
James |
the meaning of lKinetic := .F. | Please ,
can someone explain to me this parameter?
@ 1 , 1 LISTBOX oBrw FIELDS OF oDlg SIZE 150 , 150 PIXEL
ACTIVATE DIALOG oDlg CENTER ON INIT [b:3tlmiol2]oBrw:lKinetic := .F.[/b:3tlmiol2]
King regards
marco |
the meaning of lKinetic := .F. | Marco,
Is to allow or not the kinetic effect on the browse:
You can drag the browse and through it and it will scroll itself (like the iphone) |
the programs from alanit are now freeware | Hello,
I want to say to all forum users that my programs, made with FWH, are completely free and that my intention is to release the code as open source over this year. You can download the programs from <!-- m --><a class="postlink" href="http://www.alanit.com">http://www.alanit.com</a><!-- m --> and you can follow my blog <!-- m --><a class="postlink" href="http://www.alanit.com/blog">http://www.alanit.com/blog</a><!-- m -->
And by the way, I want to thank all forum members for their help during my time programming with FWH.
Regards,
José Luis Sánchez |
the programs from alanit are now freeware | avemundi.com vs. alanit.com
Hello José,
May I ask why you didn’t keep avemundi. Isn’t this Latin and means “hello world”?
For me avemundi was a very good domain name.
Best regards,
Otto |
the programs from alanit are now freeware | Otto,
avemundi is 'hello world' in latin. alanit means 'at night' in Catalan, which is my native language, I have ever done in my home at night, and that's the meaning.
The first reason for having a website was selling the program and alanit was the domain wich I started. Somehow I will still program, and so I decided to keep the name. I want to keep the domain registration avemundi.com if someday I decide to start another project.
Regards, |
the programs from alanit are now freeware | Josè,
why this sudden decision, what happened?
I'm interesting to see the code only for the print solution have all your apps, if you want can send me it ? |
the programs from alanit are now freeware | Hello Jose,
I made a domain check:
alanit.com has a suggested value: 540 - 630 €
avemundi.com: 3.000 - 3.500 €
This is corresponding with my feeling. If I where you I would use avemundi.com if you don’t have problems with other trademarks.
Best regards,
Otto |
the programs from alanit are now freeware | Silvio, this is a long-considered decision. I have a full time job, family, and I used to program at night at home. In the last months when my children sleeps I prefer read a book or talk to my wife. I think I musn't sell software if I can't give a good support to my users. In the next week I'll post my tinforme here.
Otto, this is also a long-considered decision. I prefer use alanit.com, but keep the registration of avemundi.com. How can I make the domain check that you says ?
Regards, |
the programs from alanit are now freeware | José,
I used this link:
<!-- m --><a class="postlink" href="http://www.adresso.de/pages/schnellbewertung.php">http://www.adresso.de/pages/schnellbewertung.php</a><!-- m -->
There are nearly all vowels included in avemundi only o is missing. I would say this is a perfect name.
There are some really good trademarks based on Latin words: AUDI which was first originally in German Horch which means listen.
Semperit and much more.
Best regards,
Otto |
the programs from alanit are now freeware | Hi Otto,
[quote="Otto":3cwvwd3n]
<!-- m --><a class="postlink" href="http://www.adresso.de/pages/schnellbewertung.php">http://www.adresso.de/pages/schnellbewertung.php</a><!-- m -->
[/quote:3cwvwd3n]
If you use this link:
<!-- m --><a class="postlink" href="http://www.adressio.de/index.php?mselect=2">http://www.adressio.de/index.php?mselect=2</a><!-- m -->
mostly you get a higher value, because they include 3 more points. Here you get these results:
alanit.com: 60.004 Euro
avemundi.com: 9.924 Euro |
the programs from alanit are now freeware | Josè,
I understood your decision, for me it is becoming difficult to take care of programming, and because I have problems at work and partly because I'm neglecting my family, my dogs, my friends.
To create a simple application, there are always problems
There are object classes that create them should have been a long time and still are not quite working perfectly.
Very often working friends ask me to help create small applications and websites and I have to work even at night.
thank for Tinforme, I think you must pubblish all sources into <!-- w --><a class="postlink" href="http://www.avemundi.com">www.avemundi.com</a><!-- w --> e keep this website, I found a Mantainer for a website ( php and worpress,mysql) one yar only 16,00 euro ( look Netsons.net) |
the sample Eagle1 to MySQL embedded + FWH | <!-- m --><a class="postlink" href="Http://www.megaupload.com/?d=CWKNG292">Http://www.megaupload.com/?d=CWKNG292</a><!-- m --> I leave a link to download the sample Eagle1 to MySQL embedded + FWH ...
Hope you like it, for more information look at <!-- m --><a class="postlink" href="http://es.groups.yahoo.com/group/eagle1">http://es.groups.yahoo.com/group/eagle1</a><!-- m -->
Greetings
Manu Exposito |
the sample Eagle1 to MySQL embedded + FWH | Hello
What about Tdbf Pro
TX Uwe D |
the sample Eagle1 to MySQL embedded + FWH | Hi Uwe ...
How's life? I hope very well ...
The truth that long that I'm not attending because I thought it more interesting access to other databases 4gl. However, if you want you can contact me to make a base of what you want to have TDbfPro and on that basis ... You know my eMail, ok? I hope your message.
Greetings and hope you're well.
Greetings from your old friend Manu Exposito <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
the short message Sms | Antonio I wait for the program of the short message Sms
regards, hathal
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
the short message Sms | Hathal,
What SMS program do you refeer to ?
I have reviewed your previous posts but I don't find any references. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.