topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
convert program to a network version | Harvey,
I should point out that using database objects make programming easier, including mult-user. The class automatically handles aliasing so instead of having to do (cAlias)->(dbskip()), you just do oCustomer:skip(). You can also open multiple copies of the same database using exactly the same syntax.
oCustomer1:= TCust():new()
oCustomer2:= TCust():new()
The database class can also handle all the multi-user issues.
For more information see my website [url:1a6lrzeq]http://www.goIntellitech.com/program.htm[/url:1a6lrzeq]. There are a number of articles there.
Regards,
James |
convert program to a network version | Thnks james all new stuff to me. |
convert program to a network version | Harvey,
I know it is all scary since it is so different, but once you get over the intial learning curve, programming is so much easier, less error prone, and requires much less code. While converting some older programs I have reduced the code by as much as 50-90 percent.
When you are doing a conversion there are tricks. For instance, you can move entire functions into methods of a new class, then convert those functions into OOP as time permits. Think of it as wrapping legacy code into a class.
You can also use classes in some part of your application, and legacy code in others so you can convert a little at a time.
Read and re-read my articles, and then try some of the test programs. I think you will be amazed at how simple it is.
Regards,
James |
convert report to other graph format | Hello,
I 'm using nconvert to transfor the report results (EMF) to JPG file, but the result is not legible, some body know another method to have good result or maybe some nconvert parameters to do that
regards
Marcelo |
convert report to other graph format | use freeimage you can save to jpg or gif or another format |
convert report to other graph format | Silvio
do you have some sample how I can use freeimage?
regards
Marcelo
[quote="Silvio":3w104mtp]use freeimage you can save to jpg or gif or another format[/quote:3w104mtp] |
convert report to other graph format | I'm working to modify the new preview with old my preview:
I can show 4/6/8/10 page
I can save each page or all on jpg,gif,bmp...
I can send the page via email
and other... |
convert report to other graph format | Sylvio if you have an example I would like to see it too.
Please, send it to <!-- e --><a href="mailto:jmurugosa@yahoo.com">jmurugosa@yahoo.com</a><!-- e --> |
convert report to other graph format | just I'm working to translate to new rpreview of linares...
My rpreview not is for xp window... |
convert this ""1458480306"" Into 20160320142506 | Hi,
"1458480306.jpg" is a name of a pictures in my smartphone.
I have to rename it with this name 20160320142506.jpg
[url:1bohp78p]http://www.timestampconvert.com/?go2=true&offset=-1×tamp=1458480306063&Submit=++++++Convert+to+Date++++++[/url:1bohp78p]
YYYYMMDDHHMMSS.
Does exist a function?
Many thanks
Marco
[code=fw:1bohp78p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> MAIN<br />cName := <span style="color: #ff0000;">"1458480306"</span><br /><br />? MyConvert<span style="color: #000000;">(</span> cName <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> Myconvert<span style="color: #000000;">(</span> cName <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">LOCAL</span> cReturn <br /><br />cReturn := convert<span style="color: #000000;">(</span> cName <span style="color: #000000;">)</span> <br /><br /><br /><span style="color: #00C800;">RETURN</span> cReturn <br /><br /> </div>[/code:1bohp78p] |
convert this ""1458480306"" Into 20160320142506 | Try
[code=fw:124cp48i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />? hb_Ttos<span style="color: #000000;">(</span> hb_DateTime<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> </div>[/code:124cp48i] |
convert this ""1458480306"" Into 20160320142506 | Many thanks
but I do not explay very wel the problem
This is the string to convert "1458480306"
[b:2dgodu6x]Unix time, the number of seconds since 00:00:00 UTC on January 1, 1970[/b:2dgodu6x]
into this 20160320142506
or simply into
[b:2dgodu6x]Date in your timezone*: 20/3/2016, 14:25:06[/b:2dgodu6x]
mucias gracias |
convert this ""1458480306"" Into 20160320142506 | function Main()
local nSeconds:= 1458480306
local nfecha := secondstotime( nSeconds )
msginfo(nFecha)
return nil
//----------------------------------------------------------------//
function secondstotime( nSeconds )
local nDias:= int( nSeconds /( 60*60*24) )
local nResto := nseconds - nDias*60*60*24
local nNewDate := ctod("1/1/1970") + nDias
local nHoras := int(nResto/(60*60) )
local nMinutos
nResto := nResto - nHoras *60 *60
nHoras := nHoras + 1 // For UTC
nMinutos := int ( nResto / 60 )
nResto := nResto - nMinutos *60
nNewdate := dtos( nNewdate ) + strzero(nHoras,2,0)+ strzero(nMinutos,2,0) + strZero( nResto,2,0)
Return nNewDate |
convert this ""1458480306"" Into 20160320142506 | Many Thanks!
marco |
convert this ""1458480306"" Into 20160320142506 | Here is another approach, utilizing (x)Harbour's capabilities of datetime computations and also incorporating the timezone conversion implications.
[code=fw:3vch88kt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> MyConvert<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> cFileSetExt<span style="color: #000000;">(</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> TTOS<span style="color: #000000;">(</span> STOT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"19700101000000"</span> <span style="color: #000000;">)</span> + Val<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> / <span style="color: #000000;">(</span> <span style="color: #000000;">24</span> * <span style="color: #000000;">3600</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span>/<span style="color: #000000;">24</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">14</span> <span style="color: #000000;">)</span>, cFileExt<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3vch88kt]
? MyConvert( "1458480306.jpg" ) --> "20160320142506.jpg"
It may be worth examining each calculation involved in the above single line formula. Here it is:
[url=https://imageshack.com/i/plXtvRm0p:3vch88kt][img:3vch88kt]http://imagizer.imageshack.us/v2/xq90/921/XtvRm0.png[/img:3vch88kt][/url:3vch88kt]
Now, a discussion about TimeZone adjustment and DST. In the above function I just added 1/24 which is +01:00, being the timezone of Italy when DST is not in use. When DST is in use it is going to be +02:00, i.e. 2/24 of a day. So, this forumla should also consider DST.
We need to use the TimeZone offset applicable to the converted UTC date but not the date when the function is called. That means we need to have a look up table.
Here is the revised function taking into account Italy's DST and TimeZone:
[code=fw:3vch88kt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> MyConvertDST<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aDST := <span style="color: #000000;">{</span> ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2014</span>/<span style="color: #000000;">03</span>/<span style="color: #000000;">30</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2014</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">26</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2015</span>/<span style="color: #000000;">03</span>/<span style="color: #000000;">29</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2015</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">25</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2016</span>/<span style="color: #000000;">03</span>/<span style="color: #000000;">27</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2016</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">30</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2017</span>/<span style="color: #000000;">03</span>/<span style="color: #000000;">26</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2017</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">29</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span>^ <span style="color: #000000;">2018</span>/<span style="color: #000000;">03</span>/<span style="color: #000000;">31</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>^ <span style="color: #000000;">2018</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">28</span> <span style="color: #000000;">01</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">local</span> tRet := STOT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"19700101000000"</span> <span style="color: #000000;">)</span> + Val<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> / <span style="color: #000000;">(</span> <span style="color: #000000;">24</span> * <span style="color: #000000;">3600</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// converted to UTC DateTime</span><br /><br /> <span style="color: #00C800;">if</span> AScan<span style="color: #000000;">(</span> aDST, <span style="color: #000000;">{</span> |a| tRet >= a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> .and. tRet <= a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> tRet += <span style="color: #000000;">1</span>/<span style="color: #000000;">24</span> <span style="color: #B900B9;">// Additional for DST</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cFileSetExt<span style="color: #000000;">(</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> TTOS<span style="color: #000000;">(</span> tRet + <span style="color: #000000;">1</span>/<span style="color: #000000;">24</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">14</span> <span style="color: #000000;">)</span>, cFileExt<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3vch88kt]
In above example, if 10 days are added, the result should not be "20160330142506.jpg" but should be "20160330152506.jpg"
We can test the revised function with this:
? MyConvert( "1459344306.jpg" ) --> "20160330142506.jpg"
? MyConvert( "1459344306.jpg" ) --> "20160330152506.jpg" |
convert this ""1458480306"" Into 20160320142506 | Day Light Savings:
I am from a tropical country India and we do not have Day Light savings adjustments. So I am not aware of the complexities that arise from this. I have some doubts and seek clarification / guidance from friends who are used to DLS
If an event is said to have happened on 25 Oct 2015 at 02:35 AM in Rome, Italy, how do we know if it happened before the clock was turned back or after? To my mind, this time refers to two different points of time separated by one hour. How do we distinctly identify which one it is?
In other words, if we want to convert this time into UTC, do we covert it as 25 Oct 2015 00:35 or 25 Oct 2015 01:35? |
convert this ""1458480306"" Into 20160320142506 | [quote="nageswaragunupudi":3gfbh7nf]Here is another approach, utilizing (x)Harbour's capabilities of datetime computations and also incorporating the timezone conversion implications.
[code=fw:3gfbh7nf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> MyConvert<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> cFileSetExt<span style="color: #000000;">(</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> TTOS<span style="color: #000000;">(</span> STOT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"19700101000000"</span> <span style="color: #000000;">)</span> + Val<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> / <span style="color: #000000;">(</span> <span style="color: #000000;">24</span> * <span style="color: #000000;">3600</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span>/<span style="color: #000000;">24</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">14</span> <span style="color: #000000;">)</span>, cFileExt<span style="color: #000000;">(</span> cUnixName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3gfbh7nf][/quote:3gfbh7nf]
Very nice!
EMG |
convert this ""1458480306"" Into 20160320142506 | Many Thanks and Happy Easter dear Friends |
convert this ""1458480306"" Into 20160320142506 | Thanks Rao, for the hint and explanation.
Regards, Euclides. |
converte an icon to image | If I have a icon ( because I set a listview item) can I have a image tmp ( on memory) from this icon and insert it on a image control ? |
converte combox -> tab control | I load nto an arrary 3 strings ..
local aIdx:={}
aIdx:={"Fondatore","Ordinario","Simpatizzante","Servizi"}
On old program I use a combox to select the option
REDEFINE COMBOBOX oCbx VAR cVar ITEMS aIdx ID 210 OF oDlg;
ON CHANGE Sel_Index(oCbx)
Now I want show the option into a tab control
@ nGridBottom, nSplit+2 TABS oApp():oTab ;
OPTION nOrder SIZE oApp():oWndMain:nWidth()-80, 12 PIXEL OF oApp():oDlg ;
ITEMS aIdx
but it not run ok
can U help me pls |
converte combox -> tab control | Silvio
The TAB control can choosed by using SetOption method and the page too.
...
oTab:SetOption( nOrder )
oPage:SetOption( nOrder ) or oPage:SetOption( oTab:nOption )
... |
converte combox -> tab control | Dear Rochinha
If you not understood what I say , please not write me
the command setoption use when I must show a tab
Instead I ask another help .....
I must write the tab name "xxxxx","xxxxx", "xxxxx" they called ITEMS or aPrompts
On the combobos I use ITEMS aaa where aaa is an array with 3 strings
Now I want insert these strings into tab control as tab names
I hope you unserstand me now |
converte combox -> tab control | This is a working sample:
[code:26ibm3se]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oTabs
DEFINE DIALOG oDlg
@ 0, 0 BUTTON "Change";
ACTION ( oTabs:aPrompts[ 2 ] := "Changed",;
oTabs:Refresh() )
@ 2, 0 TABS oTabs;
PROMPTS "First", "Second", "Third"
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL[/code:26ibm3se]
EMG |
converte from vb | Otto,
you have to do the following changes to compile the saple without errors.
comment out these lines in vbdll.ch
[code:3o909r3c]#ifndef _VBDLL_CH_
#define _VBDLL_CH_
#xTranslate ByVal <x> => <x>
#xTranslate ByRef <x> => @<x>
//#xTranslate As Long => AS LONG
//#xTranslate As Integer => AS LONG
//#Translate As String => AS STRING
//#Translate As Boolean => AS BOOL
//#Translate As Any => AS LPSTR
//#Translate As Pointer => AS LPSTR
//#Translate As Void => AS VOID[/code:3o909r3c]
change the vb function like this
[code:3o909r3c]// FWH entiende esta sintaxis / FWH understands this sintax
Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ;
(ByVal pCaller As LONG, ByVal szURL As STRING, ByVal szFileName As STRING, ;
ByVal dwReserved As LONG, ByVal lpfnCB As LONG) As LONG[/code:3o909r3c]
See the parameter types are upper case !
It compiles now, but I don´t know if it´s working correct, we need a test with real data |
converte from vb | someone can converte these funs from vb please ?
Private Declare Function OpenThemeData Lib "uxtheme.dll" (ByVal hWnd As Long, ByVal pszClassList As Long) As Long
Private Declare Function CloseThemeData Lib "uxtheme.dll" (ByVal hTheme As Long) As Long
Private Declare Function DrawThemeBackground Lib "uxtheme.dll" (ByVal hTheme As Long, ByVal lHDC As Long, ByVal iPartId As Long, ByVal iStateId As Long, pRect As RECT, pClipRect As RECT) As Long
Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hDC As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
thanks |
converte from vb | Silvio,
see here
[url:zspywbkk]http://forums.fivetechsupport.com/viewtopic.php?f=17&t=13182[/url:zspywbkk] |
converte from vb | Hello Stefan,
Thank you for this sample. I tried to compile this sample from César but get following error.
c:\fwhtests\806\tutor02.prg(27) Error E0021 Circularity detected in #translate: 'As'
c:\fwhtests\806\tutor02.prg(27) Error E0030 Syntax error: "syntax error at 'FUNCTION'"
c:\fwhtests\806\tutor02.prg(30) Warning W0007 Function 'MAIN' does not end with RETURN statement
Do you have a sample with a link file.
Thanks in advance
Otto |
converte from vb | Otto,
my tests this morning produced the same errors you get. There must be something wrong in the translate commands. |
converte from vb | I made a last test with real data for cUrl and cSaveAs.
It is working fine <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
converte from vb | [quote="Otto":as2769zc]c:\fwhtests\806\tutor02.prg(27) Error E0021 Circularity detected in #translate: 'As'[/quote:as2769zc]
Sorry!
This code compiles ok with xHarbour 0.99.7. Something has changed with the pre-processor that makes it fail with xH 1B. |
converte my app into net | Can anyone recommend some small samples available or how to convert my app (not networkable) to a network version ? |
converte rpreview as a class | Some one converted Rpreview as a class ?
Can send me it pls ? |
converter ascci file into dbf | I have ascci file §( big - I cannot pubblish here)
07.01.1939 BA 58 22 47 49 6907.01.1939 FI 27 57 81 43 6107.01.1939 BA 58 22 47 49 6907.01.1939 VE 27 57 81 43 6107.01.1939 NA 58 22 47 49 6907.01.1939 TO 27 57 81 43 6107.01.1939 BA 58 22 47 49 6907.01.1939 BA 58 22 47 49 6907.01.1939 BA 58 22 47 49 6907.01.1939 NZ 58 22 47 49 69
I wish converte it on dbf file
Date D 8
RA C 2
N1 N 2 0
N2 N 2 0
N3 N 2 0
N4 N 2 0
N5 N 2 0
each string is
date RA N1 N2 N3 N4 N5
07.01.1939 BA 58 22 47 49 69
any help please |
converter ascci file into dbf | Silvio,
is there a filestructure for a calculation
I mean fixed number of < chars > each line
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
converter ascci file into dbf | resolved |
converting my function into a class | on a my function load many images with txImage to move it on a dialog
to move the images ( on my functions ) I use the easy command Move() with no Problems
[code=fw:301wjjl8]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">For</span> n= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nImages<br /> nLeftImage<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:=nposition +nBmpWidth<br /> aElements<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> nRowScroll,nLeftImage<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>,,,.t.<span style="color: #000000;">)</span><br /> aElements<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nposition:= nLeftImage<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> <span style="color: #00C800;">next</span></div>[/code:301wjjl8]
and the image are showed into dialog with animation
this evening I'm try to converte my functions into a class
the same source but with data
[code=fw:301wjjl8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">For</span> n= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> ::<span style="color: #000000;">nImages</span><br /> ::<span style="color: #000000;">nLeftImage</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:=nposition +nBmpWidth<br /> ::<span style="color: #000000;">aElements</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nRowScroll</span>,::<span style="color: #000000;">nLeftImage</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>,,,.t.<span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">aElements</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nposition:= ::<span style="color: #000000;">nLeftImage</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> <span style="color: #00C800;">next</span></div>[/code:301wjjl8]
but I have and error Error description: Error BASE/1004 No exported method: MOVE
I tried also to use
[code=fw:301wjjl8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SetPos<span style="color: #000000;">(</span> nRow, nCol <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> nRow, nCol,,,.t. <span style="color: #000000;">)</span></div>[/code:301wjjl8]
and change the line
[code=fw:301wjjl8]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #000000;">aElements</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">setPos</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nRowScroll</span>,::<span style="color: #000000;">nLeftImage</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>,,,.t.<span style="color: #000000;">)</span></div>[/code:301wjjl8]
but give me the error
Error description: Error BASE/1004 No exported method: SETPOS
How I can resolve it ? |
converting my function into a class | ok I resolved
the array is not populate
now I correct it |
converting to fwh | I have command as :
aD := { "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato" }
[b:10dpojrq] ? " |"[/b:10dpojrq]
FOR i := 1 TO 6
[b:10dpojrq] ?? PadC( aD[ i ], LARG ) + "|"[/b:10dpojrq]
NEXT
[b:10dpojrq] ? "---+" + Replicate( Replicate( "-", LARG ) + "+", 6 )[/b:10dpojrq]
How I can convert it into printer fwh ?
or exist a class that read the old clipper command ? |
converting to fwh | Instead of printing, create a string variable. Then use a listbox widget and add a new line with the string text. Of course, assign the listbox Courier New font, so that all text is aligned.
Or, if you consider all the code, you can create a table and assign cell text.... |
convertir campos .DBF de chcp 850 (DOs) a Windows | ¿ Alguien sabe de algún código fuente en Fivewin/Harbour para convertir .DBF segín el ambiente de trabajo, para que sean compatibles los índices con busquedas según pattern(plantilla) con caracteres especiales ? |
convertir campos .DBF de chcp 850 (DOs) a Windows | Que ambientes de trabajo son ? |
convertir exel en dbfhier | avons nous une fonction ou classe pour convertir des fichiers exel en fichiers dbf ou xbase |
convertir exel en dbfhier | Oui ----> FW_ExcelToDbf
Quell'est votre version de Fivewin?
Recherchez cette fonction dans le forum, il y a plusieurs exemples |
convertir exel en dbfhier | ma version est 19.03 32 bit |
convertir exel en dbfhier | Ou retrouve t<on cette fonction
Merci |
convertir gpointer en data | Tengo el siguiente código donde la función KeyPressEvent recive un PHB_ITEM en gpointer pero al convertir no me pasa los valores.
Algo estoy haciendo mal ¿si alguien me puede ayuda?
g_print("%d %s \n", (int)hb_arrayGetNL( aData, 1 ), (char *)hb_arrayGetC( aData, 2 ));
Resultado en Pantalla OK:
65470 XXXXXXXXXX
g_signal_connect ( G_OBJECT( entry_box ), "key_press_event", G_CALLBACK( KeyPressEvent ), (gpointer) aData );
.
.
.
.
.
gboolean KeyPressEvent( GtkWidget * entry, GdkEventKey * event, gpointer aData ) {
PHB_ITEM param = aData;
g_print("%d - %s \n", (int)hb_arrayGetNL(param,1), (char *)hb_arrayGetC(param,2));
Resultado en Pantalla: ( No trae los valores esperados (65470 XXXXXXXXXX) )
0 - (null) |
convertir gpointer en data | Ya lo arregle...
GPtrArray* parray;
parray = g_ptr_array_new ();
g_ptr_array_add (parray, (gpointer) hb_arrayGetNL( aData, 1 ));
g_ptr_array_add (parray, (gpointer) cPicture);
g_signal_connect ( G_OBJECT( entry_box ), "key_press_event", G_CALLBACK( KeyPressEvent ), parray );
.
.
.
.
gboolean KeyPressEvent( GtkWidget * entry, GdkEventKey * event, GPtrArray *aData ) {
guint x = g_ptr_array_index(aData, 0);
gchar *y = g_ptr_array_index(aData, 1);
g_print("%d %s \n", x, y); |
convertir harbour | Hola, estoy tratando de convertir mi sistemas to Harbour, pero a pesar de ya ha intentado todo lo sugerido aquí en el foro, y varios ejemplos de examen (con ejemplos compila y ejecuta bien), mi programa se compila sin errores, pero tampoco se ejecuta, se ejecuta, que no hizo nada, ni siquiera un mensaje. será algo que yo uso en ADS? 3rd libs?
fwh911, bcc 551, ads local/server.
obs: se ejectuta sin errores in xharbour cvs.
thanks
norberto |
convertir harbour | Norberto,
Usas algún PRG que sea muy grande ? De ser así, prueba a convertirlo en 2 PRGs o más.
Es un error que hemos visto recientemente con Harbour sólo con PRGs realmente grandes. |
convertir un string en codeblock (resuelto) | supongamos que tengo una función con un parámetro que es un block de codigo
una variable cb donde tengo el texto de dicho block
como hago para pasar ese texto como si fuera un block de codigo a esa función?
[code=fw:1ilgrfu7]<div class="fw" id="{CB}" style="font-family: monospace;">cb = <span style="color: #ff0000;">"{|| oDlg:End()}"</span><br />Mifunción<span style="color: #000000;">(</span> a, b, cb <span style="color: #000000;">)</span><br /> |<br /> ---->aca iría el block de código<br />asi no funciona obviamente<br />entre paréntesis tampoco...<br /> </div>[/code:1ilgrfu7]
como debo hacer para que Mi función reciba ese block de codigo y no un string?
Desde ya gracias por vuestra ayuda.. |
convertir un string en codeblock (resuelto) | Me contesto a mi mismo....
[code=fw:1qt990dk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Mifuncion<span style="color: #000000;">(</span> a, b, &<span style="color: #000000;">(</span>cb<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:1qt990dk]
<!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
convertir un string en codeblock (resuelto) | Y ..no seria amejor asi:
[code=fw:2cvvbxh2]<div class="fw" id="{CB}" style="font-family: monospace;">cb :=<span style="color: #000000;">{</span>|| oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br />Mifunción<span style="color: #000000;">(</span> a, b, cb <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> <condicion><br /> eval<span style="color: #000000;">(</span>cb<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br />retur <span style="color: #00C800;">NIL</span></div>[/code:2cvvbxh2]
Atentamente,
Rolando |
convertir un string en codeblock (resuelto) | [quote="RSalazarU":2xmx8jr4]Y ..no seria amejor asi:
[code=fw:2xmx8jr4]<div class="fw" id="{CB}" style="font-family: monospace;">cb :=<span style="color: #000000;">{</span>|| oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br />Mifunción<span style="color: #000000;">(</span> a, b, cb <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> <condicion><br /> eval<span style="color: #000000;">(</span>cb<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br />retur <span style="color: #00C800;">NIL</span></div>[/code:2xmx8jr4]
Atentamente,
Rolando[/quote:2xmx8jr4]
El tema es que el codeblock se arma uniendo trozos de strings y variables para luego pasarse a la función, por eso la necesidad de macrosustituir el texto del código.
Gracias por tu comentario. |
convertir. dat de Quick Basic a excel txt o dbf | Estimados amigos:
¿Existe alguna utilidad para pasar archivos .dat de Quick Basic a texto, excel, dbf, etc?.
Muchas gracias por su ayuda. |
convertir. dat de Quick Basic a excel txt o dbf | José Luis;
Contesto solo de forma intuitiva y para darte una idea: Probaste con Access?, luego de ahí seguramente la opdras llevar a otro formato, Excel seguro |
convertir. dat de Quick Basic a excel txt o dbf | Mario,
Sí, antes probé con Excel y Access y no hubo suerte, no reconocen este formato.
¿Alguno tiene alguna experiencia?.
Muchas gracias. |
convertir. dat de Quick Basic a excel txt o dbf | Puedes tratar de probar con FILEVIEWPRO
Y lo mas probable que Visual Basic 3 deberia tener acceso a los datos del antiguo QuickBasic
deberias tratar de usarlo y luego transformarlo a un CSV.
Desde Chile
Saludos |
convertir. dat de Quick Basic a excel txt o dbf | Nada, lamentablemente no lo abre. |
convertir. dat de Quick Basic a excel txt o dbf | Juse Luis,
Para abrir un archivo de esos, debes conocer la estructura del archivo y abrirlo con quickbasic y exportarlo a texto ( es lo unico que me funciono en algo similar hace algunos años )
Atte.,
Lautaro |
cookies on this website | Learn more about the cookies on this website
Hello friends,
Can someone explain how exactly this works with the cookies allow?
Best regards,
Otto |
cookies on this website | Dear Otto,
It is a mistery...
Here they work fine:
[url:29simh9w]https://www.fivetechsoft.com/forums[/url:29simh9w]
but on this older version, no idea how they work... |
cookies on this website | Dear Antonio,
Thank you.
I asked my question wrong.
I meant the legal requirements.
Is it enough to just show that cookies are used.
I have heard that Spain has the strictest regulations in Europe in this regard.
We have had a big wave of warnings because of the use of google fonts. These fonts trace the IP and then report it to the office in America.
Best regards,
Otto |
coordenadas GPS | Buenos días a todos
Es posible obtener las coordenadas gps Latitud y longitud en una tablet ? con fivetouch ?
gracias por su tiempo
saludos
Wilson |
coordenadas GPS | Wilson,
Por lo que tengo entendido QT proporciona clases para usar todos los sensores de tablet y/ó teléfono.
Busca en google por QT GPS y a ver que encuentras.
Tenemos que aprender a usar todos los sensores <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
coordenadas GPS | Gracias Maestro por tu interés
bucare y reportare luego
saludos
Wilson |
coordenadas GPS | Wilson,
[url:3rnf4ba5]http://www.qtcentre.org/threads/41698-QT-in-Android-Example-for-accessing-the-GPS-Service[/url:3rnf4ba5]
[url:3rnf4ba5]http://schorsch.efi.fh-nuernberg.de/roettger/index.php/Qt-UI/QtAndroidGPSExample[/url:3rnf4ba5]
Saludos |
coordenadas GPS | gracias Felix! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
coordenadas GPS | Gracias Feliz ya estoy revisando esa información
saludos
Wilson |
coordenadas GPS | IMHO el camino sería hablar con el Sr. Bedi. El ya ha hecho los wrappers para funciones multimedia. Quizá tenga pensado subir alguna modificación relativa a GPS.
Aquí el changelog donde subio cosas relacionadas con la camara de fotos y otros dispositivos multimedia.
Lo digo porque creo que sería mejor sumar esfuerzos con el Sr. Bedi, que en la lista siempre se ha mostrado muy dispuesto a ayudar. Ha habido últimamente alguna super incorporación a la lista.
[quote:mymi3d5e]2014-06-01 18:14 UTC-0800 Pritpal Bedi (bedipritpal at hotmail.com)(r310)
* hbqt/hbmk2_qt.hb
* hbqt/hbqtmultimediawidgets.hbc
* hbqt/qtcore/hbqt_init.cpp
* hbqt/qtdesigner/hbqtdesigner.hbp
* hbqt/qtgui/hbqt_flickcharm.cpp
* hbqt/qtgui/hbqt_init.cpp
* hbqt/qtgui/hbqtgui.ch
* hbqt/qtgui/qth/filelist.hbm
+ hbqt/qtgui/qth/QGraphicsObject.qth
+ hbqt/qtmultimedia/hbqt_init.cpp
+ hbqt/qtmultimedia/hbqtmultimedia.hbc
+ hbqt/qtmultimedia/hbqtmultimedia.hbx
+ hbqt/qtmultimedia/qth/filelist.hbm
+ hbqt/qtmultimedia/qth/QAbstractVideoBuffer.qth
+ hbqt/qtmultimedia/qth/QAudioBuffer.qth
+ hbqt/qtmultimedia/qth/QAudioDecoder.qth
+ hbqt/qtmultimedia/qth/QAudioDecoderControl.qth
+ hbqt/qtmultimedia/qth/QAudioEncoderSettings.qth
+ hbqt/qtmultimedia/qth/QAudioEncoderSettingsControl.qth
+ hbqt/qtmultimedia/qth/QAudioInputSelectorControl.qth
+ hbqt/qtmultimedia/qth/QAudioOutputSelectorControl.qth
+ hbqt/qtmultimedia/qth/QAudioProbe.qth
+ hbqt/qtmultimedia/qth/QAudioRecorder.qth
+ hbqt/qtmultimedia/qth/QCamera.qth
+ hbqt/qtmultimedia/qth/QCameraCaptureBufferFormatControl.qth
+ hbqt/qtmultimedia/qth/QCameraCaptureDestinationControl.qth
+ hbqt/qtmultimedia/qth/QCameraControl.qth
+ hbqt/qtmultimedia/qth/QCameraExposure.qth
+ hbqt/qtmultimedia/qth/QCameraExposureControl.qth
+ hbqt/qtmultimedia/qth/QCameraFeedbackControl.qth
+ hbqt/qtmultimedia/qth/QCameraFlashControl.qth
+ hbqt/qtmultimedia/qth/QCameraFocus.qth
+ hbqt/qtmultimedia/qth/QCameraFocusControl.qth
+ hbqt/qtmultimedia/qth/QCameraFocusZone.qth
+ hbqt/qtmultimedia/qth/QCameraImageCapture.qth
+ hbqt/qtmultimedia/qth/QCameraImageCaptureControl.qth
+ hbqt/qtmultimedia/qth/QCameraImageProcessing.qth
+ hbqt/qtmultimedia/qth/QCameraImageProcessingControl.qth
+ hbqt/qtmultimedia/qth/QCameraInfo.qth
+ hbqt/qtmultimedia/qth/QCameraInfoControl.qth
+ hbqt/qtmultimedia/qth/QCameraLocksControl.qth
+ hbqt/qtmultimedia/qth/QCameraViewfinderSettingsControl.qth
+ hbqt/qtmultimedia/qth/QCameraZoomControl.qth
+ hbqt/qtmultimedia/qth/QImageEncoderControl.qth
+ hbqt/qtmultimedia/qth/QImageEncoderSettings.qth
+ hbqt/qtmultimedia/qth/QMediaAudioProbeControl.qth
+ hbqt/qtmultimedia/qth/QMediaAvailabilityControl.qth
+ hbqt/qtmultimedia/qth/QMediaBindableInterface.qth
+ hbqt/qtmultimedia/qth/QMediaContainerControl.qth
+ hbqt/qtmultimedia/qth/QMediaContent.qth
+ hbqt/qtmultimedia/qth/QMediaControl.qth
+ hbqt/qtmultimedia/qth/QMediaGaplessPlaybackControl.qth
+ hbqt/qtmultimedia/qth/QMediaNetworkAccessControl.qth
+ hbqt/qtmultimedia/qth/QMediaObject.qth
+ hbqt/qtmultimedia/qth/QMediaPlayer.qth
+ hbqt/qtmultimedia/qth/QMediaPlayerControl.qth
+ hbqt/qtmultimedia/qth/QMediaPlaylist.qth
+ hbqt/qtmultimedia/qth/QMediaRecorder.qth
+ hbqt/qtmultimedia/qth/QMediaRecorderControl.qth
+ hbqt/qtmultimedia/qth/QMediaResource.qth
+ hbqt/qtmultimedia/qth/QMediaService.qth
+ hbqt/qtmultimedia/qth/QMediaServiceCameraInfoInterface.qth
+ hbqt/qtmultimedia/qth/QMediaServiceFeaturesInterface.qth
+ hbqt/qtmultimedia/qth/QMediaServiceProviderPlugin.qth
+ hbqt/qtmultimedia/qth/QMediaServiceSupportedDevicesInterface.qth
+ hbqt/qtmultimedia/qth/QMediaServiceSupportedFormatsInterface.qth
+ hbqt/qtmultimedia/qth/QMediaStreamsControl.qth
+ hbqt/qtmultimedia/qth/QMediaTimeInterval.qth
+ hbqt/qtmultimedia/qth/QMediaTimeRange.qth
+ hbqt/qtmultimedia/qth/QMediaVideoProbeControl.qth
+ hbqt/qtmultimedia/qth/QMetaDataReaderControl.qth
+ hbqt/qtmultimedia/qth/QMetaDataWriterControl.qth
+ hbqt/qtmultimedia/qth/QRadioData.qth
+ hbqt/qtmultimedia/qth/QRadioDataControl.qth
+ hbqt/qtmultimedia/qth/QRadioTuner.qth
+ hbqt/qtmultimedia/qth/QRadioTunerControl.qth
+ hbqt/qtmultimedia/qth/QSoundEffect.qth
+ hbqt/qtmultimedia/qth/QVideoDeviceSelectorControl.qth
+ hbqt/qtmultimedia/qth/QVideoEncoderSettings.qth
+ hbqt/qtmultimedia/qth/QVideoEncoderSettingsControl.qth
+ hbqt/qtmultimedia/qth/QVideoProbe.qth
+ hbqt/qtmultimedia/qth/QVideoRendererControl.qth
+ hbqt/qtmultimedia/qth/QVideoWindowControl.qth
+ hbqt/qtmultimediawidgets
+ hbqt/qtmultimediawidgets/doc
+ hbqt/qtmultimediawidgets/doc/en
+ hbqt/qtmultimediawidgets/hbqt_init.cpp
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgets.ch
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgets.hbc
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgets.hbm
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgets.hbp
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgets.hbx
+ hbqt/qtmultimediawidgets/hbqtmultimediawidgetss.hbp
+ hbqt/qtmultimediawidgets/qth
+ hbqt/qtmultimediawidgets/qth/filelist.hbm
+ hbqt/qtmultimediawidgets/qth/QCameraViewfinder.qth
+ hbqt/qtmultimediawidgets/qth/QGraphicsVideoItem.qth
+ hbqt/qtmultimediawidgets/qth/QVideoWidget.qth
+ hbqt/qtmultimediawidgets/qth/QVideoWidgetControl.qth
* hbqt/qtwebkit/hbqtwebkit.hbp
+ hbqtwidgets/tests/camera.hbp
+ hbqtwidgets/tests/camera.prg
+ hbqtwidgets/tests/camera.ui
+ hbqtwidgets/tests/imagesettings.ui
+ hbqtwidgets/tests/videosettings.ui
+ Implemented: Qt 5.3.0 specifc MultiMedia API.
The example is specific to accessing and controlling cameras.
In the coming days some other media example are scheduled
to be in this repository. The camera example is adopted from
Qt 5.3.0 examples repository with some minor changes specific
to HbQt way of implementation.
Enjoy ![/quote:mymi3d5e]
Saludos |
coordenadas de impresión en pantalla | Existe algún utilitario, que permita establecer la coordenada de impresión de un campo, arrastrándolo hasta la posición deseada en pantalla?. esto permitiría que el propio usuario realizara esta operación de manera visual sin tener que ingresar fila y columna en un campo.
saludos y gracias de antemano por sus comentarios. |
coordenadas de impresión en pantalla | [quote="lafug":20zc2ld4]Existe algún utilitario, que permita establecer la coordenada de impresión de un campo, arrastrándolo hasta la posición deseada en pantalla?. esto permitiría que el propio usuario realizara esta operación de manera visual sin tener que ingresar fila y columna en un campo.
saludos y gracias de antemano por sus comentarios.[/quote:20zc2ld4]
De momento aquí te dejo unas funciones que pueden ayudar:
[code=fw:20zc2ld4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> HORZSIZE <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VERTSIZE <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> HORZRES <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VERTRES <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#define</span> LOGPIXELSX <span style="color: #000000;">88</span><br /><span style="color: #00D7D7;">#define</span> LOGPIXELSY <span style="color: #000000;">90</span><br /><br /><br /><span style="color: #B900B9;">/* ****************************************************************************<br />Funciones para convertir PIXEL a Twip/Pulgadas/Centímetros y viceversa.<br /><br />hDC -> oWnd:hDC or oPrn:hDC<br /><br /> ************************************************************************* */</span><br /><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nPixels2Twips<span style="color: #000000;">(</span> hDC, nPixels, lVertical <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">(</span>nPixels / GetDeviceCaps<span style="color: #000000;">(</span> hDC, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>lVertical, LOGPIXELSY, LOGPIXELSX<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> * <span style="color: #000000;">1440</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nTwips2Pixels<span style="color: #000000;">(</span> hDC, nTwips, lVertical <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">(</span>nTwips / <span style="color: #000000;">1440</span><span style="color: #000000;">)</span> * GetDeviceCaps<span style="color: #000000;">(</span> hDC, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>lVertical, LOGPIXELSY, LOGPIXELSX<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nPixels2Inches<span style="color: #000000;">(</span> hDC, nPixels, lVertical <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">(</span>nPixels / GetDeviceCaps<span style="color: #000000;">(</span> hDC, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>lVertical, LOGPIXELSY, LOGPIXELSX<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nInches2Pixels<span style="color: #000000;">(</span> hDC, nInches, lVertical <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">/*Traza( 1, "hDc =", hDc )<br />Traza( 1, "nInches =", nInches )<br />Traza( 1, "lVertical =", lVertical )<br />Traza( 1, "GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) =", GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) )<br />Traza( 1, "(nInches * GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) )=", (nInches * GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) ) )*/</span><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">(</span>nInches * GetDeviceCaps<span style="color: #000000;">(</span> hDC, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>lVertical, LOGPIXELSY, LOGPIXELSX<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nPixels2Cm<span style="color: #000000;">(</span> hDC, nPixels, lVertical <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> nPixels2Inches<span style="color: #000000;">(</span> hDC, nPixels, lVertical <span style="color: #000000;">)</span> * <span style="color: #000000;">2.54</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> nCm2Pixels<span style="color: #000000;">(</span> hDC, nCm, lVertical <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> nInches2Pixels<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">(</span>nCm / <span style="color: #000000;">2.54</span><span style="color: #000000;">)</span>, lVertical <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">/* ******************************************************* */</span><br /><span style="color: #00C800;">FUNCTION</span> uCm2Pixels<span style="color: #000000;">(</span> HdC, nCmy, nCmx <span style="color: #000000;">)</span><br />nCmy := nCm2Pixels<span style="color: #000000;">(</span> hDC, nCmy, .T. <span style="color: #000000;">)</span><br />nCmx := nCm2Pixels<span style="color: #000000;">(</span> hDC, nCmx, .F. <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:20zc2ld4] |
coordenadas de un dialogo | Como puedo saber las coordenadas de un dialogo. me gustaría implementar que el mismo "recuerde" cuál fue el último lugar de la pantalla donde se presentó. Espero se entienda. Muchas gracias |
coordenadas de un dialogo | oDlg:nTop y oDlg:nLeft |
coordenadas de un dialogo | quique,Gracias por responder. No funciona, ya que si muevo el dialogo y pido que me diga que valor tiene oDlg : nTop siempre me da lo mismo. Necesitaria las coordenadas absolutas. No se si me explico. |
coordenadas de un dialogo | oDlg:coorsupdate()? oDlg:nTop, oDlg:nLeftSolo considera que las coordenadas son con respecto a la ventana, así que si cambias de posición la ventana tendras que ajustar las coordenadas del diálogo con respecto a ella |
coordenadas de un dialogo | C:\FWH\SAMPLES\newhelp.prgC:\FWH\SAMPLES\testfge2.prgC:\FWH\SAMPLES\testfget.prg' |
coordenadas de un dialogo | Quique, Funcionó perfecto. Muchas gracias. Karinha, muchas gracias también |
coordenadas de una window | Hola
Como puedo saber las coordenadas de una window ?, quiero pintar cualquier cosa justo en el mismo centro de la window.
Un saludo y gracias |
coordenadas de una window | oWnd:nTop
oWnd:nLeft
oWnd:nWidth
oWnd:nHeight |
coordenadas de ventanas (SDI MDI) | Amigos,podrían verificar si las coordenadas de las ventanas (anexo ejemplo) se actualizan al mover dicha ventana?he revisado lo que he podido y nada, al mover la ventana no actualiza las coordenadas, lo cual debería actualizar.[code:3j9toml8]FUNCTION main()
LOCAL owin, omenu
MENU omenu
MENUITEM "Child" ACTION childwin( owin )
ENDMENU
DEFINE WINDOW owin MENU omenu MDI
owin:cTitle( "Izquierda: "+ AllTrim(Str(owin:nLeft)) +" Derecha: "+ AllTrim(Str(owin:nRight)))
owin:bMoved := {|| owin:cTitle( "Izquierda: "+ AllTrim(Str(owin:nLeft)) +" Derecha: "+ AllTrim(Str(owin:nRight)))}
ACTIVATE WINDOW owin
RETURN NIL
FUNCTION childwin( oWnd )
LOCAL ochild
DEFINE WINDOW ochild MDICHILD OF oWnd
ochild:cTitle( "Izquierda: "+ AllTrim(Str(ochild:nLeft)) +" Derecha: "+ AllTrim(Str(ochild:nRight)))
ochild:bMoved := {|| ochild:cTitle( "Izquierda: "+ AllTrim(Str(ochild:nLeft)) +" Derecha: "+ AllTrim(Str(ochild:nRight)))}
ACTIVATE WINDOW ochild
RETURN NIL
[/code:3j9toml8]Gracias por anticipadas |
coordenadas de ventanas (SDI MDI) | William,[code:1foz3mb1]
#include "FiveWin.ch"
FUNCTION main()
LOCAL owin, omenu
MENU omenu
MENUITEM "Child" ACTION childwin( owin )
ENDMENU
DEFINE WINDOW owin MENU omenu MDI
owin:cTitle( "Izquierda: "+ AllTrim(Str(owin:nLeft)) +" Derecha: "+ AllTrim(Str(owin:nRight)))
owin:bMoved := {|| oWin:CoorsUpdate(), owin:cTitle( "Izquierda: "+ AllTrim(Str(owin:nLeft)) +" Derecha: "+ AllTrim(Str(owin:nRight)))}
ACTIVATE WINDOW owin
RETURN NIL
FUNCTION childwin( oWnd )
LOCAL ochild
DEFINE WINDOW ochild MDICHILD OF oWnd
oChild:CoorsUpdate()
ochild:cTitle( "Izquierda: "+ AllTrim(Str(ochild:nLeft)) +" Derecha: "+ AllTrim(Str(ochild:nRight)))
ochild:bMoved := {|| oChild:CoorsUpdate(), ochild:cTitle( "Izquierda: "+ AllTrim(Str(ochild:nLeft)) +" Derecha: "+ AllTrim(Str(ochild:nRight)))}
ACTIVATE WINDOW ochild
RETURN NIL
[/code:1foz3mb1] |
coordenadas de ventanas (SDI MDI) | William,Otra forma de hacerlo sin llamar a CoorsUpdate():[code:261p1pzs]
#include "FiveWin.ch"
FUNCTION main()
LOCAL owin, omenu
MENU omenu
MENUITEM "Child" ACTION childwin( owin )
ENDMENU
DEFINE WINDOW owin MENU omenu MDI
owin:cTitle( "Izquierda: "+ AllTrim(Str( WndLeft( owin:hWnd ))) +" Derecha: "+ AllTrim(Str(WndTop( owin:hWnd ))))
owin:bMoved := {|| owin:cTitle( "Izquierda: "+ AllTrim(Str(WndLeft( owin:hWnd ))) +" Derecha: "+ AllTrim(Str(WndTop(owin:hWnd))))}
ACTIVATE WINDOW owin
RETURN NIL
FUNCTION childwin( oWnd )
LOCAL ochild
DEFINE WINDOW ochild MDICHILD OF oWnd
ochild:cTitle( "Izquierda: "+ AllTrim(Str(WndLeft( ochild:hWnd ))) +" Derecha: "+ AllTrim(Str(WndTop( ochild:hWnd ))))
ochild:bMoved := {|| ochild:cTitle( "Izquierda: "+ AllTrim(Str(WndLeft( ochild:hWnd ))) +" Derecha: "+ AllTrim(Str(WndTop( ochild:hWnd ))))}
ACTIVATE WINDOW ochild
RETURN NIL
[/code:261p1pzs] |
coordenadas de ventanas (SDI MDI) | Antonio,muchas gracias por contestar.pero todo esto salió por la cuestión de que quería mover a una ubicación especificada una child, y cuando le daba:nLeft := oWin:nwdth - 190nomás no hacia caso a la instrucción.sigo investigando las coordenadas de una win y una child. |
coordenadas de ventanas (SDI MDI) | William,Las funciones WndTop(), WndLeft(), WndWidth() y WndHeight() son de tipo setget, por lo que puedes usarlas para cambiar esos valores:WndTop( hWnd [, nNewTop ] ) --> nTopWndLeft( hWnd [, nNewLeft ] ) --> nLeftWndWidth( hWnd [, nNewWidth ] ) --> nWidthWndHeight( hWnd [, nNewHeight ] ) --> nHeight |
coordenadas de ventanas (SDI MDI) | [quote="Antonio Linares":7svlfi9k]William,
Las funciones WndTop(), WndLeft(), WndWidth() y WndHeight() son de tipo setget, por lo que puedes usarlas para cambiar esos valores:
WndTop( hWnd [, nNewTop ] ) --> nTop
WndLeft( hWnd [, nNewLeft ] ) --> nLeft
WndWidth( hWnd [, nNewWidth ] ) --> nWidth
WndHeight( hWnd [, nNewHeight ] ) --> nHeight[/quote:7svlfi9k]Antonio,muchas gracias, es lo que necesitaba. |
coordenadas en DOS | Saludos y disculpen mi ignorancia, pero es que soy demasiado nuevo o
mejor dicho un recien llegado al maravilloso mundo del FIVEWIN.
Tengo varios buenos programas en clipper-DOS como puedo hacer para
convertir las coordenadas del DOS a FIVEWIN sin perder la posicion relativa que tenia en el DOS, gracias anticipadamente.
Rodolfo Silva
<!-- e --><a href="mailto:sildata@cantv.net">sildata@cantv.net</a><!-- e --> |
coordenadas en DOS | Rodolfo,
Estamos revisando Genifer, como nos comentastes, para ver la forma de que pudiese usarse con FiveWin. |
coordenadas en TXBrowse() | Hola:
Quiero sustituir un LISTBOX por un TXBrowse(). El LISTBOX es:
@ 00,42 LISTBOX oPBrow ;
FIELDS First, Last, Street, City ;
OF oDlg ;
SIZE (oDlg:nWidth()-80)/2, (oDlg:nHeight()-21)/2 PIXEL ;
HEADERS "First", "Last", "Street", "City" ;
SIZES 100,100,200,150 UPDATE
Pero no encontrado la forma se especificar las coordenadas de arranque ni el tamaño. ¿Se puede hacer?. Muchas gracias, |
coordenadas en TXBrowse() | Ya lo he encontrado, ntop y nleft, pero eso no viene en la documentación. |
coordinate dimensioni e risoluzione video | ciao a tutti,come gestire le coordinate ( @ 10, 20 ... ) e le dimensioni (... SIZE 80, 100 ) dei vari oggetti di una finestra in funzione delle varie risoluzioni video?Se imposto coordinate e dimensioni per 1280 x 1024 quando passo a 1024 x 768 alcuni oggetti escono fuori dallo schermo.ora sto usando una variabile contente GetSysMetrics(0) / 8 / 100 che è = 1.6 per 1280 x 1024, = 1 x 800 x 600 ecc. da moltiplicare alle coordinate e dimensioni.però spesso devo fare degli aggiustamenti a seconda delle risoluzioni perché qualche oggetto non viene al posto giusto o non è della dimensione giusta.c'è un modo più pratico ed efficente?grazie in anticipo, marzio |
coordinate dimensioni e risoluzione video | Per operare con differenti risoluzioni (ed anche differenti caratteri) ti suggerisco di utilizzare un approccio tipo Outlook e riservare l'uso di dialog solo per inserimento di minori quantità di dati.Per esempio io utilizzo una soluzione di questo genere:<!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/sample.png">www.softwarexp.co.uk/beta/sample.png</a><!-- w --> |
coordinates mouse | Hi, i have two questions:
1- I would like the coordinates of mouse (pixel x and Y) when I push dbl-left-click;
2- I woud like the resolution of screen (pixel x and y) when init a WINDOW.
any help?
thanks |
coordinates mouse | To calculate the resolution:
[code=fw:34tvya9g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nAncho := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//ScreenWidth() //GetSysmetrics( 4 )</span><br /> nAlto := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//ScreenHeight() //GetSysmetrics( 3 )</span><br /> </div>[/code:34tvya9g] |
coordinates mouse | All controls have the following METHOD LDblClick and blDblClick DATA that you can program.
The method always receives the row and column location of the mouse
[code=fw:23uf7wyc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> LDblClick<span style="color: #000000;">(</span> nRow, nCol, nKeyFlags <span style="color: #000000;">)</span><br /> </div>[/code:23uf7wyc] |
coordinates mouse | Damiano,
[quote="damianodec":3hmufmgl]Hi, i have two questions:
1- I would like the coordinates of mouse (pixel x and Y) when I push dbl-left-click;[/quote:3hmufmgl]
[code=fw:3hmufmgl]<div class="fw" id="{CB}" style="font-family: monospace;">bLDblClick = <span style="color: #000000;">{</span> | nRow, nCol | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> nRow <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> nCol <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:3hmufmgl]
[quote="damianodec":3hmufmgl]2- I woud like the resolution of screen (pixel x and y) when init a WINDOW.[/quote:3hmufmgl]
[code=fw:3hmufmgl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:3hmufmgl]
EMG |
coordinates mouse | thanks |
coordinates mouse | mouse position.
mgsinfo(hb_dumpvar(getcursorpos())) |
coordinates mouse | Lailton, podrías indicar si la function getcursorpos() se encuentra en xHarbour, y en que version?
Gracias. |
coordinates mouse | Francisco,
[quote="FranciscoA":3svsyn4v]Lailton, podrías indicar si la function getcursorpos() se encuentra en xHarbour, y en que version?
Gracias.[/quote:3svsyn4v]
GetCursorPos() is a FWH function.
EMG |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.