topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
rich3d20.dll | avete un esempio di rtfmerge per caso ? |
richedit | When i try the richedit samples FWH25 and hit a key from the keyboard
The letter appears 2 times on the screen .
What is wrong ? |
richedit | From an old message of mine:
------------------------------------------
It seems that commenting out
// Super:KeyChar( nKey, nFlags )
from KeyChar() method solves the double character bug:
[code:16vr0frd]METHOD KeyChar( nKey, nFlags ) CLASS TRichEdit
// Super:KeyChar( nKey, nFlags )
if ::lReadOnly
return 0
endif
::PostMsg( FM_CHANGE )
if ::lHighlight
::PostMsg( FM_HIGHLIGHT )
endif
return nil[/code:16vr0frd]
Please test it with TESTRTF.PRG.
------------------------------------------
EMG |
richedit | it is possible insert Image on richedit ?
it is possible insert zoom control on it ?
thanks |
richedit | hi, is possible use richedit with get, without an external file, saving in an memo file? someone has a little sample? thanks |
richedit | Nop,
Search fwh\samples for "richedit" examples.
Since richedit data is contained in a string var you should be able to just save it to a memo field like any other string.
@ 0, 0 RICHEDIT oRich VAR cVar
define button of oBar action ((cAlias)->notes:= cVar)
James |
richedit | Agregando estos métodos a la clase tRichEdit() podrás hacer zoom, pero si usas la versión 5 de riched20.dll.
Add these methods to tRichEdit() to zoom, but be sure you have riched20.dll version 5 installed.
Saludos/Regards
César Lozada
#define EM_GETZOOM (WM_USER + 224)
#define EM_SETZOOM (WM_USER + 225)
METHOD SetZoom(nZoom)
Local nNum:=nZoom, nDen:=100, k //, nOldZoom:=::GetZoom()
DEFAULT ::nW0:=::nWidth-20
FOR k:=2 to 5 step 3
DO WHILE nNum%k=0 .and. nDen%k=0
nNum/=k; nDen/=k
ENDDO
NEXT
IF nNum>0 .and. nNum<64 .and. nDen>0 .and. nDen<64
::SetSize(::nW0*nZoom/100+20,::nHeight)
::SendMsg(EM_SETZOOM, nNum, nDen)
ENDIF
return nil //nOldZoom
METHOD GetZoom()
Local nZoom,nNum:=0, nDen:=0
::SendMsg(EM_GETZOOM, nNum, nDen)
nZoom:=100*nNum/Max(nDen,1)
return nZoom |
richedit | thanks cesar
How I must call these functions into testrtf.prg have you an sample for it ? |
richedit | Where I can found a sample test with a dbf with memo field and the possibility to use richedit as get and save it on dbf (memo field) ?
thanks |
richedit | Where I can found a sample test with a dbf with memo field and the possibility to use richedit as get and save it on dbf (memo field) ?
thanks |
richedit | Silvio,
did you try SaveAsRTF() method?
EMG |
richedit | yes but not run or I wrong the command |
richedit | Silvio,
what is SaveAsRTF() returning? Try
? VALTYPE( oRich:SaveAsRTF() )
and let me know.
EMG |
richedit | See the test sample i sent you yesterday |
richedit | here the test
[code=fw:3nuwc1y5]<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;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"richedit.ch"</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br />EXTERNAL ORDKEYNO,ORDKEYCOUNT,ORDCREATE,ORDKEYGOTO<br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> hDLL := LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">'riched20.dll'</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> oDlgModelli<br /><br /> <span style="color: #00C800;">Local</span> cDlgTitle :=<span style="color: #ff0000;">"Family"</span><br /> <span style="color: #00C800;">Local</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><br /> <span style="color: #00C800;">Local</span> nBottom := <span style="color: #000000;">29.2</span><br /> <span style="color: #00C800;">Local</span> nRight := <span style="color: #000000;">58</span><br /> <span style="color: #00C800;">Local</span> nWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br /> <span style="color: #00C800;">Local</span> otn<br /><br /> RddSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /><br /> Create_Archive_Modelli_mail<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> USE MAILMOD <span style="color: #0000ff;">ALIAS</span> MM<br /><br /><br /> <span style="color: #00C800;">IF</span> MM-><span style="color: #000000;">(</span>eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> MM-><span style="color: #000000;">(</span>DbAPPEND<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> Replace mm->MAILNAME with <span style="color: #ff0000;">"test"</span><br /> Replace mm->MESSAGE with <span style="color: #ff0000;">"Prova test"</span><br /> MM-><span style="color: #000000;">(</span>DbCommit<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> MM-><span style="color: #000000;">(</span>DbGotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgModelli ;<br /> <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br /> <span style="color: #0000ff;">TITLE</span> cDlgTitle<br /><br /><br /><br /> @ <span style="color: #000000;">90</span>,<span style="color: #000000;">110</span> RICHEDIT aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> MM->MESSAGE <span style="color: #0000ff;">of</span> oDlgModelli <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">100</span> <span style="color: #B900B9;">//UPDATE</span><br /><br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BUTTON</span> otn <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Save"</span> <span style="color: #0000ff;">ACTION</span> SaveMemo<span style="color: #000000;">(</span>aGet<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgModelli <span style="color: #0000ff;">centered</span><br /><br /><br /> <span style="color: #00C800;">if</span> hDLL != <span style="color: #00C800;">nil</span><br /> FreeLibrary<span style="color: #000000;">(</span> hDLL <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> SaveMemo<span style="color: #000000;">(</span>aGet<span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//???</span><br /> aGet<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">saveasrtf</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 /><br /><br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">Function</span> Create_Archive_Modelli_mail<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> cDir :=<span style="color: #ff0000;">""</span><br /><br /> DbCreate<span style="color: #000000;">(</span>cDir+<span style="color: #ff0000;">'mm'</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">'MAILNAME'</span> , <span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">0</span><span style="color: #000000;">}</span> ,;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">'SUBJECT'</span> , <span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">0</span><span style="color: #000000;">}</span> ,;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">'MESSAGE'</span> , <span style="color: #ff0000;">'M'</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span>, <span style="color: #ff0000;">'DBFCDX'</span><span style="color: #000000;">)</span><br /><br /> close all<br /> use &<span style="color: #000000;">(</span>cDir+<span style="color: #ff0000;">'mm'</span><span style="color: #000000;">)</span> <span style="color: #00C800;">new</span><br /> <span style="color: #0000ff;">select</span> mm<br /> <span style="color: #00C800;">if</span> FILE<span style="color: #000000;">(</span>cDir+<span style="color: #ff0000;">'MailMod.DBF'</span><span style="color: #000000;">)</span><br /> delete file &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'MailMod.cdx'</span><span style="color: #000000;">)</span><br /> append <span style="color: #0000ff;">from</span> &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'MailMod'</span><span style="color: #000000;">)</span><br /> dbcommitall<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> close all<br /> delete file &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'MailMod.dbf'</span><span style="color: #000000;">)</span><br /> delete file &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'MailMod.fpt'</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> close all<br /> rename &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'mm.dbf'</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">(</span>cdir+<span style="color: #ff0000;">'MailMod.dbf'</span><span style="color: #000000;">)</span><br /> rename &<span style="color: #000000;">(</span>cDir+<span style="color: #ff0000;">'mm.fpt'</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">(</span>cDir+<span style="color: #ff0000;">'MailMod.fpt'</span><span style="color: #000000;">)</span><br /> close all<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3nuwc1y5] |
richedit | Silvio
Recomiendo amacenar el texto en un memo para casos de busquedas y el contenido RTF en otra tabla.
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30337&p=173596&hilit=jnavas#p173596">viewtopic.php?f=6&t=30337&p=173596&hilit=jnavas#p173596</a><!-- l --> |
richedit class | Hi all,i'd like to use the richedit class and have some questions about it.Tables:Does the FiveWin class support creation and/or reading of tables?Color of Text:Does the FiveWin class support background colors for text?Thanks for your answers.Regards, Detlef |
richedit class | Though I haven't used TRichedit yet, by looking at \fwh\source\classes\TRichedi.prg it seems that the following info appears to be relevant...The class has seven methods dealing with loading and saving data, GetSel(), LoadRTF(), LoadAs RTF(), LoadFromRTFFile(), SetText(), and SaveAsRTF(), SaveToFile() that should be looked at closely. They seem to offer a variety of ways to get and save the RTF data.Some of these seem to work similarly to MEMOREAD() and MEMOWRIT() used with memo text. It looks as though LoadFromRTFFile() enables loading from a database with RTF data in a memofield.Insofar as TRichedit inherits from TControl which in turn inherits from TWindow, the provisions for handling foreground and background colors in those parent classes are inherited here.- Roger |
richedit class | Roger,thanks for jumpin' in.My understanding of RichText was similar to a mark up language as html.So i tried to color a text with tags like \fc1\bc2 where '1' and '2' are indizes for the color table.I succeeded to change the foreground color of a dstreing with \fc+'x'.But when i try to set a background color with \bc+'x' i didn't succeed.I ask myself if this is a limitation of the FiveWin RTF class or if it's a misunderstanding of me?Regards,Detlef |
richedit class | Detlef,I think you have the codes backwards, it is cf and cb.[code:148go26q]{\f1\cb1\cf2 This is colored text. The background is color 1 and the foreground is color 2.}[/code:148go26q][url:148go26q]http://www.biblioscape.com/rtf15_spec.htm#Heading16[/url:148go26q]Regards,James |
richedit class | Thank you, James,but exchanging \fc and \bc doesn't make any difference.You will see that your sample does not change the background color.I think it's a MS related bug because MS Word and MS WordPad can't display an other background color as white neither.Regards,Detlef |
richedit class | Detlef,[quote="Detlef Hoefner":2l4ujflr]
Color of Text:
Does the FiveWin class support background colors for text?
[/quote:2l4ujflr]assuming that oRTF is your Richedit object, you can use [code:2l4ujflr]oRTF:SetTextColor( ChooseColor() )[/code:2l4ujflr] to change the textcolor of the selected text and [code:2l4ujflr]oRTF:SetHighlight(ChooseColor(oRTF:GetHighlight())[/code:2l4ujflr] to change the background color of the selected text |
richedit class | Stefan,thanks a lot for your help.The background color is setting up fine now.It seems that tag \cb is never used because the bg-color is done with the tag \highlight + n.Thanks again,Detlef |
richedit con tabulador (desde recursos) ¿como? | Buenas noches,
Utilizo la clase richedit y no logro hacer que funcione el tabulador dentro de la edición del texto. Cada vez que se pulsa el tabulador se sale de la edición del richedit (se sale del "custom control") y lo que quiero es que haga una tabulación en el texto.
El "Window styles" del recurso en el que uso la richedit es 0x50A01004, calculo que el problema está en el recurso donde hago la edición porque el tabulador SI FUNCIONA al compilar el sample TestRtf.prg (que utiliza window, no recurso).
Uso recursos con una DLL generada con pelles-c
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
richedit con tabulador (desde recursos) ¿como? | Rolando,
Una vez hagas REDEFINE RICHEDIT ... a continuación haz:
#define DLGC_WANTTAB 0x0002
oRichEdit:nDlgCode = DLGC_WANTTAB |
richedit con tabulador (desde recursos) ¿como? | Antonio,
Gracias por responder.
Lamentablemente no funciona lo que propones. Además estuve "mirando" la trichedit.prg y no encontré la data [b:lhhzqcbj]nDlgCode[/b:lhhzqcbj].
Saludos.
Rolando |
richedit con tabulador (desde recursos) ¿como? | Rolando,
La Clase TRichEdit, como todos los demás controles, deriva de la Clase TControl y es TControl quien implementa la DATA nDlgCode.
Windows le pregunta a nuestros controles que teclas quieren procesar, y el control solicita las que desea. El método que responde a esta petición es Method GetDlgCode( nLastKey ). Al asignarle un valor a nDlgCode estamos indicando las teclas extraordinarias que queremos.
De todas formas he visto que la Clase TRichEdit tiene su propia implementación del Método GetDlgCode() por lo que habría que modificarlo para que mi propuesta funcionase, pero la implementación actual devuelve DLGC_WANTALLKEYS, lo que significa "las quiero todas" y posiblemente el propio RichEdit esta controlando que hacer al pulsar Tab (saltar al siguiente control). |
richedit con tabulador (desde recursos) ¿como? | Rolando,
La solución es modificar el Método KeyDown() de la Clase TRichEdit, para que no haga nada con VK_TAB:
[code=fw:30otrqjz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">(</span> nKey, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br /> <span style="color: #00C800;">if</span> nKey == VK_TAB<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /><br /> ...<br /> </div>[/code:30otrqjz] |
richedit con tabulador (desde recursos) ¿como? | Aunque lo más práctico sería añadir una nueva DATA a la Clase TRichEdit lWantTab para que sea tan sencillo como:
oRichEdit:lWantTab = .T.
sin necesidad de tocar los fuentes de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
richedit con tabulador (desde recursos) ¿como? | Antonio,
Después de una semana de ausencia "forzada" por problemas de salud, retomo el tema en cuestión y comento que probé con lo que indicas agregando al METHOD KeyDown:
[code=fw:z0a02oyr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> nKey == VK_TAB<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">endif</span></div>[/code:z0a02oyr]
Esto no hace ningún efecto y el tabulador hace lo mismo (sale del richedit).
Por otro lado, estuve también viendo esto de incluir una data
[code=fw:z0a02oyr]<div class="fw" id="{CB}" style="font-family: monospace;">oRichEdit:<span style="color: #000000;">lWantTab</span> = .T.</div>[/code:z0a02oyr]
Y lo hice (aunque sin entender que efecto tiene esta data sobre la TRichEdit). Comento que tampoco soluciona nada.
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
richedit con tabulador (desde recursos) ¿como? | Antonio,
Justamente probé "detectar" la tecla TAB de la manera que indicas, colocando también un msginfo() para confirmarlo, pero no logro salir de ahí pasando ese evento a la TRichedit. Estuve buscando dentro de la clase y probando con todos los "send" que tiene pero no doy pié con bola.
Gracias por tu interés. Seguramente encontrarás la solución.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
richedit con tabulador (desde recursos) ¿como? | arriba |
richedit con tabulador (desde recursos) ¿como? | +1 |
richedit con tabulador (desde recursos) ¿como? | Rolando,
Te pido disculpas por mi retraso en atenderte pero he estado ocupado con FWH 64 bits y atendiendo a Lucas en ese tema.
Voy a construir un ejemplo y probamos con él |
richedit con tabulador (desde recursos) ¿como? | De momento con el ejemplo de FWH testrich.prg de la carpeta samples, añadiendo estas dos líneas:
oRich:bKeyDown = { | nKey | MsgInfo( nKey ) }
oRich:nDlgCode = DLGC_WANTALLKEYS
sigue sin detectar la tecla de tabulación... |
richedit con tabulador (desde recursos) ¿como? | Si añadimos estas tres líneas en la Clase TRichEdit ya conseguimos interceptar la tecla VK_TAB:
[code=fw:yww58kgh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">(</span> nKey, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br /> <span style="color: #00C800;">if</span> nKey == VK_TAB<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"VK_TAB"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">endif</span> </div>[/code:yww58kgh]
Ahora falta pasarle ese evento al procedimiento original del control RichEdit... |
richedit con tabulador (desde recursos) ¿como? | Rolando,
Buscando en google he encontrado que se trata de un error de los controles RichEdit, ya que si se devuelve el valor DLGC_WANTALLKEYS desde el Método GetDlgCode() de TRichEdit, Windows no debería darle el foco a otro control.
La solución usada para saltarse esta limitación es interceptar el mensaje WM_NEXTDLGCTL que recibe el diálogo y no hacer nada. Asi que este código debería servir.
Windows solo envía el mensaje WM_NEXTDLGCTL si esta en un control Edit ó RichEdit. Esto nos servirá. Pero lo que estoy intentando entender ahora es porque si estoy devolviendo 1 (ó .T.) que debiera decirle a Windows que no haga nada, el diálogo sigue llevándose el foco. Puedes probar este cambio y verás como detecta que intentamos irnos del RichEdit.
[code=fw:26zscdys]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> WM_NEXTDLGCTL 0x0028<br /><br /><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">(</span> nMsg, nWParam, nLParam <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDialog<br /><br /> <span style="color: #00C800;">if</span> nMsg == WM_NEXTDLGCTL<br /> MsgBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">endif</span> <br /><br /> ...<br /> </div>[/code:26zscdys] |
richedit con tabulador (desde recursos) ¿como? | Falta añadir este método en la Clase TRichEdit:
[code=fw:3agrx6po]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">METHOD</span> GetDlgCode<span style="color: #000000;">(</span> nLastKey <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nDlgCode</span></div>[/code:3agrx6po]
y esta línea en nuestro código:
#define DLGC_WANTCHARS 0x0080
oRich:nDlgCode = DLGC_WANTALLKEYS
aún asi, sigue sin comportarse como debiera. |
richedit con tabulador (desde recursos) ¿como? | Y si añadimos estas líneas en el método KeyDown() de TRichEdit(), vemos que la tecla VK_TAB llega, faltaría solo intercalar Tab en el texto (usando el método SetText()), pero el foco sigue saltando al siguiente control. Eso es lo que nos falta solucionar:
[code=fw:1zchlmve]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">(</span> nKey, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br /> <span style="color: #00C800;">if</span> nKey == VK_TAB<br /> MsgBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">endif</span><br /><br /> ... <br /> </div>[/code:1zchlmve] |
richedit en dialogos | Hola a todos,
¿ Es cierto que el control richedit no se puede insertar en dialogos? ¿Alguien a hecho algo con esto?
Gracias, |
richedit en dialogos | Julio,
El ejemplo samples\TestRich.prg usa un control RichEdit en una caja de diálogo. |
richedit.h and pelles c resource editor | Antonio
When you have a dialog set with Pelles c it generates
#include <richedit.h>
This line prevents a dialog of showing.
Removing the line will allow a dialog to show normally.
Richard |
richiesta di collaborazione | c'è qualcuno disposto ad aiutarmi dietro compenso ?
per questo problema <!-- m --><a class="postlink" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41951&p=256079&sid=87d749e1a826bd01f4f88798844f6573#p256070">http://forums.fivetechsupport.com/viewt ... 73#p256070</a><!-- m -->
mi può scrivere privatamente a : silvio[dot]falconi[at]gmail[dot]com
GRazie |
richtext | I have a memofield with richtext value like this:
{\rtf1\ansi\ansicpg1200\deff0\deflang1043{\fonttbl{\f0\fnil\fcharset0 TIMES NEW ROMAN;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\f0\fs24 Bij deze fraaie plant is het jonge blad roze gekleurt. Later verkleurt dit blad naar groen met een cr\'e8mewitte rand. De jonge takken zijn opvallend rood gekleurt, wat goed contrasteerd met het fris gekleurde blad.\par
}
Now I want to show this text in a textblock. I use this code:
@ 0, 0 GET oGetAanteken VAR cText MEMO OF oFld:aDialogs[ 3 ] SIZE 680, 350
oGetAanteken:SetRichText(.T.)
oGetAanteken:SetImportGraf(.t.)
oGetAanteken:AddHRuler()
oGetAanteken:SetUndo(.T.)
However, all the RichText code is also shown. How can I make it show only the real text: Bij deze fraaie plant is het jonge blad roze gekleurt. Later verkleurt dit blad naar groen met een cr\'e8mewitte rand. De jonge takken zijn opvallend rood gekleurt, wat goed contrasteerd met het fris gekleurde blad. |
richtext | René,
You have to use FiveMac modified libs that I am emailing you.
This is an example:
[code=fw:rmrt2j9m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.ch"</span><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> oDlg, oFld, oGet, cText := <span style="color: #ff0000;">""</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;">400</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">OF</span> oDlg PAGES <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">350</span> <br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cText MEMO <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">580</span>, <span style="color: #000000;">300</span><br /><br /> oGet:<span style="color: #000000;">SetRichText</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">SetImportGraf</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">AddHRuler</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">SetUndo</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> cText = <span style="color: #ff0000;">"{<span style="color: #000000;">\r</span>tf1<span style="color: #000000;">\a</span>nsi<span style="color: #000000;">\a</span>nsicpg1200<span style="color: #000000;">\d</span>eff0<span style="color: #000000;">\d</span>eflang1043{<span style="color: #000000;">\f</span>onttbl{<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>nil<span style="color: #000000;">\f</span>charset0 TIMES NEW ROMAN;}}"</span> + ;<br /> <span style="color: #ff0000;">"{<span style="color: #000000;">\*</span><span style="color: #000000;">\g</span>enerator Msftedit 5.41.21.2510;}<span style="color: #000000;">\v</span>iewkind4<span style="color: #000000;">\u</span>c1<span style="color: #000000;">\p</span>ard<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>s24 Bij deze fraaie plant "</span> + ;<br /> <span style="color: #ff0000;">"is het jonge blad roze gekleurt. Later verkleurt dit blad naar groen met een cr<span style="color: #000000;">\'</span>e8mewitte rand."</span> + ;<br /> <span style="color: #ff0000;">"De jonge takken zijn opvallend rood gekleurt, wat goed contrasteerd met het fris gekleurde blad.<span style="color: #000000;">\p</span>ar}"</span><br /><br /> oGet:<span style="color: #000000;">SetAttributedString</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:rmrt2j9m]
[img:rmrt2j9m]https://bitbucket.org/fivetech/screenshots/downloads/fivemac_rtf.png[/img:rmrt2j9m]
[img:rmrt2j9m]https://bitbucket.org/fivetech/screenshots/downloads/fivedit_mac.png[/img:rmrt2j9m] |
richtext | Hello Antonio,
Thanks again for the quick reply and the new libs. It has been a long day for me (6.00- 22.00 work), so tomorrow i will test this. |
richtext | Hello Antonio,
It works great if I have one tab or the richedit on the first tab, but if I use more tabs and the richedit is on the third tab I get to see the ruler, but not the buttons with outline ...
Also, is it possible to translate the buttons above the rulers.
And can I set the richedit on readonly
Last, if I use two richedits on two tabs, the program crashes (I need a richedit on the fith tab also.
I don't know how I insert an image in this forum |
richtext | [img:2emqp2j9]http://www.plantenkennis.com/downloads/RichEditScreen.png[/img:2emqp2j9] |
richtext | René,
> but if I use more tabs and the richedit is on the third tab I get to see the ruler, but not the buttons with outline ...
You have to do oGet:SetFocus() to each of them. Thats seems to paint it properly
I don't know if we can translate those buttons. We need to google about it
I am going to modify my example to check if it supports several richedits |
richtext | René,
Here you have an example with two richedit controls. Notice that I had to increase a little the dimensions of the second one. Not sure why.
testrich.prg
[code=fw:8scojdrl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.ch"</span><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> oDlg, oFld, oGet1, cText1 := <span style="color: #ff0000;">""</span>, oGet2, cText2 := <span style="color: #ff0000;">""</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;">400</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">OF</span> oDlg PAGES <span style="color: #ff0000;">"First"</span>, <span style="color: #ff0000;">"Second"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">350</span> <br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cText1 MEMO <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">580</span>, <span style="color: #000000;">300</span><br /><br /> oGet1:<span style="color: #000000;">SetRichText</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet1:<span style="color: #000000;">SetImportGraf</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet1:<span style="color: #000000;">AddHRuler</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oGet1:<span style="color: #000000;">SetUndo</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet1:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> cText1 = <span style="color: #ff0000;">"{<span style="color: #000000;">\r</span>tf1<span style="color: #000000;">\a</span>nsi<span style="color: #000000;">\a</span>nsicpg1200<span style="color: #000000;">\d</span>eff0<span style="color: #000000;">\d</span>eflang1043{<span style="color: #000000;">\f</span>onttbl{<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>nil<span style="color: #000000;">\f</span>charset0 TIMES NEW ROMAN;}}"</span> + ;<br /> <span style="color: #ff0000;">"{<span style="color: #000000;">\*</span><span style="color: #000000;">\g</span>enerator Msftedit 5.41.21.2510;}<span style="color: #000000;">\v</span>iewkind4<span style="color: #000000;">\u</span>c1<span style="color: #000000;">\p</span>ard<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>s24 FIRST Bij deze fraaie plant "</span> + ;<br /> <span style="color: #ff0000;">"is het jonge blad roze gekleurt. Later verkleurt dit blad naar groen met een cr'e8mewitte rand."</span> + ;<br /> <span style="color: #ff0000;">"De jonge takken zijn opvallend rood gekleurt, wat goed contrasteerd met het fris gekleurde blad.<span style="color: #000000;">\p</span>ar}"</span><br /><br /> oGet1:<span style="color: #000000;">SetAttributedString</span><span style="color: #000000;">(</span> cText1 <span style="color: #000000;">)</span><br /> oGet1:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> cText2 MEMO <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">346</span><br /><br /> oGet2:<span style="color: #000000;">SetRichText</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet2:<span style="color: #000000;">SetImportGraf</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet2:<span style="color: #000000;">AddHRuler</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oGet2:<span style="color: #000000;">SetUndo</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> oGet2:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> cText2 = <span style="color: #ff0000;">"{<span style="color: #000000;">\r</span>tf1<span style="color: #000000;">\a</span>nsi<span style="color: #000000;">\a</span>nsicpg1200<span style="color: #000000;">\d</span>eff0<span style="color: #000000;">\d</span>eflang1043{<span style="color: #000000;">\f</span>onttbl{<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>nil<span style="color: #000000;">\f</span>charset0 TIMES NEW ROMAN;}}"</span> + ;<br /> <span style="color: #ff0000;">"{<span style="color: #000000;">\*</span><span style="color: #000000;">\g</span>enerator Msftedit 5.41.21.2510;}<span style="color: #000000;">\v</span>iewkind4<span style="color: #000000;">\u</span>c1<span style="color: #000000;">\p</span>ard<span style="color: #000000;">\f</span>0<span style="color: #000000;">\f</span>s24 SECOND Bij deze fraaie plant "</span> + ;<br /> <span style="color: #ff0000;">"is het jonge blad roze gekleurt. Later verkleurt dit blad naar groen met een cr'e8mewitte rand."</span> + ;<br /> <span style="color: #ff0000;">"De jonge takken zijn opvallend rood gekleurt, wat goed contrasteerd met het fris gekleurde blad.<span style="color: #000000;">\p</span>ar}"</span><br /><br /> oGet2:<span style="color: #000000;">SetAttributedString</span><span style="color: #000000;">(</span> cText2 <span style="color: #000000;">)</span><br /> oGet2:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:8scojdrl] |
richtext | René,
Googling for NSRulerView translation did not provided any results so I have posted a tech question in stackoverflow to figure out how to translate the controls texts above the richedit:
[url:2uc9nk27]http://stackoverflow.com/questions/36828027/how-to-change-the-language-of-the-nsrulerview-controls-of-a-nstextview[/url:2uc9nk27] |
richtext | René,
I have implemented a new Class TMultiGet method SetEditable( lOnOff )
[url:vug5c2ev]https://developer.apple.com/library/mac/qa/qa1461/_index.html[/url:vug5c2ev]
I am emailing you the modified libs |
right mouseclick | Hello,
How can I make a contextmenu which opens on a rightclick of the mouse. I want to use it on a browse to run some functions on a selected row. |
right mouseclick | in the absence of tests, I think it works..
Saludos. |
right mouseclick | Dear René,
Please review this FiveMac commit:
[url:34x64so7]https://bitbucket.org/fivetech/fivemac/commits/fa33a142fbf0dfe06d2bf76b839226d4fa00807e[/url:34x64so7] |
right mouseclick | Hello Antonio,
Thanks, I will review this the next days. It looks like that is what I need. |
right mouseclick | Hello Antonio,
I have reviewed the modifications, but it does not work at this time. In browse there is no bRClicked method?
I made the command as follows:
[code=fw:3s1oo3kq]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bMouseDown</span> = <span style="color: #000000;">{</span> | nRow, nCol, oControl | ShowPop<span style="color: #000000;">(</span> nRow, nCol , oPopUP,ownd <span style="color: #000000;">)</span><span style="color: #000000;">}</span></div>[/code:3s1oo3kq]
and now the popup does not show at the place where I clicks, It shows at the bottom of the window. |
right mouseclick | See last commit ( 03/06/2018 ) , browses.m change for handled rclick event .
I forgot to upload it in previous commit.
Sorry . |
right mouseclick | Hello Mastintin,
I see the modifications, but if I changes browses.m, must I build new libs?
And if so, how do i build these libs, I have never done this before, sorry. |
right mouseclick | try these libraries ( I recommend making a copy of yours in case they fail )
<!-- m --><a class="postlink" href="https://www.dropbox.com/s/7c5o9i1m0kn3vog/comprimido.zup.zip?dl=0">https://www.dropbox.com/s/7c5o9i1m0kn3v ... p.zip?dl=0</a><!-- m -->
please confirm if they work.
Regards |
right mouseclick | Hello Mastintin,
Thanks, these new libs gets the rihtclick popup menu just like I want.
Are there other addaptions included in these libs, requests from previous asked questions? |
right mouseclick | SCREENVISIBLEHEIGHT, SCREENVISIBLEWIDTH, STATUSBARHEIGHT, GETDOCKPOSITION ,GETDOCKSIZE ISDOCKHIDDENc is implemented in this libs.
Mailer is in libs , use mail app to send mails but not send files Attached ( sorry )
I have code to send mail With attached files but then do not send them automatically...
Automatizacion with sandbox only include apple app . I not have code for thunderbird ( for now )
Regards. |
right mouseclick | Manuel,
many thanks for your help <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
right mouseclick | Hello Manuel,
Thanks a lot for all new functions implemented.
For the popup menu I would suggest the following addaption:
If the user rightclicks on a row in a browse, the pointer in that browse should go to the row where the user clicks. That way we can use the functions on that row. Now I first have to click normal on a row to set the row active and then rightclick to do something with that row. So actuallly the rightclick should perform a bChange before activates the popupmenu
Is this possible?
[code=fw:v1o38ddg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrwMain:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> | obj , nindex| nBrowRowActive := obj:<span style="color: #000000;">nRowPos</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br />oBrwMain:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span> | obj , nindex| <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>lBruikbaar, RK_ShowDetail<span style="color: #000000;">(</span>nBrowRowActive<span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Het programma is nu niet bruikbaar,'</span> + CR_LF + <span style="color: #ff0000;">'registreer deze eerst!'</span>, <span style="color: #ff0000;">'mededeling'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br />oBrwMain:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">{</span> | nRow, nCol, oControl | ShowPopupMain<span style="color: #000000;">(</span> nRow, nCol, oPopupMain, oBrwMain:<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <<when I <span style="color: #0000ff;">click</span> the browserow does not <span style="color: #0000ff;">get</span> blue/active<br /><br /> </div>[/code:v1o38ddg] |
right mouseclick | the problem is that the position where the pop is show must be passed to the handle.
the code we have can pass up to 3 parameters:
function _FMH (hWnd, nMsg, hSender, uParam1, uParam2, uParam3)
We would have to add one more parameter ( I do not think it creates problems )
the parameters to pass would be xMousepos,yMousepos,nBrwrow,nBrwcol ...
oBrw:bRClicked := { | xpos, ypos, nBrwRow, nBrCol, oControl | ShowPop( xpos, ypos, opopUp, oBrw:oWnd ) }
Would this serve? |
right mouseclick | Hello Manuel,
I think your suggestion would serve well. That way we know on what nBrwrow the user clicks and we can perform an action on that row. I suppose we can send the nBrwrow and nBrwcol to the Showpop function? |
right mouseclick | New libs width changes...
see browse.prg in samples from repository.
new libs ...
<!-- m --><a class="postlink" href="https://www.dropbox.com/s/zr322rimlapkis5/librerias.zip?dl=0">https://www.dropbox.com/s/zr322rimlapki ... s.zip?dl=0</a><!-- m -->
Regards. |
right mouseclick | Hello Manuel,
Thank you very much for the new libs <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
The popup menu does exactly what I wants.
Also the WindowVisibleHeigth function is very good. Now the outline of all controls are perfect on all screens.
I also checked the Enable() and DisAble() for BtnBmp. When I use it in the same function as where the button is defined it works well. However if I want to disable a BtnBmp from another function I get an error. How can I enable and disable a button from another function?
[code=fw:3pq607vo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ nScreenHeight<span style="color: #000000;">-60</span>, nRowPaint <span style="color: #0000ff;">BTNBMP</span> oBtnAll <span style="color: #0000ff;">OF</span> oWndMain FILENAME cResFilesPad+<span style="color: #ff0000;">'FilterLinks.png'</span> ; <br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>nBrowseOrder := <span style="color: #000000;">2</span>, RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span> <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">4</span> TOOLTIP <span style="color: #ff0000;">'Toon alle planten'</span><br /> oBtnAll:<span style="color: #000000;">Disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> && this works fine<br /> </div>[/code:3pq607vo]
[code=fw:3pq607vo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oBtnAll:<span style="color: #000000;">Enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> &&here I <span style="color: #0000ff;">get</span> an error? I have defined oBtbAll as <span style="color: #00C800;">PUBLIC</span> in Main <span style="color: #00C800;">function</span><br /> </div>[/code:3pq607vo] |
right mouseclick | Hello Manuel,
Sorry, already found the solution:
[code=fw:1a9baaer]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ nScreenHeight<span style="color: #000000;">-60</span>, nRowPaint <span style="color: #0000ff;">BTNBMP</span> oBtnSelectie <span style="color: #0000ff;">OF</span> oWndMain FILENAME cResFilesPad+<span style="color: #ff0000;">'FilterRechts.png'</span> ; <br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>nBrowseOrder := <span style="color: #000000;">4</span>, RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span> <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">4</span> TOOLTIP <span style="color: #ff0000;">'Toon laatste selectie nogmaals'</span><br /> oBtnSelectie:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span>|| oBtnAll:<span style="color: #000000;">Enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtnSelectie:<span style="color: #000000;">Disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBrowseOrder := <span style="color: #000000;">4</span>, RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> nRowPaint := nRowPaint + nShift<br />@ nScreenHeight<span style="color: #000000;">-60</span>, nRowPaint <span style="color: #0000ff;">BTNBMP</span> oBtnAll <span style="color: #0000ff;">OF</span> oWndMain FILENAME cResFilesPad+<span style="color: #ff0000;">'FilterLinks.png'</span> ; <br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>nBrowseOrder := <span style="color: #000000;">2</span>, RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">35</span> <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">4</span> TOOLTIP <span style="color: #ff0000;">'Toon alle planten'</span><br /> oBtnAll:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span>|| oBtnAll:<span style="color: #000000;">Disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtnSelectie:<span style="color: #000000;">Enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBrowseOrder := <span style="color: #000000;">2</span>, RK_SetBrowseArray<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span> &&this way I can enable and diable the buttons<br /> nRowPaint := nRowPaint + nShift + <span style="color: #000000;">10</span><br /> </div>[/code:1a9baaer]
this works perfectly <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
right-click Menu for Control | hi,
when create a CLASS from TControl() i want to add a "right-click Menu"
i do found
[code=fw:2tut1icd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> LButtonUp<span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:2tut1icd]
but nothing for Right Button of Mouse <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
---
do i have to add
[code=fw:2tut1icd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ...<br /> <span style="color: #00C800;">CASE</span> nMsg == WM_RBUTTONDOWN<br /> <span style="color: #00C800;">CASE</span> nMsg == WM_RBUTTONUP</div>[/code:2tut1icd]
and build own Method or does Fivewin have a other Way <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
right-click Menu for Control | Use for this [b:33p6w9gv]DATA bRClicked[/b:33p6w9gv] |
right-click Menu for Control | [quote:11sc0vpj]but nothing for Right Button of Mouse[/quote:11sc0vpj]
TControl is derived from TWindow.
You need to search both TControl and TWindow classes.
You can see from TWindow class
[code=fw:11sc0vpj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> RButtonDown<span style="color: #000000;">(</span> nRow, nCol, nKeyFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bRClicked</span> != <span style="color: #00C800;">nil</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bRClicked</span>, nRow, nCol, nKeyFlags, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> RButtonUp<span style="color: #000000;">(</span> nRow, nCol, nKeyFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bRButtonUp</span> != <span style="color: #00C800;">nil</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bRButtonUp</span>, nRow, nCol, nKeyFlags, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:11sc0vpj]
That means, you need to add method
[code=fw:11sc0vpj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> RButtonDown<span style="color: #000000;">(</span> nRow, nCol, nKeyFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> YourClass</div>[/code:11sc0vpj] |
right-click Menu for Control | hi,
thx for Answer.
i´m not sure that i understand what you say
i do have use
[code=fw:3jprkd8s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">(</span> nMsg, nWParam, nLParam <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGrid <br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #B900B9;">// use for LVS_OWNERDRAWFIXED</span><br /> <span style="color: #00C800;">CASE</span> nMsg == WM_MEASUREITEM<br /> <span style="color: #00C800;">CASE</span> nMsg == WM_DRAWITEM<br /> <span style="color: #B900B9;">// add for Context Menu</span><br /> <span style="color: #00C800;">CASE</span> nMsg == WM_RBUTTONDOWN<br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bRbClick</span> != <span style="color: #00C800;">nil</span><br /> EVAL<span style="color: #000000;">(</span> ::<span style="color: #000000;">bRbClick</span>, ::<span style="color: #000000;">oWnd</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">CASE</span> nMsg == WM_RBUTTONUP<br /> <span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">(</span> nMsg, nWParam, nLParam <span style="color: #000000;">)</span></div>[/code:3jprkd8s]
now you say i "just" need to "override"
[code=fw:3jprkd8s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> RButtonDown <span style="color: #000000;">(</span> nRow, nCol, nKeyFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> YourClass</div>[/code:3jprkd8s]
so i need not to handle WM_RBUTTONDOWN <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
right-click Menu for Control | [quote:1wd7j7xm]
now you say i "just" need to "override"
Code:
METHOD RButtonDown ( nRow, nCol, nKeyFlags ) CLASS YourClass
so i need not to handle WM_RBUTTONDOWN <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[/quote:1wd7j7xm]
Yes.
Wherever the parents have standard methods, you override them in your class and if needed return calling Super method.
Use HandleEvent very sparingly when there is no otherway. |
right-click Menu for Control | hi,
[quote="nageswaragunupudi":3nprckd4]Yes.[/quote:3nprckd4]
GREAT <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[quote="nageswaragunupudi":3nprckd4]Use HandleEvent very sparingly when there is no otherway.[/quote:3nprckd4]
Ok, understood |
rilevazione computer in un aula | Caro Emg,
avendo un computer in cattedra che funge da server ( collegato ad un dominio denominato Lab2) come faccio a rilevare quanti client ci sono collegati e il loro nome da premettere che tutti i client sono collegati al dominio lab2, io vorrei far visualizzare i loro nomi in una tabella ( browse)
è difficile ?
grazie |
rilevazione computer in un aula | Non ne ho idea.
EMG |
rilevazione computer in un aula | in realta dovrei far visualizzare ciò che si vede se clicchiamo su risorse di rete in windows
mi sono scaricato alcuni programmi demo che in qualsiasi computer li metti automaticamente *vedono* i computer collegati e i loro indirizzi ip
Non voglio credre che in xharbour Noi non possiamo farlo
questi programmi usano TCIP perchè ho provato a togliere tcip dalla connessione di rete ( proprietà ) per vedere cosa accadeva infatti è arrivato l'errore che non trovava il protocollo |
rmake error | I am using FWH 7.01. I had that error when compiling report demo : Error :[code:1hpjsjyh]
h:\COMPILER\clipper\linkers\blinker\BIN\blinker.exe @h:\FWH\samples\report\RepDe
mo.lnk
__ __
(«») («») BLINKER DOS Extender and Windows Linker 7.00
⌂
___ Blink and you'll miss it !!
Copyright (c) Assembler Software Manufacturers, Inc. 1990-2002
All Rights Reserved. Serial # BR-056840. Fax (804) 784-2357.
BLINKER : 1119 : no main module found
Error RMAKE/R2001 Exit 1: 'h:\COMPILER\clipper\linkers\blinker\BIN\blinker.exe
@h:\FWH\samples\report\RepDemo.lnk'
H:\FWH\SAMPLES\report>rmake repdem32
RMAKE 1.3 Copyright (c) 1989-1991 Nantucket Corp. All rights reserved.
REPDEM32.RMK(46) Fatal RMAKE/R3012 Syntax error: '@h:\FWH\samples\report\RepDem
o.lnk'
[/code:1hpjsjyh]
repdem32.rmk
[code:1hpjsjyh]
HARBOUR=h:\harbour
clipper=h:\compiler\clipper\clp52
blinker=h:\COMPILER\clipper\linkers\blinker\BIN
report=h:\FWH\samples\report
BCDIR=h:\bcc55
FWDIR=h:\compiler\clipper\fw
makepath[.obj]=".\objh"
.prg.obj:
$(HARBOUR)\bin\harbour $< /Oobjh\$*.c /n/w/i$(FWDIR)\include;$(HARBOUR)\include
$(BCDIR)\bin\bcc32 -c -I$(HARBOUR)\include -oobjh\$*.obj objh\$*.c
RepDemo.obj : RepDemo.prg
REP02.OBJ : REP02.PRG
REP03.OBJ : REP03.PRG
REP12.OBJ : REP12.PRG
REP05.OBJ : REP05.PRG
REP04.OBJ : REP04.PRG
REP09.OBJ : REP09.PRG
REP07.OBJ : REP07.PRG
REP15.OBJ : REP15.PRG
REP08.OBJ : REP08.PRG
REP06.OBJ : REP06.PRG
REP10.OBJ : REP10.PRG
REP13.OBJ : REP13.PRG
REP11.OBJ : REP11.PRG
REP21.OBJ : REP21.PRG
REP20.OBJ : REP20.PRG
REP16.OBJ : REP16.PRG
REP19.OBJ : REP19.PRG
REP17.OBJ : REP17.PRG
REP14.OBJ : REP14.PRG
REP18.OBJ : REP18.PRG
REP01.OBJ : REP01.PRG
REP22.obj : REP22.prg
REP23.obj : REP23.prg
repdemo.exe : repdemo.obj rep01.obj rep02.obj rep03.obj rep05.obj \
rep06.obj rep07.obj rep08.obj rep09.obj \
rep10.obj rep11.obj rep12.obj rep13.obj \
rep14.obj rep15.obj rep16.obj rep17.obj \
rep18.obj rep19.obj rep20.obj rep21.obj \
rep22.obj rep23.obj \
$(FWDIR)\lib\Five.lib $(FWDIR)\lib\FiveC.lib $(report)\RepDemo.lnk RepDemo.rc
SET LIB=$(FWDIR)\lib;$(CLIPPER)\lib
SET OBJ=$(report)\objh
$(blinker)\blinker.exe @$(report)\RepDemo.lnk
rem link.exe /se:2000 /NOE @msRepDemo.lnk
$(bcdir)\bin\brc32 -K RepDemo > rc.log
rem brc RepDemo.rc
RepDemo
[/code:1hpjsjyh]
repdemo.lnk
[code:1hpjsjyh]
BLINKER INCREMENTAL OFF
FI REPDEMO, REP02, REP03, REP12, REP05
FI REP04, REP09, REP07, REP15, REP08
FI REP06, REP10, REP13, REP11, REP21
FI REP20, REP16, REP19, REP17, REP14
FI REP18, REP01, REP22, REP23
DEFBEGIN
name FiveWin
description 'Clipper for Windows library'
exetype Windows 3.1
code preload moveable
data preload moveable
stacksize 10000
heapsize 8500
DEFEND
LIB FIVE.LIB
LIB FiveC.lib
LIB Objects.lib
LIB WINAPI.LIB
LIB CLIPPER.LIB
LIB EXTEND.LIB
LIB DBFNTX.LIB
LIB TERMINAL.LIB
# Fin fichero.
[/code:1hpjsjyh] |
rmake error | You are trying to use Blinker to build a FWH 32 bits exe! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->That make needs to be adapted to 32 bits and use Harbour and ilink32.exe |
rmake para win7 64 bits | Amigos venia usando el commando rmake de clip53 sin problema
hasta que quize compilar en win7 64 bits
y me arroja este error
Esta version de d:\cdata\clip53\bin\rmake artu no es compatible con la version
de windows que estas corriendo. Chequea tu sistema y mira que tu necesitas
una version de (32-bit) or x64 (64-bit) version del programa
Algun link para bajar el rmake actualizado a 64 bits?
(con win 7 a 32 bits si logro compilar)
Utilizo fwh 2005 , bcc53, pelles C |
rmake para win7 64 bits | Arturo,
rmake.exe de Clipper es una aplicación de 16 bits y por eso no funciona en Windows 64. Desafortunadamente no esta disponible su código fuente por lo que no se puede recompilar en 32 bits.
la solución es que migres a un make de 32 bits como el make.exe de Borland, que es bastante parecido al rmake.exe
Tienes ejemplos de uso en FWH\makes\bormake.zip |
rmake para win7 64 bits | Gracias Antonio
No me habia percatado de esa carpeta que mencionas, modificare y probare |
rmake sample for xHarbour with Borland required | Freinds,Can I have a sample rmk file to be used with xHarbour & Borland. I am using FWH 8.08C:\FWH\Makes\Bormakes.zip is for usage with Harbour and most of the libraries does not exist in xHarbour folderFor Eg: echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc echo $(HBDIR)\lib\hbvm.lib + >> b32.bcHBDIR=c:\xharbourBCDIR=C:\Borland\BCC55FWDIR=c:\fwh |
rmake sample for xHarbour with Borland required | Hello,Here is the sample :a => GO.BAT to start with => GO YOURPRG-------- GO.BAT --------------------------------------[code:ertaeade]
if not exist obj md obj
c:\bcc55\bin\make -f datfile.rmk
[/code:ertaeade]
---------------------------------------------
the DATFILE.rmk ( Make-File )
change the => PRG- and OBJ names, bartest.RES, bartest.RC
Bartest.MAP and Bartest.EXE with your file names
----------- DATFILE.RMK ----------------------------------
[code:ertaeade]
#Borland make sample, (c) FiveTech Software 2005
HBDIR=c:\xharbour
BCDIR=c:\bcc55
FWDIR=c:\fwh
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\
# PRG has to be UPPER !!!
PRG = \
bartest.PRG \
bar.PRG \
btnbmp.PRG
# C = \
# two.C
PROJECT : Bartest.exe
Bartest.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) bartest.res
echo off
echo $(BCDIR)\bin\c0w32.obj + > b32.bc
# OBJ-Liste
# -------------
echo obj\bartest.obj \
obj\bar.obj \
obj\btnbmp.obj, + >> b32.bc
echo bartest.exe, + >> b32.bc
echo bartest.map, + >> b32.bc
# Fivewin Lib`s für xHARBOUR
# --------------------------------------
echo $(FWDIR)\lib\Fivehx.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
# xHARBOUR-Lib`s
# -----------------------
echo $(HBDIR)\lib\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\vm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\macro.lib + >> b32.bc
echo $(HBDIR)\lib\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\debug.lib + >> b32.bc
echo $(HBDIR)\lib\common.lib + >> b32.bc
echo $(HBDIR)\lib\pp.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc
echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc
# Uncomment these two lines to use Advantage RDD
# echo $(HBDIR)\lib\rddads.lib + >> b32.bc
# echo $(HBDIR)\lib\Ace32.lib + >> b32.bc
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc
# Dbfstruct.res includes Symbol ICON : favorite.ico
# --------------------------------------------------------------------------
IF EXIST bartest.res echo bartest.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
# $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include > clip.log
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp
bartest.res : bartest.rc
$(BCDIR)\bin\brc32.exe -r bartest.rc
[/code:ertaeade]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
rmake with windows 7 | What do you do about such message :
C:\g_programs\programs\clipper\FWH\tdata\sitex>echo off
"hello IBM_machine "
This version of c:\g_programs\fwh\bin\RMAKE.EXE is not compatible with the versi
on of Windows you're running. Check your computer's system information to see wh
ether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then c
ontact the software publisher.
The system cannot find the batch label specified - error |
rmake with windows 7 | You can not run 16 bits apps on Windows 64 bits... |
rmake with windows 7 | C:\programs\programs\clipper\FWH\tdata\sitex>c:\programs\fwh\bin\rmake
tmain.rmk
/xs700
This version of c:\programs\fwh\bin\RMAKE.EXE is not compatible with
the version
of Windows you're running. Check your computer's system information
to see whet
her you need a x86 (32-bit) or x64 (64-bit) version of the program,
and then con
tact the software publisher.
Any solutions to run my make file under 64 bit |
rmake with windows 7 | Use DosBox, but that is not a real solution, just a workaround with many limitations... |
rmake with windows 7 | what about 32 bit make program |
rmake with windows 7 | No problem about 32 bits applications |
rmake with windows 7 | Could you please suggest a 32 bit make program and if possible specify its place to download it . |
rmake.exe 32 bit | Hi,
I'm looking for a 32 bit totally compatible to rmake.exe dated 1996.
I would like to avoid editing rmk files...
Any hints?
marco |
rmk file goes crazy. | I have several directories for separate products. All the rmk files are almost identical except for the prgs and obj's.
One directory compiles perfect.
Now another directory that I've been compiling over and over for weeks now comes up with a message
[b:3gj402q1]brcc32 /r cashteam.rc "brcc32" is not recognized as internal or external program etc.[/b:3gj402q1]
Here is the code of the rmk file
There is nothing in the rmk file that calls brcc32.
Help.
[code=fw:3gj402q1]<div class="fw" id="{CB}" style="font-family: monospace;">HBDIR=e:\harbour<br />BCDIR=c:\borland\bcc55<br />FWDIR=e:\fwh89<br /><br />#HBDIR=f:\harbour1009<br />#FWDIR=f:\fwh1009<br /><br />#change these paths as needed<br /><br />.path.OBJ = .\obj<br />.path.PRG = .\<br />.path.CH = $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include<br />.path.C = .\<br />.path.rc = .\<br /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG = \<br />CASHVER3.PRG\ <br />network.PRG \<br />head1.PRG \<br />airrpt.PRG \<br />con13wk1.PRG \<br />msgDate.PRG \<br />newinv.PRG \ <br />13jbrow.PRG \ <br />13five.PRG \ <br />gl3_13.PRG \ <br />gl13.PRG \ <br />drill13.PRG \ <br /><span style="color: #0000ff;">window</span>.PRG \ <br />tabs.PRG \ <br />compdril.PRG\<br /><span style="color: #0000ff;">xbrowse</span>.PRG \ <br />NEWGRAPH.PRG\<br />13WEEK.PRG \ <br />ACTBAL1.PRG \<br />ACTBRW.PRG \ <br />ACTUALPL.PRG\<br />ACTVSPLA.PRG\ <br />ALLPRN.PRG \ <br />ASCBAL.PRG \ <br />ASCBAL5.PRG \ <br />ASCBAL6.PRG \<br />ASCII.PRG \ <br />BALANCE.PRG \<br />BALBROWS.PRG\ <br />BALBRW.PRG \ <br />BANKER.PRG \ <br />BASE2.PRG \ <br />BREVEN1.PRG \<br />BSAUDIT1.PRG\ <br />BUDGET.PRG \ <br />BYPRODCO.PRG\<br />CALC.PRG \ <br />CASHFLW1.PRG\ <br />CASHIN.PRG \<br />CEDLI.PRG \ <br />CFBROWSE.PRG\ <br />CFTOTAL.PRG \ <br />CONCONS.PRG \<br />CONSOL.PRG \ <br />CONSOLRE.PRG\ <br />CONTBAL1.PRG\ <br />CONTBAL2.PRG\<br />CONTBAL3.PRG\ <br />CONTBAL4.PRG\ <br />CONTBAL5.PRG\ <br />CONTRAC2.PRG\<br />CONTRACT.PRG\ <br />CONVERT.PRG \ <br />COPY1.PRG \ <br />COPYANOT.PRG\<br />COSTALLO.PRG\ <br />COSTDATA.PRG\ <br />COSTPAY.PRG \ <br />COSTPROD.PRG\<br />COSTSALE.PRG\ <br />CST.PRG \ <br />CUST.PRG \ <br />DEFERRAL.PRG\<br />DEPOSITS.PRG\ <br />DEPRE1.PRG \ <br />EDITCELL.PRG\ <br />EOQ.PRG \<br />EQUIP.PRG \ <br />EXP1.PRG \ <br />EXP2.PRG \ <br />EXPALLOC.PRG\<br />EXPCF.PRG \ <br />EXPLAIN.PRG \<br />EXPTWO.PRG \ <br />Errsysw.PRG \ <br />FASTCALC.PRG\ <br />FINANCE.PRG \ <br />FIVECOL.PRG \<br />FIVEYEAR.PRG\ <br />FIX.PRG \<br />FIXGL.PRG \ <br />FIXMEM.PRG \ <br />FIXVARCS.PRG\ <br />GL2.PRG \<br />GL2WEEK.PRG \ <br />GL3.PRG \<br />GL4.PRG \ <br />GL5.PRG \<br />GL6.PRG \ <br />GLOSSARY.PRG\ <br />GLRO.PRG \ <br />GLREG.PRG \<br />IMPORT1.PRG \<br />IMPTACYR.PRG\ <br />IMPTMTH.PRG \ <br />IMPSEP.PRG \ <br />INDIRECT.PRG\<br />INVNTORY.PRG\ <br />INDEXPAG.PRG \<br />JBROWSE.PRG \ <br />JCONTROL.PRG\ <br />JOINTVEN.PRG\<br />LAUNCHF5.PRG\ <br />LAUNCHF6.PRG\ <br />LENDING.PRG \ <br />LISTDELE.PRG\<br />LISTDELP.PRG\ <br />LOCATOR.PRG \ <br /><span style="color: #0000ff;">MATCH</span>.PRG \<br />MISCBROW.PRG\ <br />MORECED.PRG \ <br />MTHDATA.PRG \ <br />MTHSEP.PRG \<br />MULTI1.PRG \ <br />NEWWIN2.PRG \<br />NEWWIN3.PRG \<br />NEWWIN4.PRG \<br />NEWWIN5.PRG \<br />NEWWIN6.PRG \<br />NEWBANKE.PRG\<br />NEWBREVE.PRG\ <br />NEWCONSO.PRG\ <br />NEWCONT.PRG \ <br />NEWDRILL.PRG\<br />NEWFIVE.PRG \ <br />NEWFRESH.PRG\ <br />NEWRATIO.PRG\ <br />NEWREGIS.PRG\ <br />NEWSALES.PRG\ <br />NEWTAX.PRG \<br />NEWUNIT.PRG \ <br />NEWWIZ.PRG \ <br />NEWTRANS.PRG\<br />NEWWIN.PRG \<br />NFIX.PRG \<br />OPENDBF.PRG \ <br />OTHERAP.PRG \ <br />OTHERPRG.PRG\<br />OVER.PRG \ <br />PAYROLL.PRG \<br />PLAN2.PRG \ <br />PLAN3.PRG \<br />PLEDIT.PRG \ <br />PRICE.PRG \<br />PRNEXPCF.PRG\ <br />PRNSALES.PRG\<br />PSPREAD1.PRG\ <br />QUICKPRI.PRG\ <br />RANDY1.PRG \ <br />RATIONEW.PRG\<br />REVANALY.PRG\ <br />ROLLIT.PRG \ <br />ROLLOVER.PRG\ <br />SALEASST.PRG\<br />SALEDRIL.PRG\ <br />SALEPROD.PRG\ <br />SALESBY.PRG \ <br />SERIAL.PRG \ <br />SETCHART.PRG\ <br />TERMBROW.PRG\ <br />TFIX.PRG \ <br />TGRAPH.PRG \<br />TOTAL.PRG \<br />TXTFILE.PRG \ <br />UTIL.PRG \ <br />WINSALAR.PRG\ <br />XNOTE.PRG \ <br />EVA.PRG \<br />ZSCORE.PRG \<br />REFORMAT.PRG\<br />FAKE.PRG<br /><br /><br /># removed working problems<br /><br /># WINGRAPH.PRG<br /># LOTTO.PRG <span style="color: #000000;">(</span>not in win.lnk<span style="color: #000000;">)</span><br /># GLLR.PRG <br /># NEWDRIVE.PRG<br /># BSAUDIT.PRG<br /># GL7.PRG \<br /># msgDate.PRG \<br /><br /># set <span style="color: #0000ff;">up</span> fake.prg <span style="color: #0000ff;">to</span> handle missing functions<br /><br />#C = <br />#two.C <br /><br />PROJECT : <span style="color: #000000;">cashteam</span>.exe<br /><br /><br />cashteam.exe : $<span style="color: #000000;">(</span>PRG:.PRG=.OBJ<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>C:.C=.OBJ<span style="color: #000000;">)</span> cashteam.res<br /><br /> echo off<br /> <br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\c0w32.obj + > b32.bc<br /> echo obj\CASHVER3.obj \<br /> obj\network.obj \<br /> obj\head1.obj \<br /> obj\msgDate.obj \<br /> obj\con13wk1.obj \<br /> obj\airrpt.obj \<br /> obj\newinv.obj \ <br /> obj\13jbrow.obj \ <br /> obj\13five.obj \ <br /> obj\gl13.obj \ <br /> obj\gl3_13.obj \ <br /> obj\drill13.obj \ <br /> obj\tabs.obj \ <br /> obj\reformat.obj \<br /> obj\compdril.obj \<br /> obj\<span style="color: #0000ff;">xbrowse</span>.obj \ <br /> obj\NEWGRAPH.obj \ <br /> obj\errsysw.obj \ <br /> obj\GLREG.obj \<br /> obj\indexpag.obj \<br /> obj\newwin2.obj \<br /> obj\newwin3.obj \<br /> obj\newwin4.obj \<br /> obj\newwin5.obj \<br /> obj\newwin6.obj \<br /> obj\allprn.obj \ <br /> obj\zscore.obj \<br /> obj\13WEEK.obj \<br /> obj\ACTBAL1.obj \<br /> obj\ACTBRW.obj \<br /> obj\actualpl.obj \<br /> obj\ACtvSPLA.obj \<br /> obj\ASCBAL.obj \<br /> obj\ASCBAL5.obj \<br /> obj\ASCBAL6.obj \<br /> obj\ASCII.obj \<br /> obj\BALANCE.obj \<br /> obj\BALBROWS.obj \<br /> obj\BALBRW.obj \<br /> obj\BANKER.obj \<br /> obj\BASE2.obj \<br /> obj\BREVEN1.obj \<br /> obj\BSAUDIT1.obj \<br /> obj\BUDGET.obj \<br /> obj\BYPRODCO.obj \<br /> obj\CALC.obj \<br /> obj\CASHFLW1.obj \ <br /> obj\CASHIN.obj \<br /> obj\CEDLI.obj \<br /> obj\CFBROWSE.obj \<br /> obj\CFTOTAL.obj \<br /> obj\CONCONS.obj \<br /> obj\CONSOL.obj \<br /> obj\CONSOLRE.obj \<br /> obj\CONTBAL1.obj \<br /> obj\CONTBAL2.obj \<br /> obj\CONTBAL3.obj \<br /> obj\CONTBAL4.obj \<br /> obj\CONTBAL5.obj \<br /> obj\CONTRAC2.obj \<br /> obj\CONTRACT.obj \<br /> obj\CONVERT.obj \<br /> obj\COPY1.obj \<br /> obj\COPYANOT.obj \<br /> obj\COSTALLO.obj \<br /> obj\COSTDATA.obj \<br /> obj\COSTPAY.obj \<br /> obj\COSTPROD.obj \<br /> obj\COSTSALE.obj \<br /> obj\CST.obj \<br /> obj\CUST.obj \<br /> obj\DEFERRAL.obj \<br /> obj\DEPOSITS.obj \<br /> obj\DEPRE1.obj \<br /> obj\EDITCELL.obj \<br /> obj\EOQ.obj \<br /> obj\EQUIP.obj \<br /> obj\EXP1.obj \<br /> obj\EXP2.obj \<br /> obj\EXPALLOC.obj \<br /> obj\EXPCF.obj \<br /> obj\EXPLAIN.obj \<br /> obj\EXPTWO.obj \<br /> obj\FASTCALC.obj \<br /> obj\FINANCE.obj \<br /> Obj\FIVECOL.obj \<br /> Obj\FIVEYEAR.obj \<br /> obj\FIX.obj \<br /> obj\FIXGL.obj \<br /> obj\FIXMEM.obj \<br /> obj\FIXVARCS.obj \<br /> obj\GL2.obj \<br /> obj\GL2WEEK.obj \<br /> obj\GL3.obj \<br /> obj\GL4.obj \<br /> obj\GL5.obj \<br /> obj\GL6.obj \<br /> obj\GLOSSARY.obj \<br /> obj\GLRO.obj \<br /> obj\IMPORT1.obj \<br /> obj\IMPTACYR.obj \<br /> obj\IMPTMTH.obj \<br /> obj\INDIRECT.obj \<br /> obj\INVNTORY.obj \<br /> obj\JBROWSE.obj \<br /> obj\JCONTROL.obj \<br /> obj\JOINTVEN.obj \<br /> obj\LAUNCHF5.obj \<br /> obj\LAUNCHF6.obj \<br /> obj\LENDING.obj \<br /> obj\LISTDELE.obj \<br /> obj\LISTDELP.obj \<br /> obj\LOCATOR.obj \<br /> obj\<span style="color: #0000ff;">MATCH</span>.obj \<br /> obj\MISCBROW.obj \<br /> obj\MORECED.obj \<br /> obj\MTHDATA.obj \<br /> obj\MTHSEP.obj \<br /> obj\MULTI1.obj \ <br /> obj\NEWBANKE.obj \<br /> obj\NEWBREVE.obj \<br /> obj\NEWCONSO.obj \<br /> obj\NEWCONT.obj \<br /> obj\NEWDRILL.obj \<br /> obj\NEWFIVE.obj \<br /> obj\NEWFRESH.obj \<br /> obj\NEWRATIO.obj \<br /> obj\NEWREGIS.obj \<br /> obj\NEWSALES.obj \<br /> obj\NEWTAX.obj \<br /> obj\NEWUNIT.obj \<br /> obj\NEWWIZ.obj \<br /> obj\NFIX.obj \<br /> obj\OPENDBF.obj \<br /> obj\OTHERAP.obj \<br /> obj\OTHERPRG.obj \<br /> obj\OVER.obj \<br /> obj\PAYROLL.obj \<br /> obj\PLAN2.obj \<br /> obj\PLAN3.obj \<br /> obj\PLEDIT.obj \<br /> obj\PRICE.obj \<br /> obj\PRNEXPCF.obj \<br /> obj\PRNSALES.obj \<br /> obj\PSPREAD1.obj \<br /> obj\QUICKPRI.obj \<br /> obj\RANDY1.obj \<br /> obj\RATIONEW.obj \<br /> obj\REVANALY.obj \<br /> obj\ROLLIT.obj \<br /> obj\ROLLOVER.obj \<br /> obj\SALEASST.obj \<br /> obj\SALEDRIL.obj \<br /> obj\SALEPROD.obj \<br /> obj\SALESBY.obj \<br /> obj\SERIAL.obj \<br /> obj\SETCHART.obj \<br /> obj\TERMBROW.obj \<br /> obj\TFIX.obj \<br /> obj\tgraph.obj \<br /> obj\TOTAL.obj \<br /> obj\TXTFILE.obj \<br /> obj\UTIL.obj \<br /> obj\IMPSEP.obj \ <br /> obj\WINSALAR.obj \<br /> obj\XNOTE.obj \<br /> obj\EVA.obj \<br /> obj\newtrans.obj \<br /> obj\newwin.obj \<br /> obj\<span style="color: #0000ff;">window</span>.obj \ <br /> obj\fake.obj, + >> b32.bc<br /><br /><br /> <br /> echo cashteam.exe, + >> b32.bc<br /> echo cashteam.map, + >> b32.bc<br /> <br /> echo $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveH.lib $<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\lib\FiveHC.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrtl.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbvm.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\gtgui.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hblang.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbmacro.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbrdd.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddntx.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddcdx.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddfpt.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbsix.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbdebug.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcommon.lib+ >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbpp.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcT.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcpage.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbw32.lib + >> b32.bc<br /> <br /> #rem harbour <span style="color: #000000;">1009</span> <br /> #rem echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbwin.lib + >> b32.bc<br /> #rem echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\hbcplr.lib + >> b32.bc<br /> #rem echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\%GT%.lib + >> b32.bc<br /> <br /> #rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br /> #rem echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\rddads.lib + >> b32.bc<br /> #rem echo $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\lib\Ace32.lib + >> b32.bc<br /><br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\cw32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\import32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\odbc32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\nddeapi.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\iphlpapi.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\msimg32.lib + >> b32.bc<br /> echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\PSDK\rasapi32.lib, >> b32.bc<br /><br /> # borland <span style="color: #000000;">582</span><br /> <br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\cw32.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\import32.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\odbc32.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\nddeapi.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\iphlpapi.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\msimg32.lib + >> b32.bc<br /> #echo $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\lib\rasapi32.lib, >> b32.bc<br /> <br /><br /> <span style="color: #00C800;">IF</span> EXIST cashteam.res echo cashteam.res >> b32.bc<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc<br /> del b32.bc<br /><br />.PRG.OBJ:<br /> $<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\bin\harbour $< /b /N /W /Oobj\ /I$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include > clip.log<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include -oobj\$& obj\$&.c <br /><br />.C.OBJ:<br /> echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br /> echo -I$<span style="color: #000000;">(</span>HBDIR<span style="color: #000000;">)</span>\include;$<span style="color: #000000;">(</span>FWDIR<span style="color: #000000;">)</span>\include >> tmp<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\bcc32 -oobj\$& @tmp $&.c<br /> del tmp<br /><br /> cashteam.res : <span style="color: #000000;">cashteam</span>.rc<br /> $<span style="color: #000000;">(</span>BCDIR<span style="color: #000000;">)</span>\bin\brc32.exe -r cashteam.rc<br /><br /></div>[/code:3gj402q1] |
rmk file goes crazy. | I discovered what makes the compiler call for brcc32. It occurs when I change the .rc file and then all recompile have the problem.
I certainly have no clue as to what the cause is or how to fix it. HELP |
rmk file goes crazy. | [quote="hag":pyygzkhb][b:pyygzkhb]brcc32 /r cashteam.rc "brcc32" is not recognized as internal or external program etc.[/b:pyygzkhb][/quote:pyygzkhb]
There is no "brcc32" in your make file.
EMG |
rmk file goes crazy. | Thats what is so crazy. If i compile my rc file it produces the message. It seems that the compiler is having a problem compiling the rc file.
If I use an old rc file no problem. |
rmk file goes crazy. | Enrico:
I don't have a copy of borland bcc55. If you know where i can get a copy i can try an re-install. It is baffleing. |
rmk file goes crazy. | [url:3e5j3d37]http://www.fivetechsoft.com/english/downloads.html[/url:3e5j3d37]
EMG |
rond box | how I can create A rondbox over a black box ? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.