topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
iconize window | I have this working code in my programs:
........ ON RESIZE WinResize(oWnd) .......
[code:272f0npk]
STATIC FUNCTION WinResize( oWnd )
IF IsIconic( oWnd:nWnd )
// my code what to do when first iconized
ELSE
// do what is needed here
ENDIF
RETURN .T.
[/code:272f0npk]
I use this not for starting timer but for other purposes. this works for starting a timer also |
iconize window | Enrico and James,
thank you for jumping in.
As James said, "on resize" would trigger the timer start every time a user resizes the window of my app.
The intention is the following:
In our company there are 5 workstations which create invoices.
If a new invoice has been created a popup window with a browse should open to show the most recent invoices which not yet have been printed.
My timer looks in 5 different dbf files for new invoices. If he found one i do deactivate the timer.
So the user can start all printing and optical storage routines.
When he is finished he will collapse the app window into the task bar.
For the moment i have a extra button to iconize.
But our users are usesd to click on the iconize symbol.
That's my problem.
Regards,
Detlef |
iconize window | Detlef,
Perhaps what you want is to start the timer on bLostFocus and stop it on bGotFocus.
James |
iconize window | James,
this sounds like a good idea.
I'll try it.
Thanks, James |
iconize window | [quote="James Bott":1rpmb3sy]>Or use ON RESIZE.
A good idea, but the timer would be triggered for any resize not just iconizeng.[/quote:1rpmb3sy]
This is not true. ON RESIZE automatically provides nSizeType that can be any of the following values:
[code:1rpmb3sy]#define SIZE_RESTORED 0
#define SIZE_MINIMIZED 1
#define SIZE_MAXIMIZED 2
#define SIZE_MAXSHOW 3
#define SIZE_MAXHIDE 4[/code:1rpmb3sy]
EMG |
iconize window | Detlef,
>If a new invoice has been created a popup window with a browse should open to show the most recent invoices which not yet have been printed.
I assume you mean that the app is iconized (or better, not in focus) when this window pops up? Is this so they know there is a new invoice to handle? Wouldn't you really want a popup notice of a new invoice even if the app isn't iconized and they were working in it?
Is this happening on all 5 workstations? Are any one of the five people supposed to handle the new invoice? Can't the invoices just be printed automatically without user intervention?
>My timer looks in 5 different dbf files for new invoices.
Hmm. You have a different DBF for each workstation? Why? Can't you put them all in the same DBF?
>If he found one i do deactivate the timer. So the user can start all printing and optical storage routines. When he is finished he will collapse the app window into the task bar.
I don't see why you would need to deactivate the timer. After the timer routine finds a new invoice it pops up the window, then ignores that new invoice and starts looking for another. If the timer isn't checking too often (say once a minute), it isn't going to affect the performance of the program while the user is working. That way while they are working it would still notify them of a new invioce.
>For the moment i have a extra button to iconize.
>But our users are usesd to click on the iconize symbol.
As I mentioned in my previous message, lots of users are just going to click on another task on the taskbar or open another task on the menu--this is one less click than iconizing then clicking on another task. There is no need to iconize an app.
I think there are better ways to handle your problem.
James |
iconize window | Enrico,
>This is not true. ON RESIZE automatically provides nSizeType that can be any of the following values:
Ah, I didn't know that. But in his situation I think checking for iconized is not going to work. See my other message discussing his problem.
James |
iconize window | [quote="James Bott":vg8s7oxj]But in his situation I think checking for iconized is not going to work. See my other message discussing his problem.[/quote:vg8s7oxj]
I'm not sure to have understood the Detlef's problem but I tend to agree.
EMG |
iconize window | James,
thanks for your thorough thoughts about my problem.
I know that there are better ways to handle this task.
But this would end in a deep redesign of our invoicing system.
Unfortunatelly my boss would only accept such work if it would be done in a week <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
So i must must find a quick ( and dirty ) solution for my problem.
Enrico helped me with his information about nSizeType which i didn't know before.
Thanks Enrico and James,
Detlef |
iconize window | Detlef,
>So i must must find a quick ( and dirty ) solution for my problem.
>Enrico helped me with his information about nSizeType which i didn't know before.
OK, I understand. However, checking for iconized is not going to tell you if they just switched to another app (without iconizing), so the bLostFocus/bGotFocus system would be a better solution and doesn't require any more work.
However, I still think you should just run the timer all the time. I don't see any problem with that. This should require even less work.
You should be able to do either one in an hour or less.
James |
iconize window | Detlef,
try the following
[code:1s4uds4q]ACTIVATE WINDOW ::oWnd ;
;//ON INIT ;
ON RESIZE If( nSizeType == SIZE_MINIMIZED, <StartTimer>, <EndTimer> ) ;
VALID ::End()[/code:1s4uds4q]
It should work |
iconize window | Danke Stefan,
werde versuchen, deinen Tipp zu verwerten.
Gruß,
Detlef |
icono en tooltips | Estimados,
Se puede agregar un icono en el tooltips?
Como?
Gracias. |
icono en tooltips | Gustavo,
Sí. si se puede. Vamos a elaborar un ejemplo que lo muestre. |
iconos orden cabecera browse | aun SIN PROBAR :
[code=fw:2149a47t]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETINDICATORDESCENT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// obrw:hWnd , nCol </span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> <span style="color: #000000;">[</span> browse setIndicatorImage : <span style="color: #000000;">[</span>NSImage imageNamed:@<span style="color: #ff0000;">"NSDescendingSortIndicator"</span> <span style="color: #000000;">]</span><br /> inTableColumn: <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> browse tableColumns <span style="color: #000000;">]</span> objectAtIndex : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ; <br /><span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETINDICATORASCEND <span style="color: #000000;">)</span> <span style="color: #B900B9;">// obrw:hWnd , nCol </span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> <span style="color: #000000;">[</span> browse setIndicatorImage : <span style="color: #000000;">[</span>NSImage imageNamed:@<span style="color: #ff0000;">"NSAscendingSortIndicator"</span> <span style="color: #000000;">]</span><br /> inTableColumn: <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> browse tableColumns <span style="color: #000000;">]</span> objectAtIndex : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ; <br /><span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span>COLORCREATE<span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> NSColor * <span style="color: #0000ff;">color</span> = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSColor alloc <span style="color: #000000;">]</span> colorWithCalibratedRed: <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> green: <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> blue: <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> alpha: <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span> ;<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> <span style="color: #0000ff;">color</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span>GRADIENTCREATE<span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSGradient * gradient = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSGradient alloc <span style="color: #000000;">]</span> initWithStartingColor: <span style="color: #000000;"><span style="color: #000000;">(</span>NSColor</span> *<span style="color: #000000;">)</span>hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <br /> endingColor: <span style="color: #000000;"><span style="color: #000000;">(</span>NSColor</span> *<span style="color: #000000;">)</span>hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span>;<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> gradient <span style="color: #000000;">)</span>;<br /><br /><span style="color: #000000;">}</span> <br /> <br /><br /> <br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETBACKGRAUNDCOLOR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>; <br /> <span style="color: #000000;">[</span> browse setBackgroundColor:<span style="color: #000000;"><span style="color: #000000;">(</span>NSColor</span> *<span style="color: #000000;">)</span>hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span>;<br /> <br /><span style="color: #000000;">}</span><br /> </div>[/code:2149a47t] |
iconos orden cabecera browse | El Gradiente no esta aun probado .
Las otras funciones estan corregidas y FUNCIONANDO .
POngo el codigo corregido :
[code=fw:3qsd56k8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETINDICATORDESCENT <span style="color: #000000;">)</span> <span style="color: #B900B9;">// obrw:hWnd , nCol</span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #000000;">[</span> browse setIndicatorImage : <span style="color: #000000;">[</span> NSImage imageNamed:@<span style="color: #ff0000;">"NSDescendingSortIndicator"</span> <span style="color: #000000;">]</span><br /> inTableColumn: <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> browse tableColumns <span style="color: #000000;">]</span> objectAtIndex : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETSELECTORSTYLE <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">[</span> browse setSelectionHighlightStyle: <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span>; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETINDICATORASCEND <span style="color: #000000;">)</span> <span style="color: #B900B9;">// obrw:hWnd , nCol</span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">[</span> browse setIndicatorImage : <span style="color: #000000;">[</span> NSImage imageNamed:@<span style="color: #ff0000;">"NSAscendingSortIndicator"</span> <span style="color: #000000;">]</span><br /> inTableColumn: <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> browse tableColumns <span style="color: #000000;">]</span> objectAtIndex : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ; <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span>COLORCREATE<span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSColor * <span style="color: #0000ff;">color</span> = <span style="color: #000000;">[</span> NSColor colorWithCalibratedRed: <span style="color: #000000;"><span style="color: #000000;">(</span></span> hb_parnl<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>/<span style="color: #000000;">255.0</span> <span style="color: #000000;">)</span> green: <span style="color: #000000;"><span style="color: #000000;">(</span></span> hb_parnl<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>/<span style="color: #000000;">255.0</span> <span style="color: #000000;">)</span> blue: <span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>/<span style="color: #000000;">255.0</span> <span style="color: #000000;">)</span> alpha: <span style="color: #000000;">(</span> hb_parnl<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span>/<span style="color: #000000;">100.0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span> ;<br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> <span style="color: #0000ff;">color</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> BRWSETBACKGRAUNDCOLOR <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSTableView * browse = <span style="color: #000000;">(</span> NSTableView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">[</span> browse setBackgroundColor:<span style="color: #000000;"><span style="color: #000000;">(</span>NSColor</span> *<span style="color: #000000;">)</span>hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span>;<br /> <br /><span style="color: #000000;">}</span><br /> </div>[/code:3qsd56k8] |
iconos orden cabecera browse | Manuel,
Implementados los nuevos métodos para el próximo build, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
En cuanto a la función ColorCreate(), tenemos ya una nRGBColor() que esta en printers.m, junto a otras más para obtener los valores de cada componente. |
iconos orden cabecera browse | [quote="Antonio Linares":1yqma0wq]Manuel,
En cuanto a la función ColorCreate(), tenemos ya una nRGBColor() que esta en printers.m, junto a otras más para obtener los valores de cada componente.[/quote:1yqma0wq]
No las habia visto . Perfecto . Los parametros a pasar en nRGBcolor() numeran tambien de 0 a 255 o son decimales ? |
iconos orden cabecera browse | Manuel,
La que ya tenemos usa valores decimales. Igual deberiamos cambiarla para que use valores del 0 al 255, como tu has hecho en tu función.
De momento solo se ha usado en la impresión. Revisa el nuevo ejemplo TestPrn2.prg |
iconos orden cabecera browse | Estimado al compilar testprn2 y testprn
Me envia este msg
duplicate symbol _HB_FUN_SETTEXTCOLOR in:
./../lib/libfivec.a(printers.o)
./../lib/libfivec.a(says.o)
ld: 1 duplicate symbol for architecture x86_64
collect2: ld returned 1 exit status
done!
./build.sh: line 71: ./testprn.app/Contents/MacOS/testprn: No such file or directory
macmini:samples server$
Saludos
Osvaldo Ramirez |
iconos orden cabecera browse | It is fixed in the most recent FiveMac <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
iconos vs. XP | Amigos.
Tengo una app en FW 2.1, los dialogos en W98 muestran los iconos de la barra del CAPTION perfectamente, en XP no se muestran, solo aparece un cuadradito.
De que forma se puede resolver esto?
Gracias. |
iconos vs. XP | Gustavo,
Puedes poner un ejemplo de como estás asignando el icono ? gracias |
iconos vs. XP | Antonio,
[code:1brk2hsf]
local oI, oD
define icon oI resource "MEGA"
define dialog oD resource "PADRONES" title "Clientes - Padrón General" icon oI[/code:1brk2hsf] |
iconos vs. XP | Antonio,
[quote="Antonio Linares":1d5dmksx]Gustavo,
Puedes poner un ejemplo de como estás asignando el icono ? gracias[/quote:1d5dmksx]
Esta bien la forma de implementarlo? |
icons and bmps | looking for free and royalty free bitmaps and icons. Any suggestions? |
icons and bmps | Harvey,
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=118372#p118372">viewtopic.php?p=118372#p118372</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=71603#p71603">viewtopic.php?p=71603#p71603</a><!-- l -->
[url:2xbwbu7s]http://www.iconfinder.com/[/url:2xbwbu7s] |
icons and bmps | Thanks for your help. |
idea for Fivetech | Antonio,
Can you please look at <!-- m --><a class="postlink" href="https://github.com">https://github.com</a><!-- m -->?
Maybe users could help to improve FWH!!.
Thanks. |
identify Type of DBF | hi,
does Fivewinhave a Function to identify Type of DBF <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
i mean Header of DBF
[code=fw:2igdxjbw]<div class="fw" id="{CB}" style="font-family: monospace;"> nHandle := FOPEN<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /> FSEEK<span style="color: #000000;">(</span> nHandle, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Move pointer to first byte</span><br /> FREAD<span style="color: #000000;">(</span> nHandle, @cBuffer, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// FCLOSE( nHandle )</span><br /> nType := <span style="color: #0000ff;">ASC</span><span style="color: #000000;">(</span> cBuffer <span style="color: #000000;">)</span><br /> FCLOSE<span style="color: #000000;">(</span> nHandle <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// 02h FoxBASE</span><br /> cDbfType = <span style="color: #ff0000;">'Foxbase'</span><br /> cDriver := <span style="color: #ff0000;">"FOXCDX"</span><br /> cInxExt := <span style="color: #ff0000;">"CDX"</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">3</span> <span style="color: #B900B9;">// 03h FoxBASE+/Dbase III plus, no memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">4</span> <span style="color: #B900B9;">//* 04h dbase IV without memofile</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">5</span> <span style="color: #B900B9;">//* 05h dbase V without memofile</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">7</span> <span style="color: #B900B9;">//* 07h visual object for dbase III without memofile</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">48</span> <span style="color: #B900B9;">// 30h Visual FoxPro</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">49</span> <span style="color: #B900B9;">// 31h Visual FoxPro, autoincrement enabled</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">67</span> <span style="color: #B900B9;">// 43h dBASE IV SQL table files, no memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">99</span> <span style="color: #B900B9;">// ???</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">123</span> <span style="color: #B900B9;">//* 7Bh "dbase IV with memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">131</span> <span style="color: #B900B9;">// 83h FoxBASE+/dBASE III PLUS, with memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">135</span> <span style="color: #B900B9;">//* 87h visual object for dbase III with memofile</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">139</span> <span style="color: #B900B9;">// 8Bh dbase IV with memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">142</span> <span style="color: #B900B9;">//* 8Eh dbase IV with SQL table</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">179</span> <span style="color: #B900B9;">//* B3h .dbv memo and dbt memo flagship</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">203</span> <span style="color: #B900B9;">// 0xCB dBASE IV SQL table files, with memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">229</span> <span style="color: #B900B9;">//* E5h HiPer-Six format with SMT memo file</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">245</span> <span style="color: #B900B9;">// F5h FoxPro 2.x (or earlier) with memo</span><br /> <span style="color: #00C800;">CASE</span> nType = <span style="color: #000000;">251</span> <span style="color: #B900B9;">// FBh FoxBASE</span><br /> <span style="color: #00C800;">ENDCASE</span></div>[/code:2igdxjbw]
i want to SET "right" RDD to use |
identify Type of DBF | Sorry Jimmy, I honestly didn't understand your question. Are you referring to this? Explain better, please.
[url:3gibt7w8]https://vivaclipper.wordpress.com/2013/07/17/c5_rddsetdefault/[/url:3gibt7w8]
[url:3gibt7w8]https://vivaclipper.wordpress.com/2013/07/25/clipper-5-x-drivers-guide/[/url:3gibt7w8]
Regards, saludos. |
identify Type of DBF | hi,
[quote="karinha":24pxcwz4]didn't understand your question. Are you referring to this? Explain better, please.[/quote:24pxcwz4]
i often get DBF which e.g. "Original" DBU can´t open as it have only NTX RDD as default
now i want to "identify" Type of DBF using 1st Byte of DBF Header
my Question is : does Fivewin already have a Function for it <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
identify Type of DBF | Dear Jimmy,
As far as I remember FWH does not provide such function.
I guess Harbour should be the one to provide it, maybe it has it... |
identify Type of DBF | As far as (x)Harbour is concerned, we need to decide whether to open VIA "DBFNTX" or "DBFCDX".
In our functions we use this logic internally, when we open DBF internally:
[code=fw:1oazeu8e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> cFileSetExt<span style="color: #000000;">(</span> cDbf, <span style="color: #ff0000;">"fpt"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> .or. File<span style="color: #000000;">(</span> cFileSetExt<span style="color: #000000;">(</span> cDbf, <span style="color: #ff0000;">"cdx"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// use DBFCDX</span><br />elseif File<span style="color: #000000;">(</span> cFileSetExt<span style="color: #000000;">(</span> cDbf, <span style="color: #ff0000;">"dbt"</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// use DBFNTX</span><br /><span style="color: #00C800;">else</span><br /> <span style="color: #B900B9;">// use RDDSETDEFAULT() // user's choice</span><br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1oazeu8e]
We don't need any more information than this, which is not of any practical use. |
identify Type of DBF | hi,
you talk about "rights" DBF e.g. create by Fivewin
i do have DBF Files, made by Xbase++, which might be "mis-configured" DBE ( = RDD )
i also had DBF Files which just have ".DBF" Extension but are Fake, so i also use XbrHexEdit()
so my "DualGrid" Tool is not a "normal" App , i want to made a "Swiss Knife" to use with xBase ( and "more" ) |
if ... in ... | Hola.Existe algo asi?[code:s92uolwg]if lastkey in [ VK_RETURN, VK_... ] then
msginfo("paso de campo")
endif[/code:s92uolwg]No se si me explique lo que quiero hacer?Gracias. |
if ... in ... | [code:17xzb58t]
LOCAL nKey
Do Case
Case nKey == VK_RETURN .OR. GetKeyState( VK_ESCAPE )
... Mensagem ...
EndCase
[/code:17xzb58t] |
if ... in ... | Karhina, Queria trabajar similar a cuando lo haces utilizando conjuntos en C, Gracias de todos modos.ç[quote="karinha":3vbi2jhn][code:3vbi2jhn]
LOCAL nKey
Do Case
Case nKey == VK_RETURN .OR. GetKeyState( VK_ESCAPE )
... Mensagem ...
EndCase
[/code:3vbi2jhn][/quote:3vbi2jhn] |
if ... in ... | [quote="goosfancito":1ig5xkfr]Hola.
Existe algo asi?
[code:1ig5xkfr]if lastkey in [ VK_RETURN, VK_... ] then
msginfo("paso de campo")
endif[/code:1ig5xkfr]
No se si me explique lo que quiero hacer?
Gracias.[/quote:1ig5xkfr]
Hola, prueba asi:
[code:1ig5xkfr]if ASCAN( lastkey, { VK_RETURN, VK_... } ) != 0
msginfo("paso de campo")
endif[/code:1ig5xkfr]saludos |
if ... in ... | Andubo. gracias. Cambiando a ) == 0[quote="pymsoft":wq9m30wn][quote="goosfancito":wq9m30wn]Hola.
Existe algo asi?
[code:wq9m30wn]if lastkey in [ VK_RETURN, VK_... ] then
msginfo("paso de campo")
endif[/code:wq9m30wn]
No se si me explique lo que quiero hacer?
Gracias.[/quote:wq9m30wn]
Hola, prueba asi:
[code:wq9m30wn]if ASCAN( lastkey, { VK_RETURN, VK_... } ) != 0
msginfo("paso de campo")
endif[/code:wq9m30wn]
saludos[/quote:wq9m30wn] |
if ... in ... | bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
if ... in ... | Hola Goos[quote="goosfancito":30pcxmju]
Existe algo asi?
[/quote:30pcxmju]En xHarbour existe. Te recomiendo registrarte en <!-- w --><a class="postlink" href="http://www.xHarbour.com">www.xHarbour.com</a><!-- w -->, que es gratis, y podes acceder a los manuales online. En particular sobre el operador IN pone:<!-- m --><a class="postlink" href="http://www.xharbour.com/xhdn/referenceguide/index.asp?page=home&view=xref&item=operator&id=19572">http://www.xharbour.com/xhdn/referenceg ... r&id=19572</a><!-- m -->[code:30pcxmju]
Syntax
<cSubString> IN <cString>
<xValue> IN <aArray>
<xKey> IN <hHash>
Arguments
<cSubString>
<cSubString> is a character or other value that is searched for in <cString>.
<aArray>
<aArray> is an array with random values.
<xKey>
<xKey> is a value to search in a hash.
<hHash>
<hHash> is a hash value whose keys are searched for <xKey>.
Description
The IN operator searches the left operand in the right operand and returns .T. (true) if the value of the left operand is contained in the value of the right operand, otherwise .F. (false) is returned.
[/code:30pcxmju]y creo que es EXACTAMENTE lo que buscas. Aparentemente Harbour no lo soporta, al menos en la version Devel 1.1 que es la que bajé de Fivetech.Un saludo,Carlos. |
if ... in ... | JE! exacto compañero.-Gracias.[quote="Carlos Mora":1kvvagux]Hola Goos
[quote="goosfancito":1kvvagux]
Existe algo asi?
[/quote:1kvvagux]
En xHarbour existe. Te recomiendo registrarte en <!-- w --><a class="postlink" href="http://www.xHarbour.com">www.xHarbour.com</a><!-- w -->, que es gratis, y podes acceder a los manuales online. En particular sobre el operador IN pone:
<!-- m --><a class="postlink" href="http://www.xharbour.com/xhdn/referenceguide/index.asp?page=home&view=xref&item=operator&id=19572">http://www.xharbour.com/xhdn/referenceg ... r&id=19572</a><!-- m -->
[code:1kvvagux]
Syntax
<cSubString> IN <cString>
<xValue> IN <aArray>
<xKey> IN <hHash>
Arguments
<cSubString>
<cSubString> is a character or other value that is searched for in <cString>.
<aArray>
<aArray> is an array with random values.
<xKey>
<xKey> is a value to search in a hash.
<hHash>
<hHash> is a hash value whose keys are searched for <xKey>.
Description
The IN operator searches the left operand in the right operand and returns .T. (true) if the value of the left operand is contained in the value of the right operand, otherwise .F. (false) is returned.
[/code:1kvvagux]
y creo que es EXACTAMENTE lo que buscas. Aparentemente Harbour no lo soporta, al menos en la version Devel 1.1 que es la que bajé de Fivetech.
Un saludo,
Carlos.[/quote:1kvvagux] |
if Saldo=0 | Me esta pasando algo muy extraño.
tengo el siguiente codigo:
saldo:=traesaldo()
if Saldo=0 <- Esta condicion a veces la respeta y a veces no, y saldo si trae de valor Cero !!!
skip
loop
endif
functio traesaldo()
sal:=0
sal:= suma resta cargos-abonos de una base de datos
return(sal) |
if Saldo=0 | Me parece que probablemente sea un tema de decimales.
Por que no haces asi:
saldo := Round( traesaldo(), 2 )
if Empty( Saldo )
skip
loop
endif
Saludos! |
if Saldo=0 | gracias Alejandro!! lo voy a probar!!
Saludos desde Delicias,Chihuahua,Mexico. |
ilink32 | Hola amigos:
Soy nuevo con fwh + harbour y no consigo realizar un ejecutable todavia, mi problema es porque no se que instrucciones debe llevar el archivo para linkar, yo con fw + clipper realizaba la siguiente instruccion desde un bat:
blinker @cyewin.lnk
y el archivo cyewin.lnk tenia lo siguiente:
BLINKER CLIPPER SYMBOL OFF
fi fyvwin,rddsys,preparar,gestempr,gestacti,gestutil,gestbanc,gestconc,gestempl,gestprov,gestclie,gestcocl,gestmovi,gestalba,gestfact,gestmovg,gestfacg,gestvenc,gestlist,gestimpr
OUT fyvwin.exe
PACKCODE
PACKDATA
// If you use Mr. Debug for Windows product
// search c:\mrdebug\lib\mrd4win.lib
DEFBEGIN
name FyVWin
description 'Facturacion y Vencimientos para Windows'
exetype Windows 3.1
code moveable discardable preload
data preload moveable
stacksize 10000
heapsize 4096
segment 'PLANKTON_TEXT' nondiscardable
segment 'EXTEND_TEXT' nondiscardable
segment 'OM_TEXT' nondiscardable
segment 'OSMEM_TEXT' nondiscardable
segment 'SORTOF_TEXT' nondiscardable
segment 'STACK_TEXT' nondiscardable
DEFEND
NOBELL
sear Five, FiveC, Objects, Fast, WinApi
lib clipper, extend, terminal, dbfcdx, _dbfcdx
alguien me podria ayudar para saber que tengo que cambiar para hacerlo con ilink32.
o decirme agun ejemplo para linkar.
Gracias
Carlos
|
ilink32 | FWH proporciona el fichero buildh.bat y buildx.bat en el directorio samples en donde se muestra claramente como construir un EXE con harbour ó xharbour, usando ilink32 |
illegal copy protection | hi,
I'd like to protect my app.exe builded by FWH from illegal copy.
is there any FWH function?
have I to use others 3rd part program?
how do you protect your pgm?
thank you. |
illegal copy protection | Damiano,
You identify the netcard id of the computer where you are going to install it:
? GetNetCardID()[ 1 ]
then you modify your PRG this way:
if GetNetCardID()[ 1 ] != "THE_NETCARDID_OF_THE_PC" // use here the value you got above
MsgStop( "not authorized installation" )
quit
endif |
illegal copy protection | thank you Antonio,
my customers download pgm from www site and I'd like to send them the key that works only on that pc. |
illegal copy protection | the key that works only on that pc is the value of GetNetCardID()[ 1 ] |
illegal copy protection | damianodec
Contactame rguardadof gmail dot com
nota: non parlo italiano |
illegal copy protection | I don't want to deal with hardware ties because people get new computers and then I have to give them new ID's. Also, I provide my program as networkable and don't charge extra per workstation.
My clients print invoices and other data for their clients, so their name, address, and phone appear on that document. I use a keyfile system where the data is encrypted. The program then un-encrypts the record at startup and applies it while the program is running.
I also built an autoupdater that downloads the keyfile every 3 hours to be sure it is the current version. With this I can activate messages that support payments were not received, and thus support is no longer available, or shut off systems for license violations, or handle access for people renting the software ( SAAS ).
30 years ago I had a problem with software pirates. Once I went this route it all stopped.
For awhile I used SoftwareKey which actually can be setup to handle licenses, fees, demos, etc. online. It's only beneficial if you use their services to do the processing, and their credit card fees are significantly higher than what I get through my bank. However, their system does work, and removes you from any oversight problems.
Tim |
illegal copy protection | Timm,
Please can you share how you do the upgrade? Antivirus usually block this kind of actions.
Thank you very much. |
illegal copy protection | I have a small program that runs on their server ( or primary ) computer. It cycles every 3 hours. It reaches out to my server and downloads a "data" file that tells it if there are any updates, and also includes a very compressed file of their license data. In addition, after midnight, it runs a backup and a series of automated processes where it transmits contracted data to 3rd party companies ( if they use them ).
If there is a new executable file ( stored in zip format ), it is downloaded and uncompacted. ( I use this to also transfer help file updates, tax tables, etc ).
Because the server reaches out and downloads the files, Windows security has no problems with it. However, if they use 3rd party security it might have to be configured. I make it clear I provide no support for 3rd party security.
I actually started this process with a server in my garage, and a dial in connection, in the late 1980's. Now, of course, we use an internet connection to my hosted server. It is very fast, file sizes are small, so I never have any issues.
Tim |
illegal copy protection | Thank you very much Tim.
Please could you share the function you use to download the files over the internet? |
illegal copy protection | Moises,
Sorry for the delay ... I run Win 10 using Parallels on an iMac and once again it has "gone down" due to an error ... and it takes the system days to fix itself.
I'll give the example when I get access again.
Tim |
illegal types 'unsigned char *' | when I create clpwks.lib
I got error
Type: C
>>>xcc.exe -Fo"BITS.obj" -Ot -I"r:\include" -I"R:\include" -I"R:\c_include"
-I"R:\c_include\win" -I"R:\c_include\msvc" "BITS.C"<<<
BITS.C(27): error: Operands of = have illegal types 'unsigned char *' and
'const char *'.
BITS.C(181): error: Operands of = have illegal types 'char *' and 'const
char *'.
BITS.C(189): warning: Static 'ConvertFromIeeeExtended' is not referenced.
Type: C >>>Couldn't build: BITS.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>> 1409<<<
I used xHarbour.co build 1021 and FWH 11.06
/*******************************************************************************
* Program Id: bit.c
* Version: 1.00
********************************************************************************
*
* Purpose: Sets the given bit in a passed bit string. Returns the previous
* value. Be sure to pass the string by reference. NOTE. In order
* to stay as fast as possible, minimal parameter checking is
* performed. It is up to the user to not be too stupid.
*
* Syntax: bit( <OptC String>, <OptN (1...n) Offset> [, <OptL Set/Clear>] )
*
********************************************************************************/
#include <hbapi.h>
HB_FUNC(BIT )
{
unsigned char mask,
*ptr;
unsigned int loc,
offset = hb_parni( 2 ) - 1,
res = 0;
loc = offset / 8;
if ( loc < hb_parclen( 1 ) )
{
ptr = hb_parc( 1 ) + loc;
loc = offset % 8;
res = *ptr << loc & 0x80;
if ( hb_pcount() > 2 )
{
mask = (unsigned char ) 0x80 >> loc;
if ( hb_parl( 3 ) )
*ptr = *ptr | mask;
else
*ptr = *ptr & ~mask;
}
}
hb_retl( res );
}
#include "math.h"
#include "stddef.h"
#include <stdlib.h>
#include <stdio.h>
#ifndef HUGE_VAL
# define HUGE_VAL HUGE
#endif /*HUGE_VAL*/
//static void ConvertToIeeeExtended(double num, char *bytes);
static double ConvertFromIeeeExtended(unsigned char *bytes);
static double ConvertFromIeeeExtended1(unsigned char *bytes);
# define FloatToUnsigned(f) ((unsigned long)(((long)(f - 2147483648.0)) + 2147483647L) + 1)
HB_FUNC(L_DTOT1)
{
double num = hb_parnd( 1 ) ;
char bytes[10];
int sign;
int expon;
double fMant, fsMant;
unsigned long hiMant, loMant;
if (num < 0)
{
sign = 0x8000;
num *= -1;
}
else
{
sign = 0;
}
if (num == 0)
{
expon = 0; hiMant = 0; loMant = 0;
}
else
{
fMant = frexp(num, &expon);
if ((expon > 16384) || !(fMant < 1))
{ /* Infinity or NaN */
expon = sign|0x7FFF; hiMant = 0; loMant = 0; /* infinity */
}
else
{ /* Finite */
expon += 16382;
if (expon < 0)
{ /* denormalized */
fMant = ldexp(fMant, expon);
expon = 0;
}
expon |= sign;
fMant = ldexp(fMant, 32);
fsMant = floor(fMant);
hiMant = FloatToUnsigned(fsMant);
fMant = ldexp(fMant - fsMant, 32);
fsMant = floor(fMant);
loMant = FloatToUnsigned(fsMant);
}
}
bytes[0] = expon >> 8;
bytes[1] = expon;
bytes[2] = hiMant >> 24;
bytes[3] = hiMant >> 16;
bytes[4] = hiMant >> 8;
bytes[5] = hiMant;
bytes[6] = loMant >> 24;
bytes[7] = loMant >> 16;
bytes[8] = loMant >> 8;
bytes[9] = loMant;
hb_retclen(bytes,10);
}
HB_FUNC(L_DTOT)
{
double num = hb_parnd( 1 ) ;
char bytes[10];
int sign;
int expon;
double fMant, fsMant;
unsigned long hiMant, loMant;
if (num < 0)
{
sign = 0x8000;
num *= -1;
}
else
{
sign = 0;
}
if (num == 0)
{
expon = 0; hiMant = 0; loMant = 0;
}
else
{
fMant = frexp(num, &expon);
if ((expon > 16384) || !(fMant < 1))
{ /* Infinity or NaN */
expon = sign|0x7FFF; hiMant = 0; loMant = 0; /* infinity */
}
else
{ /* Finite */
expon += 16382;
if (expon < 0)
{ /* denormalized */
fMant = ldexp(fMant, expon);
expon = 0;
}
expon |= sign;
fMant = ldexp(fMant, 32);
fsMant = floor(fMant);
hiMant = FloatToUnsigned(fsMant);
fMant = ldexp(fMant - fsMant, 32);
fsMant = floor(fMant);
loMant = FloatToUnsigned(fsMant);
}
}
bytes[9] = expon >> 8;
bytes[8] = expon;
bytes[7] = hiMant >> 24;
bytes[6] = hiMant >> 16;
bytes[5] = hiMant >> 8;
bytes[4] = hiMant;
bytes[3] = loMant >> 24;
bytes[2] = loMant >> 16;
bytes[1] = loMant >> 8;
bytes[0] = loMant;
hb_retclen(bytes,10);
}
HB_FUNC( L_TTOD )
{
char * szNum = hb_parc( 1 );
hb_retnd( ConvertFromIeeeExtended1( szNum )) ;
}
#define UnsignedToFloat(u) (((double)((long)(u - 2147483647L - 1))) + 2147483648.0)
/*
Extended precision IEEE floating-point conversion routine.
*/
static double ConvertFromIeeeExtended(unsigned char *bytes)
{
double f;
int expon;
unsigned long hiMant, loMant;
expon = ((bytes[0] & 0x7F) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> | (bytes[1] & 0xFF);
hiMant = ((unsigned long)(bytes[2] & 0xFF) << 24)
| ((unsigned long)(bytes[3] & 0xFF) << 16)
| ((unsigned long)(bytes[4] & 0xFF) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
| ((unsigned long)(bytes[5] & 0xFF));
loMant = ((unsigned long)(bytes[6] & 0xFF) << 24)
| ((unsigned long)(bytes[7] & 0xFF) << 16)
| ((unsigned long)(bytes[8] & 0xFF) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
| ((unsigned long)(bytes[9] & 0xFF));
if (expon == 0 && hiMant == 0 && loMant == 0) {
f = 0;
}
else {
if (expon == 0x7FFF) { /* Infinity or NaN */
f = HUGE_VAL;
}
else {
expon -= 16383;
f = ldexp(UnsignedToFloat(hiMant), expon-=31);
f += ldexp(UnsignedToFloat(loMant), expon-=32);
}
}
if (bytes[0] & 0x80)
return -f;
else
return f;
}
static double ConvertFromIeeeExtended1(unsigned char *bytes)
{
double f;
int expon;
unsigned long hiMant, loMant;
expon = ((bytes[9] & 0x7F) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> | (bytes[8] & 0xFF);
hiMant = ((unsigned long)(bytes[7] & 0xFF) << 24)
| ((unsigned long)(bytes[6] & 0xFF) << 16)
| ((unsigned long)(bytes[5] & 0xFF) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
| ((unsigned long)(bytes[4] & 0xFF));
loMant = ((unsigned long)(bytes[3] & 0xFF) << 24)
| ((unsigned long)(bytes[2] & 0xFF) << 16)
| ((unsigned long)(bytes[1] & 0xFF) << <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
| ((unsigned long)(bytes[0] & 0xFF));
if (expon == 0 && hiMant == 0 && loMant == 0) {
f = 0;
}
else {
if (expon == 0x7FFF) { /* Infinity or NaN */
f = HUGE_VAL;
}
else {
expon -= 16383;
f = ldexp(UnsignedToFloat(hiMant), expon-=31);
f += ldexp(UnsignedToFloat(loMant), expon-=32);
}
}
if (bytes[0] & 0x80)
return -f;
else
return f;
}
best regards
kajot |
image on menu RESOLVED | [img:2uslywrv]https://i.postimg.cc/zfPnq3fF/Immagine.jpg[/img:2uslywrv]
it's possible with current menu class ? |
image on menu RESOLVED | [quote="Silvio.Falconi":1vsrri30][img:1vsrri30]https://i.postimg.cc/zfPnq3fF/Immagine.jpg[/img:1vsrri30]
it's possible with current menu class ?[/quote:1vsrri30]
Si
Trata fwh\samples\menuclr |
image on menu RESOLVED | I can see color bar but not vertical image
sample:
[img:39vmigfd]https://i.postimg.cc/mgGgv4Np/MEDICAL.png[/img:39vmigfd] |
image on menu RESOLVED | Yes, it's possible
Look and search sample
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_menu_descolgante">http://wiki.fivetechsoft.com/doku.php?i ... escolgante</a><!-- m --> |
image on menu RESOLVED | [quote="Silvio.Falconi":273n5mxm]I can see color bar but not vertical image
sample:
[img:273n5mxm]https://i.postimg.cc/mgGgv4Np/MEDICAL.png[/img:273n5mxm][/quote:273n5mxm]
Silvio,
Revisa esta parte
[code=fw:273n5mxm]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datos ( 2013 )"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\s</span>earch2.ico"</span> <span style="color: #B900B9;">//"bitmaps\16x16\menu.bmp" </span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2013</span> ;<br /> COLORMENU CLR_WHITE, CLR_BLUE ;<br /> COLORSELECT METRO_STEEL, METRO_STEEL, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> COLORLEFT CLR_WHITE ;<br /> COLORRIGHT CLR_WHITE ;<br /> COLORSEPARATOR METRO_OLIVE ; <span style="color: #B900B9;">// NOINHERIT ; // FACTOR 4 ;</span><br /> LEFTWIDTH <span style="color: #000000;">24</span> ; <span style="color: #B900B9;">//HEIGHT 1.0 * 2 ; // RIGHTSPACE 10 ; // ADJUST ;</span><br /> LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetechv.png"</span> ; <span style="color: #B900B9;">//identify.bmp" ; //</span><br /> IMGMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\l</span>ock.bmp"</span> ;<span style="color: #B900B9;">//fivewing.bmp"</span><br /> <span style="color: #0000ff;">BRUSH</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\c</span>onfetti.bmp"</span></div>[/code:273n5mxm]
A mi me funciona
[img:273n5mxm]http://i67.tinypic.com/24mfjgo.png[/img:273n5mxm] |
image on menu RESOLVED | Compuin
I have Menuclr.prg and I have this
[code=fw:27tcuafs]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Autor: Cristobal Navarro</span><br /><span style="color: #B900B9;">// Fecha: 18/06/2015</span><br /><span style="color: #B900B9;">// Pruebas de Menus</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"wcolors.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> GWL_STYLE <span style="color: #000000;">-16</span><br /><br /><span style="color: #00D7D7;">#define</span> SM_TABLETPC <span style="color: #000000;">86</span><br /><span style="color: #00D7D7;">#define</span> SM_DIGITIZER <span style="color: #000000;">94</span><br /><span style="color: #00D7D7;">#define</span> SM_MAXIMUMTOUCHES <span style="color: #000000;">95</span><br /><span style="color: #00D7D7;">#define</span> SM_IMMENABLED <span style="color: #000000;">82</span><br /><br /><span style="color: #00D7D7;">#define</span> SM_CYMENUSIZE <span style="color: #000000;">55</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> oWnd<br /><span style="color: #00C800;">static</span> oMru1<br /><span style="color: #00C800;">static</span> oMru2<br /><span style="color: #00C800;">Static</span> cColorPan<br /><br /><span style="color: #00C800;">Static</span> oFontMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</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> oBar, oBar1, oBar2<br /> <span style="color: #00C800;">local</span> cTitle, x<br /> <span style="color: #00C800;">Local</span> cFont := <span style="color: #ff0000;">"Segoe UI Symbol"</span> <span style="color: #B900B9;">//"Calibri"</span><br /> <span style="color: #00C800;">Local</span> cFontH := <span style="color: #000000;">-14</span> <span style="color: #B900B9;">//-16 //-20 //-18 //-14 //-10 //-12</span><br /> <span style="color: #00C800;">Local</span> aFonts<br /><br /> FW_SetUnicode<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> SetResDebug<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> !IsWin8<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. !IsWindows10<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cFont := <span style="color: #ff0000;">"Calibri"</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> WEIGHT <span style="color: #000000;">300</span><br /><br /> cTitle := <span style="color: #ff0000;">" Menus: "</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span> oFontMenu <span style="color: #000000;">)</span>, oFontMenu:<span style="color: #000000;">cFaceName</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span> +;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span> oFontMenu <span style="color: #000000;">)</span>, Str<span style="color: #000000;">(</span> oFontMenu:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">MDI</span> ;<br /> <span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">MENU</span> MBuildMenu<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span> <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_WHITE <span style="color: #B900B9;">//RGB( 116, 149, 193 )</span><br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontMenu <span style="color: #000000;">)</span><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Prueba de Controles"</span> <span style="color: #0000ff;">FONT</span> oFontMenu ;<br /> COLORS RGB<span style="color: #000000;">(</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">)</span>, CLR_WHITE ; <span style="color: #B900B9;">// , RGB( 116, 149, 193 ) ; //RGB( 31, 117, 70 ) ;</span><br /> NOINSET CLOCK DATE KEYBOARD NOBORDER <span style="color: #000000;">2015</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> MenuDlg<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//Hb_GCall(.t.)</span><br /> <span style="color: #B900B9;">//CLEAR MEMORY</span><br /><br /> <span style="color: #00C800;">While</span> oFontMenu:<span style="color: #000000;">nCount</span> > <span style="color: #000000;">0</span><br /> oFontMenu:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Enddo</span><br /><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">)</span><br /> FErase<span style="color: #000000;">(</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> CheckRes<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> MBuildMenu<span style="color: #000000;">(</span> oW <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oMenu<br /> <span style="color: #00C800;">local</span> oMruConnections<br /> <span style="color: #00C800;">local</span> oMruDBFs<br /> <span style="color: #00C800;">local</span> cClrDegrIni, cClrDegrFin<br /> <span style="color: #00C800;">local</span> cClrSelIni , cClrSelFin , cClrSelTxt, cClrSelBor<br /> <span style="color: #00C800;">local</span> cClrMenu , cClrMenuTxt<br /><br /> <span style="color: #00C800;">DEFAULT</span> oW := oWnd<br /><br /> cClrMenu := CLR_RED <span style="color: #B900B9;">//WHITE</span><br /> cClrMenuTxt := CLR_WHITE <span style="color: #B900B9;">//CLR_BLACK</span><br /> cClrDegrFin := CLR_WHITE<br /> cClrDegrIni := CLR_WHITE<br /> cColorPan := CLR_GRAY <span style="color: #B900B9;">//LightColor( 150, cClrDegrFin )</span><br /> cClrSelFin := CLR_HGRAY <span style="color: #B900B9;">//RGB(128,128,192)</span><br /> cClrSelIni := CLR_HGRAY <span style="color: #B900B9;">//RGB(128,128,192)</span><br /> cClrSelTxt := CLR_BLACK<br /> cClrSelBor := CLR_GRAY <span style="color: #B900B9;">//CLR_WHITE //CLR_GRAY //CLR_BLACK</span><br /><br /> <span style="color: #0000ff;">MENU</span> oMenu ;<br /> COLORMENU METRO_OLIVE, CLR_WHITE ;<br /> COLORPNEL METRO_OLIVE, CLR_WHITE ;<br /> COLORLEFT CLR_WHITE, METRO_OLIVE ;<br /> COLORSELECT METRO_OLIVE, METRO_OLIVE, CLR_WHITE ;<br /> <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #000000;">2013</span> NOBORDER<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"NoClient"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"dialog"</span><br /> <span style="color: #0000ff;">MENU</span> ;<br /> COLORBMP METRO_OLIVE, METRO_CRIMSON COLORSEPARATOR CLR_GRAY ;<br /> COLORPNEL METRO_OLIVE, CLR_WHITE<br /> <span style="color: #B900B9;">//FONT oFontMenu 2013 //RESOURCE "eye"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"IsTablet"</span> + <span style="color: #ff0000;">"..."</span> CHARICON <span style="color: #000000;">57696</span> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Browse Properties NonClient"</span> CHECKED<br /> <span style="color: #0000ff;">MENUITEM</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Sample MRU Recent files"</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57697</span><br /> <span style="color: #0000ff;">MENU</span> ; <br /> COLORLEFT CLR_WHITE, METRO_OLIVE ;<br /> COLORPNEL CLR_WHITE, METRO_TAUPE <span style="color: #000000;">2013</span><br /> MRU oMruDBFs ;<br /> FILENAME GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"APPDATA"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>iveDBU.ini"</span> ;<br /> SECTION <span style="color: #ff0000;">"Recent DBF files"</span> ; <span style="color: #B900B9;">//</span><br /> <span style="color: #0000ff;">MESSAGE</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Open this file"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Change Color BLUE"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"..."</span> CHARICON <span style="color: #000000;">57698</span><br /> <span style="color: #B900B9;">//ACTION CCOLORSUBMENU( oWnd:hWnd, CLR_BLUE ) </span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Sample MRU ADO connections"</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57699</span><br /> <span style="color: #0000ff;">MENU</span> ;<br /> COLORLEFT METRO_TAUPE, METRO_MAUVE ;<br /> COLORRIGHT CLR_WHITE, METRO_TAUPE <span style="color: #000000;">2013</span><br /> MRU oMruConnections ;<br /> FILENAME GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"APPDATA"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>iveDBU.ini"</span> ; <span style="color: #B900B9;">// .INI to manipulate</span><br /> SECTION FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Recent ADO connections strings"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Connect to this ADO database"</span> <span style="color: #000000;">)</span> ; <span style="color: #B900B9;">// The message for all of them</span><br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Change System Menu"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"..."</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Prueba"</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57695</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57694</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> oMenu:<span style="color: #000000;">AddEdit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #B900B9;">// { CLR_WHITE, CLR_BLACK, CLR_WHITE, CLR_WHITE, CLR_HGRAY, CLR_HGRAY, CLR_BLACK, CLR_GRAY } )</span><br /> oMenu:<span style="color: #000000;">AddFile</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #B900B9;">// { CLR_YELLOW, CLR_BLACK, CLR_WHITE, CLR_WHITE, CLR_HGRAY, CLR_HGRAY, CLR_BLACK, CLR_GRAY } )</span><br /> oMenu:<span style="color: #000000;">AddMdi</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Pruebas Menus"</span>, <span style="color: #ff0000;">"(c) FiveTech Software 2015"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MenuDlg<span style="color: #000000;">(</span> oW <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oMenu<br /> <br /> <span style="color: #0000ff;">REDEFINE</span> SYSMENU oMenu <span style="color: #0000ff;">OF</span> oW <span style="color: #0000ff;">FONT</span> oFontMenu ;<br /> COLORBMP CLR_YELLOW, METRO_STEEL ;<br /> COLORRIGHT CLR_YELLOW, METRO_STEEL <span style="color: #000000;">2013</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Primer Item"</span> CHARICON <span style="color: #000000;">57605</span><span style="color: #B900B9;">// ACTION ( oW:SetColor( , CLR_BLUE ), oW:Refresh() ) </span><br /> <br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Segundo Item"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> oW:<span style="color: #000000;">oSysMenu</span>:<span style="color: #000000;">aMenuitems</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57696</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tercer Item"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> oW:<span style="color: #000000;">oSysMenu</span>:<span style="color: #000000;">aMenuitems</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #000000;">57736</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Reset Menu"</span> <span style="color: #0000ff;">ACTION</span> oMenu:<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ENDSYSMENU<br /><br /><span style="color: #00C800;">Return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> </div>[/code:27tcuafs]
where is the part you sad ? |
image on menu RESOLVED | Silvio,
Copy and paste this code. Is is more completed than the previous one.
[code=fw:33tgpzyo]<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: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Test Menus</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oFont<br /><span style="color: #00C800;">Static</span> oFont1<br /><span style="color: #00C800;">Static</span> nHFont<br /><span style="color: #00C800;">Static</span> cFont<br /><span style="color: #00C800;">Static</span> nWFont<br /><span style="color: #00C800;">Static</span> oItem<br /><span style="color: #00C800;">Static</span> oMenu<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> oBr<br /> <span style="color: #00C800;">local</span> cBrush := <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\c</span>onfetti.bmp"</span><br /> cFont := <span style="color: #ff0000;">"Segoe UI"</span><br /> nHFont := <span style="color: #000000;">16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, -nHFont<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-24</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBr FILE cBrush <span style="color: #B900B9;">//RESIZE</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test Menu"</span> + <span style="color: #ff0000;">" - Ver.: "</span> + FWVERSION + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> IsExe64<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> <span style="color: #ff0000;">" ( 64"</span>, <span style="color: #ff0000;">" ( 32"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" bits ) - "</span> + FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"User"</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">": "</span> + WNetGetUser<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">" - "</span> + hb_Compiler<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MENU</span> MenuSal<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">BRUSH</span> oBr<br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oFont1<br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBr<br /> <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> <br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /><span style="color: #00C800;">Function</span> MenuSal<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> oMnu<br /> <span style="color: #00C800;">local</span> oMnu1<br /> <span style="color: #00C800;">local</span> oIt<br /> <br /> <span style="color: #0000ff;">MENU</span> oMnu <span style="color: #000000;">2015</span> ;<br /> NOBORDER ;<br /> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">6</span> <span style="color: #0000ff;">FONT</span> oFont ; <span style="color: #B900B9;">// HEIGHT 3 ;</span><br /> UPPERMNU <span style="color: #0000ff;">ADJUST</span> <span style="color: #B900B9;">//NOCENTER //Add or Remove clausule and look height of menu bar and items</span><br /> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test 0"</span><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #B900B9;">//NOINHERIT //COLORMENU CLR_WHITE</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> BOLD <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>xit2.bmp"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 3"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Test"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span> <span style="color: #B900B9;">//+ CRLF + "Line 2" </span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2007</span> NOINHERIT <span style="color: #B900B9;">// Remove for inherit clausule ADJUST of MENU BAR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"File"</span> CHECKED<br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Png"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\i</span>mage2.png"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Jpg"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\p</span>an_setting1.jpg"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"AlphaBmp Res"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"files"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"AlphaBmp File"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\p</span>ocketpc.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Ico"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\b</span>itmap.ico"</span><br /> <span style="color: #0000ff;">MENU</span> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"File"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetech.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Next"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"MultiIcon File"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\h</span>ires<span style="color: #000000;">\b</span>ack.ico"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SEPARATOR"</span> <span style="color: #0000ff;">SEPARATOR</span> BOLD<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"16char"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6char.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"b20_open"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>20_open.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"16clip"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6clip.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Calendar2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>alendar2.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Chart"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>hart.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"CharIcon"</span> CHARICON <span style="color: #000000;">57731</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Character"</span> CHARICON <span style="color: #ff0000;">"K"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Bold"</span> BOLD <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Find2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>review2.bmp"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Italic"</span> ITALIC<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Find2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ind2.bmp"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #B900B9;">//MENUITEM " "</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"With Font"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\w</span>rite2.ico"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2010</span> <span style="color: #0000ff;">FONT</span> oFont NOINHERIT <span style="color: #B900B9;">// Remove for inherit clausule ADJUST of MENU BAR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"File"</span> CHECKED <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Png"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\i</span>mage2.png"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Jpg"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\p</span>an_setting1.jpg"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"AlphaBmp"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\v</span>isa.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Ico"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\b</span>itmap.ico"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #B900B9;">// </span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"File"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetech.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Next"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"MultiIcon File"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\h</span>ires<span style="color: #000000;">\b</span>ack.ico"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SEPARATOR"</span> <span style="color: #0000ff;">SEPARATOR</span> BOLD<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"16char"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6char.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"b20_open"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>20_open.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"16clip"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6clip.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Calendar2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>alendar2.bmp"</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Chart"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>hart.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"CharIcon"</span> CHARICON <span style="color: #000000;">57731</span> <span style="color: #0000ff;">WHEN</span> .F.<br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Character"</span> CHARICON <span style="color: #ff0000;">"K"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Bold"</span> BOLD <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Find2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>review2.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Italic"</span> ITALIC<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Find2"</span> FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ind2.bmp"</span><br /> <br /> <span style="color: #0000ff;">ENDMENU</span><br /> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datos ( 2013 )"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\s</span>earch2.ico"</span> <span style="color: #B900B9;">//"bitmaps\16x16\menu.bmp" </span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2013</span> ;<br /> COLORMENU CLR_WHITE, CLR_BLUE ;<br /> COLORSELECT METRO_STEEL, METRO_STEEL, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> COLORLEFT CLR_WHITE ;<br /> COLORRIGHT CLR_WHITE ;<br /> COLORSEPARATOR METRO_OLIVE ; <span style="color: #B900B9;">// NOINHERIT ; // FACTOR 4 ;</span><br /> LEFTWIDTH <span style="color: #000000;">24</span> ; <span style="color: #B900B9;">//HEIGHT 1.0 * 2 ; // RIGHTSPACE 10 ; // ADJUST ;</span><br /> LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetechv.png"</span> ; <span style="color: #B900B9;">//identify.bmp" ; //</span><br /> IMGMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\l</span>ock.bmp"</span> ;<span style="color: #B900B9;">//fivewing.bmp"</span><br /> <span style="color: #0000ff;">BRUSH</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\c</span>onfetti.bmp"</span><br /> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Proveedores"</span> BOLD <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Proveedores"</span> <span style="color: #000000;">)</span> CHECKED<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Clientes"</span> BOLD <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Clientes"</span> <span style="color: #000000;">)</span> ITALIC FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6clip.bmp"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Articulos"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Articulos"</span> <span style="color: #000000;">)</span> BOLD CHARICON <span style="color: #000000;">57621</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Fichero de Zonas ( 2007 )"</span> COLORMENU CLR_MAGENTA BOLD FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6code.bmp"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Agentes"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Fichero de Agentes"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Formas de Pago"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Entidades Bancarias"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Ficheros Auxiliares ( 2015 )"</span> COLORMENU METRO_OLIVE BOLD <br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2015</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Agentes"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Formas de Pago"</span> CHARICON <span style="color: #000000;">57624</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Entidades Bancarias"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tools ( 2015 )"</span> BOLD<br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2010</span> COLORMENU CLR_RED<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Copia de Seguridad"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Herramientas"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Otros ( 2007 )"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_1"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_2"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Varios"</span> BOLD<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Others"</span> BOLD<br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Others Items ( 2015 )"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>eople.bmp"</span><br /> <span style="color: #0000ff;">MENU</span> oMnu1 <span style="color: #000000;">2015</span> <span style="color: #0000ff;">FONT</span> oFont ; <br /> COLORMENU RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, CLR_HRED ; <span style="color: #B900B9;">//LEFTWIDTH 40</span><br /> LEFTWIDTH <span style="color: #000000;">24</span> ;<br /> LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>enu4v.bmp"</span> ;<br /> IMGMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\a</span>ndroid.bmp"</span> ;<br /> <span style="color: #0000ff;">BRUSH</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\b</span>lustone.bmp"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">(</span> GetSizeText<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Hola"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Change Color Gray"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oMnu1:<span style="color: #000000;">hImg</span> := cColorMenu<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">hWnd</span>, , CLR_GRAY, .T., <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//"lock.bmp" ) )</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 3"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> HBmpBack<span style="color: #000000;">(</span> oMnu1:<span style="color: #000000;">hMenu</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> CHARICON <span style="color: #ff0000;">"P"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 4"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_4"</span> <span style="color: #000000;">)</span> CHECKED<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 5 ( 2010 )"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_5"</span> <span style="color: #000000;">)</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6clip.bmp"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2010</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 51"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_51"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 52"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_52"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 53"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_53"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">" -> "</span> <span style="color: #0000ff;">SEPARATOR</span> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 54"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_54"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 55"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_55"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 6"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_6"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 7"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_7"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 8"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_8"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 9"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_9"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Elements"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>esign.bmp"</span> <br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2015</span> <span style="color: #0000ff;">BRUSH</span> METRO_OLIVE <span style="color: #0000ff;">FONT</span> oFont1 ;<br /> IMGMENU <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> <span style="color: #B900B9;">//</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 31"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_31"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 32"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_32"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 33"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_33"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">" -> "</span> <span style="color: #0000ff;">SEPARATOR</span> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 34"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_34"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 35"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Item_35"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> FwString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #000000;">)</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\s</span>avedbf.bmp"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2010</span> COLORMENU RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, CLR_HRED ; <span style="color: #B900B9;">//LEFTWIDTH 40 </span><br /> LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetechv.png"</span> ;<br /> IMGMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivewin.bmp"</span> <br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit Test"</span> BOLD <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>xit2.bmp"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Historico"</span> + Chr<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl + W"</span> BOLD<br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Simbolo del Sistema ( CMD )"</span> + Chr<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl + K"</span> BOLD<br /> <span style="color: #0000ff;">ENDMENU</span><br /> <br /> <span style="color: #0000ff;">ENDMENU</span><br /> <br /><span style="color: #00C800;">Return</span> oMnu<br /> <br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:33tgpzyo]
Then look on this line
[code=fw:33tgpzyo]<div class="fw" id="{CB}" style="font-family: monospace;"> LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetechv.png"</span> ; <span style="color: #B900B9;">//identify.bmp" ; //</span></div>[/code:33tgpzyo]
Replace .png file for the one that you want on your menu
Please let me know then |
image on menu RESOLVED | I'm afraid I cannot make the style of Menu because I have 17.12 rel
indeed I not found that files on fwh\bitmaps folder |
image on menu RESOLVED | [quote="Silvio.Falconi":334wajgi]I'm afraid I cannot make the style of Menu because I have 17.12 rel
indeed I not found that files on fwh\bitmaps folder[/quote:334wajgi]
I did it with 17.02 rel
Just replace the file for your own file, and it will work <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> |
image on menu RESOLVED | I tried but it is not the same ( of c5menu) |
image on menu RESOLVED | [quote="Silvio.Falconi":jg4ljqxm]I tried but it is not the same ( of c5menu)[/quote:jg4ljqxm]
Do you need c5menu.prg ? |
image on menu RESOLVED | I have c5Menu, I had many c5 libs from many years
[img:19cetw0o]https://i.postimg.cc/4xbtrcqh/lib-canalfive.png[/img:19cetw0o]
the c5Menu is not compatible with fwh ( I have the last c5Menu of Paco ) |
image on menu RESOLVED | May be we should ask Antonio or Cristobal if they can improved Fw menu to become like c5 menu |
image on menu RESOLVED | you're dreaming |
image on menu RESOLVED | Sample is mnu01.prg |
image on menu RESOLVED | yes But I seems it is different from the picture I post
the logomenu is on center instaed into picture the bitmap is on the left of menu |
image on menu RESOLVED | Left image with this clause
[code=fw:14ntav79]<div class="fw" id="{CB}" style="font-family: monospace;"><br />LOGOMENU <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\f</span>ivetechv.png"</span> ; <span style="color: #B900B9;">//identify.bmp" ; </span><br /> </div>[/code:14ntav79] |
image on menu RESOLVED | I tried .. the image go on the center of submenu |
image on menu RESOLVED | Put your definition of menu |
image on menu RESOLVED | [quote="cnavarro":3pjqj749]Put your definition of menu[/quote:3pjqj749]
Silvio, try this ways as Cristobal says
It worked for me |
image on menu RESOLVED | Cristobal, compuin
[b:3hgr79k3]I see this [/b:3hgr79k3]
[img:3hgr79k3]https://i.postimg.cc/XvrDT0kN/j.png[/img:3hgr79k3]
[b:3hgr79k3]the lock is on the left side of the sub-menu[/b:3hgr79k3] |
image on menu RESOLVED | [quote="Silvio.Falconi":3g8cvyvw]Cristobal, compuin
[b:3g8cvyvw]I see this [/b:3g8cvyvw]
[img:3g8cvyvw]https://i.postimg.cc/XvrDT0kN/j.png[/img:3g8cvyvw]
[b:3g8cvyvw]the lock is on the left side of the sub-menu[/b:3g8cvyvw][/quote:3g8cvyvw]
Silvio, may be this error is because of image size
Try to use an image with 23 x 285 pixels just for try
Please, let us knows |
image on menu RESOLVED | [b:aqxgzs23]My test [/b:aqxgzs23]
[img:aqxgzs23]https://i.postimg.cc/QNYSZzVH/KK.png[/img:aqxgzs23]
Perhaps there is an error ?
the source
( is one test of c5)
[code=fw:aqxgzs23]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oBar<br /><span style="color: #00C800;">local</span> oMenu, oMenu2<br /><span style="color: #00C800;">local</span> oItem<br /><span style="color: #00C800;">local</span> oFont<br /><br /><br /> <span style="color: #00C800;">local</span> nClrText := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">99</span>, <span style="color: #000000;">54</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrTDisa := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">197</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPane := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrSepar := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">94</span>, <span style="color: #000000;">129</span>, <span style="color: #000000;">197</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPMgn1 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">227</span>, <span style="color: #000000;">238</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPMgn2 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">167</span>, <span style="color: #000000;">226</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPSel := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">252</span>, <span style="color: #000000;">203</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPSel2 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">213</span>, <span style="color: #000000;">61</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrBPSel := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">158</span>, <span style="color: #000000;">106</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPCheck := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">225</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrBCheck := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">49</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">197</span> <span style="color: #000000;">)</span><br /><br /><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span><br /><br /><br /> <span style="color: #B900B9;">// oMenu:SetStyle( 14 )</span><br /><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2015</span> ;<br /> COLORMENU nClrPane, nClrText ;<br /> COLORSELECT nClrPSel, nClrPSel2, nClrBPSel ;<br /> COLORLEFT nClrPMgn1 ;<br /> COLORRIGHT nClrPMgn2;<br /> COLORSEPARATOR nClrSepar ;<br /> logomenu <span style="color: #ff0000;">"medical.BMP"</span><br /><br /> oMenu:<span style="color: #000000;">oFont</span> := oFont<br /><br /><span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&File"</span> :<br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&New"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+N"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn1"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Open"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+O"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn2"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Save"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+S"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn3"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"S&end"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn4"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Print"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+P"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn5"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Print Preview"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn6"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><br /><br /><br /><span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MENU</span> oMenu<br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><br /><br /><br /><br /><br /> </div>[/code:aqxgzs23]
res
[code=fw:aqxgzs23]<div class="fw" id="{CB}" style="font-family: monospace;">btn1 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage1.bmp"</span><br />btn2 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage2.bmp"</span><br />btn3 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage3.bmp"</span><br />btn4 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage4.bmp"</span><br />btn5 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage5.bmp"</span><br />btn6 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage6.bmp"</span><br />btn7 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage7.bmp"</span><br />btn8 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage8.bmp"</span><br />btn9 BITMAP <span style="color: #ff0000;">"bmps<span style="color: #000000;">\i</span>mage9.bmp"</span></div>[/code:aqxgzs23]
I tried also with
MENU oMenu ;
COLORMENU nClrPane, nClrText ;
COLORSELECT nClrPSel, nClrPSel2, nClrBPSel ;
COLORLEFT nClrPMgn1 ;
COLORRIGHT nClrPMgn2;
COLORSEPARATOR nClrSepar ;
LOGOMENU "medical.bmp" ;
IMGMENU "medical.bmp" ;
LEFTWIDTH 24
it seems to ignore any color that I have entered
if I insert 2015 or 2013 then it colorized the menu but I not see the bitmaps |
image on menu RESOLVED | Silvio,
Your test is good.
Did you try to see medidal.BMP size ?? |
image on menu RESOLVED | it the same of the post converte to bmp ( with infarview)
return to menu
if I insert before the first menuitem this lis line
I see
[img:35v9rqwz]https://i.postimg.cc/KjyyQYLg/strange.jpg[/img:35v9rqwz]
then I click on widow client with the mouse the menu "File" is moved to right as you can see here
[img:35v9rqwz]https://i.postimg.cc/2yxgw7rP/hu.jpg[/img:35v9rqwz]
is there a bug, I'm sure ... then I not see the bmps also !!!! |
image on menu RESOLVED | Hello Cristobal
Any adivse ? I think Silvio found something is not working ok with this menu
Regards, |
image on menu RESOLVED | compuin do you saw the mail ? |
image on menu RESOLVED | [quote="Silvio.Falconi":aitpahg0]compuin do you saw the mail ?[/quote:aitpahg0]
Silvio,
Listo!
Revisa tu email y dejame saber |
image on menu RESOLVED | [quote="Compuin":3gw8b7eq][quote="Silvio.Falconi":3gw8b7eq]compuin do you saw the mail ?[/quote:3gw8b7eq]
Silvio,
Listo!
Revisa tu email y dejame saber[/quote:3gw8b7eq]
Debe quedar asi
[code=fw:3gw8b7eq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oBar<br /><span style="color: #00C800;">local</span> oMenu, oMenu2<br /><span style="color: #00C800;">local</span> oItem<br /><span style="color: #00C800;">local</span> oFont<br /><br /> <span style="color: #B900B9;">// oMenu:SetStyle( 14 )</span><br /><br /> <span style="color: #00C800;">local</span> nClrText := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">99</span>, <span style="color: #000000;">54</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrTDisa := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">197</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPane := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrSepar := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">94</span>, <span style="color: #000000;">129</span>, <span style="color: #000000;">197</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPMgn1 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">227</span>, <span style="color: #000000;">238</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPMgn2 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">167</span>, <span style="color: #000000;">226</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPSel := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">252</span>, <span style="color: #000000;">203</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPSel2 := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">213</span>, <span style="color: #000000;">61</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrBPSel := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">185</span>, <span style="color: #000000;">158</span>, <span style="color: #000000;">106</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrPCheck := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">225</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nClrBCheck := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">49</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">197</span> <span style="color: #000000;">)</span><br /><br /><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span><br /><br /> <span style="color: #B900B9;">//oMenu:oFont := oFont</span><br /><br /><span style="color: #0000ff;">MENU</span> oMenu ;<br /><br /> oMenu:<span style="color: #000000;">oFont</span> := oFont<br /><span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&File"</span><br /> <span style="color: #0000ff;">MENU</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2013</span> ;<br /> COLORMENU CLR_WHITE, CLR_BLUE ;<br /> COLORSELECT METRO_STEEL, METRO_STEEL, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> COLORLEFT CLR_WHITE ;<br /> COLORRIGHT CLR_WHITE ;<br /> COLORSEPARATOR METRO_OLIVE ; <span style="color: #B900B9;">// NOINHERIT ; // FACTOR 4 ;</span><br /> LEFTWIDTH <span style="color: #000000;">24</span> ; <span style="color: #B900B9;">//HEIGHT 1.0 * 2 ; // RIGHTSPACE 10 ; // ADJUST ;</span><br /> LOGOMENU <span style="color: #ff0000;">"medical.bmp"</span> ; <span style="color: #B900B9;">//identify.bmp" ; //</span><br /><span style="color: #B900B9;">// IMGMENU "..\bitmaps\AlphaBmp\lock.bmp" ;//fivewing.bmp"</span><br /><span style="color: #B900B9;">// BRUSH "..\bitmaps\backgrnd\confetti.bmp"</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&New"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+N"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn1"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Open"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+O"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn2"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Save"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+S"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn3"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"S&end"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn4"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Print"</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Ctrl+P"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn5"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Print Preview"</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"btn6"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><br /><br /><br /><span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MENU</span> oMenu<br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span></div>[/code:3gw8b7eq] |
image on menu RESOLVED | Silvio
[code=fw:2cyh6dj1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oMenu:<span style="color: #000000;">oFont</span> := oFont<br /> </div>[/code:2cyh6dj1]
Please, define font in command menu
[code=fw:2cyh6dj1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">FONT</span> oFont<br /> </div>[/code:2cyh6dj1] |
image on menu RESOLVED | I made allways
oMenu:oFont := oFont
then on the menu only I insert 2010/2013/2015 it take the color
if I add my colors it not run
local nClrText := RGB( 99, 54, 128 )
local nClrTDisa := RGB( 197, 194, 184 )
local nClrPane := RGB( 245, 245, 245 )
local nClrSepar := RGB( 94, 129, 197 )
local nClrPMgn1 := RGB( 227, 238, 255 )
local nClrPMgn2 := RGB( 128, 167, 226 )
local nClrPSel := RGB( 255, 252, 203 )
local nClrPSel2 := RGB( 255, 213, 61 )
local nClrBPSel := RGB( 185, 158, 106 )
local nClrPCheck := RGB( 225, 230, 232 )
local nClrBCheck := RGB( 49, 106, 197 )
MENU oMenu ;
COLORMENU nClrPane, nClrText ;
COLORSELECT nClrPSel, nClrPSel2, nClrBPSel ;
COLORLEFT nClrPMgn1 ;
COLORRIGHT nClrPMgn2;
COLORSEPARATOR nClrSepar ;
logomenu "medical.BMP"
it 's not run ok, for me this menu class not run ok |
image on menu RESOLVED | Have you tried the code I sent you by mail to correct yours? |
image on menu RESOLVED | yes now it ok |
image on menu RESOLVED | Bravo! |
image size | Hi, all !
There is file 1.jpg How to know the size of the picture in this file ? |
image size | [code=fw:3fdc3fzb]<div class="fw" id="{CB}" style="font-family: monospace;">? NBMPHEIGHT<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br />? NBMPWIDTH<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span></div>[/code:3fdc3fzb]
EMG |
image size | Thanks ! |
image trasparent | CAN I SET THE QUANTITY OF TRASPARENT OF A BITMAP I WANT SHOW ON A A DIALOG ? |
image trasparent | See \Fwh\Samples\BmpAlpha.Prg
Regards
Anser |
image trasparent | run only with alpha bitmap ? |
image trasparent | [quote:350brew1][b:350brew1]The Alpha Channel[/b:350brew1]
RGB colours are also called RGB channels. The reason for this is that there is an optional fourth channel a pixel can have, namely its alpha channel.
The alpha channel ('A') is used to represent transparency. Not all digital images have transparency information. In cases where they don't, (a plain RGB image), the images are 100% "solid". If you were to layer such an image over another image, it would obscure the one underneath as it is completely opaque.
[/quote:350brew1]
Regards
Anser |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.