topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Bluetooth print and Special characters
|
Richard,
> i do not know the ascii character but i can display them it if necessary
Please place a MsgInfo() to check their asc() values, thanks
|
Bluetooth print and Special characters
|
Antonio
first one is 233
Do you need them all ? <!-- s:x --><img src="{SMILIES_PATH}/icon_mad.gif" alt=":x" title="Mad" /><!-- s:x -->
Richard
|
Bluetooth print and Special characters
|
Richard,
Just two more, please
|
Bluetooth print and Special characters
|
232
224
|
Bluetooth print and Special characters
|
231
249
176
|
Bluetooth print and Special characters
|
Richard,
Characters with ascii over 128 are printing right ? I wonder if it is a sign issue
|
Bluetooth print and Special characters
|
Antonio
I do not have the printer here at home but at the office.
I can check all ascii chars tomorrow early morning and report back.
If you need any more testing, drop me a line
Regards
Richard
|
Bluetooth print and Special characters
|
Antonio
Confirmed, it is a sign issue
Ascii codes up to 127 are printed correct not the others.
I sent to your private email a pdf showing a print out of all ascii codes.
Richard
|
Bluetooth print and Special characters
|
Richard,
Please test this function and place a #define WriteByte _WriteByte in your app:
[code:2l9fnno8]
HB_FUNC( _WRITEBYTE ) // hComm, nChar --> lOk
{
DWORD cBytes;
unsigned char ch = ( unsigned char ) hb_parnl( 2 );
hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) );
}
[/code:2l9fnno8]
|
Bluetooth print and Special characters
|
Antonio
Same result
Richard
|
Bluetooth print and Special characters
|
Richard,
We are searching info for WriteFile() use to manage unsigned chars
|
Bluetooth print and Special characters
|
Antonio
No problem
I have the printer available all week end if you need some testing.
Let me know.
Richard
|
Bluetooth print and Special characters
|
Richard,
Could you please try this:
[code:2rvqm0y3]
HB_FUNC( WRITE233 ) // hComm --> lOk
{
DWORD cBytes;
unsigned char ch = 233;
hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) );
}
[/code:2rvqm0y3]
Just to check if 233 ascii gets properly printed, thanks
|
Bluetooth print and Special characters
|
Antonio
No it is not good
This is the sample i am using (just to check the syntax)
I had to remove the INT RC (compile error)
#include "C:\FWPPC\INCLUDE\FWCE.ch"
#define GENERIC_READ 0x80000000
#define GENERIC_WRITE 0x40000000
#define GENERIC_REWRITE 0xC0000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
#define FILE_FLAG_OVERLAPPED 0x40000000
#define WriteByte _WriteByte
function Main()
LOCAL I := 0, ;
CTEXTE := SPACE(30), ;
HOUT
hOut := CreateFile( "COM5:",GENERIC_REWRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
CTEXTE := "Désignation à suivre €"
SENDTEXT(hout,Ctexte)
CloseHandle( hOut )
RETURN Nil
function SendText( hOut, cText )
local n
for n = 1 to Len( cText )
WriteByte( hOut, Asc( SubStr( cText, n, 1 ) ) )
next
return nil
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <aygshell.h>
HB_FUNC( _WRITEBYTE ) // hComm, nChar --> lOk
{
DWORD cBytes;
unsigned char ch = 233;
// unsigned char ch = ( unsigned char ) hb_parnl( 2 );
hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) );
}
#pragma ENDDUMP
|
Bluetooth print and Special characters
|
[quote="Antonio Linares":dhw2rkep][code:dhw2rkep]
HB_FUNC( WRITE233 ) // hComm --> lOk
{
DWORD cBytes;
unsigned char ch = 233;
hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) );
}
[/code:dhw2rkep][/quote:dhw2rkep]
Why the cast to void *? It should be to HANDLE. But this is surely not the problem.
EMG
|
Bluetooth print and Special characters
|
Enrico,
From Windows headers: typedef void *HANDLE;
Its quite strange why WriteFile() is not able to manage unsigned chars...
|
Bluetooth print and Special characters
|
Antonio
This is from Pocket pc Msdn
Does it make any sense in this case ?
You should note that the lpBuffer parameter of WriteFile is a LPCVOID (typedef for const void *).
That means the lpBuffer parameter is type-agnostic. You could make it point to an array of chars, or you can make it point to an array of WCHARs, an array of ints, array of doubles, array of Matrices, array of FileSystems, array of... you get the idea. The key to telling WriteFile what the data type is, is through the nNumberofBytesToWrite parameter.
If you want to write 2 WCHARs to the stream, the 3rd parameter to WriteFile should be 2*sizeof(WCHAR) (but make sure that the 2 WCHARs are next to each other in memory).
Note, that sending UNICODE across the serial port is only useful if the program on the other side of the port understands UNICODE.
// WriteFile(f, data, lstrlen(data) * sizeof(TCHAR), &bytesWritten, NULL); // RIGHT
|
Bluetooth print and Special characters
|
Richard,
It does not make a difference. We are placing an unsigned char into the buffer and WriteFile() should transmit an unsigned char.
Could you try to send the data to a different bluetooth device ? Maybe the difference comes from the receiver
|
Bluetooth print and Special characters
|
Richard,
Does that printer work with unicode chars ?
|
Bluetooth print and Special characters
|
Antonio
The printer is OK There is no setting on it.
When i send the txt file to the printer via windows mobile (send via bluetooth), the printout is OK.
The problem is i the writefile function
Richad
|
Bluetooth print and Special characters
|
I don't have the documentation of the printer available here, but i will take a look at it tomorrow morning.
My guess is "Yes" it takes Unicode, see my previous post.
|
Bluetooth print and Special characters
|
Antonio
The printer works with Unicode
It is a brand new HP Deskjet 460
I tried it also on another BT printer (Epson), same problem.
Looks like we have a problem with accented characters.
I have a work around but can not find the appropriate C code for it. Maybe you can help ?
I want to print a txt file from fwppc by calling the file explorer, send via bluetooth function. This will temporarly fix my problem.
Thanks for the help,
Richard
|
Bluetooth print and Special characters
|
Richard,
Please try this:
[code:rp0ak8fr]
HB_FUNC( WRITE233 ) // hComm --> lOk
{
DWORD cBytes;
WCHAR ch = 233;
hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, sizeof( ch )
, &cBytes, NULL ) );
}
[/code:rp0ak8fr]
|
Bluetooth print and Special characters
|
Same result
Bad character printed.
Richard
|
Bluetooth print and Special characters
|
Are you able to read what exactly comes out of the palmtop?
EMG
|
Bluetooth print and Special characters
|
Enrico
What do you mean by this ? i do not understand
Richard
|
Bluetooth print and Special characters
|
Till now you only know that the printer won't print what you expected. It would be useful to know what number(s) really comes out of the palmtop instead.
EMG
|
Bluetooth print and Special characters
|
How can i know that ?
|
Bluetooth print and Special characters
|
This is the result
<!-- m --><a class="postlink" href="http://www.cbati.com/scanprint.jpg">http://www.cbati.com/scanprint.jpg</a><!-- m -->
it should display "é"
|
Bluetooth print and Special characters
|
[quote="Richard Chidiak":1ihl4f45]How can i know that ?[/quote:1ihl4f45]
As an example, connecting the bluetooth to a PC?
EMG
|
Bluetooth print and Special characters
|
Enrico
From pc, everything prints out ok on the same printer
I already tested it.
Richard
|
Bluetooth print and Special characters
|
[quote="Richard Chidiak":3olyde6q]Enrico
From pc, everything prints out ok on the same printer
I already tested it.
Richard[/quote:3olyde6q]
No, you still haven't understood what I'm saying. You may try to print from your palmtop connecting it to a PC instead of a printer. That way you can see what exactly comes out from your palmtop (ie. the real numbers).
EMG
|
Bluetooth print and Special characters
|
Enrico
I had tried that but nothing displays on the pc or maybe i was unable to configure it correct. Though i can transfer files via bt from pocket to different pcs.
Any clue on how to do it or what i may have missed ?
Tia
Richard
|
Bluetooth print and Special characters
|
No, sorry. My knowledge on real palmtops is about zero. I only use the emulator. I can imagine that you have to setup the serial port of your PC, use a program to receive the numbers sent from the palmtop and display them on the screen.
EMG
|
Bluetooth print and Special characters
|
I did try all the possibilities but did not see any chars appear.
I do not know how to do it. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
|
Bluetooth programming readings
|
[url:2emb2bgw]https://people.csail.mit.edu/albert/bluez-intro/index.html[/url:2emb2bgw]
|
Bluetooth serial port
|
I need 2-way comms to a Bluetooth 'Flic' scanner (to handle the out of range protocol), but always get a port handle of -1 and no response. For testing I have added a 'read' section to sample program 'bluetoth' using code as earlier posts and am attempting to retrieve each character via Chr(bin2l( ReadByte( hIn ) ) )
The scanner works OK to other programs and also via keyboard wedge s/w.
Antonio, friends, can anyone offer any clues?
thanks
|
Bluetooth serial port
|
Jon,
We discussed the bluetooth issue here, and finally got it working using CreateFile() function call. Is that the one you are using too ?
|
Bluetooth serial port
|
Antonio,
Yes, I'm using the same method as used by Jose with the printer and in your 'bluetoth' sample. I have a variant 'blueread' :
// BlueRead
#include "FWCE.ch"
#define GENERIC_READ 0x80000000
#define GENERIC_WRITE 0x40000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
function Main()
local oWnd
local hOut := CreateFile( "COM2:",GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
DEFINE WINDOW oWnd TITLE "BlueRead"
@ 2, 2 BUTTON "Read" ;
ACTION ReadText( hOut ) SIZE 80, 20
ACTIVATE WINDOW oWnd
CloseHandle( hOut )
return nil
function ReadText( hOut )
local nChr := 1
local cText := ""
local nLen := 0
msginfo(str(hOut))
do while nChr <> 0
nChr := bin2l( ReadByte( hOut ) )
cText := cText + Chr( nChr )
end do
msginfo( cText )
return nil
The port handle is displayed as -1 and then just blanks. I wondered if anyone has got this running in this mode. I will also need to write a response to the scanner, hence am using 'write' mode. Any help is gratefully received, thanks.
|
Bluetooth serial port
|
Jon,
Please notice that you should use GENERIC_READ instead of GENERIC_WRITE.
|
Bluetooth serial port
|
Antonio,
Some progress - after re-booting the emulator and using only COM1 I can get a port handle number like 230603634, which I assume is OK and similar to running on an Intermec 700C. I'm not able to retrieve characters from the buffer though and repeatedly only get asc(156). How should I read from the communication buffer and is it possible to clear it (like Telpathy tp_clearin())?
Thanks for any clues <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
regards, saludos
|
Bluetooth serial port
|
Notes for newbies on Emulator Serial Ports (MSDN Forums - Device Emulator General 29 Nov 2005)
Serial Port 0: appears inside the emulator as COM1: that apps can use.
Serial Port 1: reserved for WinCE kernel, doesn't have a driver, do not use it. ie 'com2:' is not available.
Serial Port 2: the IRDA port and assigned the name COM3:
I've grafted fragments of FWPPC 'comm.c' into parts of Harbour Telepathy (port by Luiz Rafael Culik Guimaraes) and have a working FWPPC test program that reads from a barcode scanner and can send acks, etc. Nearly there...
Regards and happy and successful 2006 to all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Bluetooth serial port
|
jon
I in need for the contact between the pocket pc from Bluetooth to computer
Sending a file represented or received a file
I testing all fwppc sources the available and did not run
Do there is solution
Best Regards
HATHAL
|
Bluetooth serial port
|
Hathal,
Have you considered ActiveSync or other serial comms program with Bluetooth? Possibly less painful. I only need a few basic functions.
regards, saludos
|
Bluetooth serial port
|
[quote="Jon Munro":2in9qy2f]Hathal,
Have you considered ActiveSync or other serial comms program with Bluetooth? Possibly less painful. I only need a few basic functions.
regards, saludos[/quote:2in9qy2f]
jon
I want function with Fwppc source
Best Regards
HATHAL
|
Bluetooth serial port
|
Hathal,
Define a single port with mode 0xC0000000 to get 'read-write'. You may find that 'nChr := bin2l( ReadByte( hIn ) )' will return single characters (as asc value) from data received. 'BillSerialMonitor' (freeware) from <!-- w --><a class="postlink" href="http://www.symcod.com">www.symcod.com</a><!-- w --> is very useful for testing. Still testing comms functions...
regards
|
Bluetooth serial port
|
[quote="Jon Munro":2cvf4v0i]
I've grafted fragments of FWPPC 'comm.c' into parts of Harbour Telepathy (port by Luiz Rafael Culik Guimaraes) and have a working FWPPC test program that reads from a barcode scanner and can send acks, etc. Nearly there...
Regards and happy and successful 2006 to all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2cvf4v0i]
Hello Jon,
I need to read a bluetooth GPS receiver from a pocket PC.
Having used the sample code that you posteed earlier, i reach the same point as you were : I get a handle but cannot receive any message.
Could you please share your experience and tell me what I still need to do. A code snippet would be greatly appreciated.
Many thanks in advance.
|
Bluetooth serial port
|
Raymond,
The FWPPC comms functions work well, for example:
#define GENERIC_READ 0x80000000
#define GENERIC_WRITE 0x40000000
#define GENERIC_REWRITE 0xC0000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
...
...
...
STATIC FUNCTION OPENCOMM( nPort )
// Open port for read/write
local hPort
hPort := CreateFile( "COM"+ltrim(str(nPort))+":",;
GENERIC_REWRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
if hPort == -1
MSGALERT("Cannot open port")
return -1
endif
Return hPort
...
...
// Read a character from comm port handle hPort
cChr := Chr(ReadByte( hPort ))
...
...
// Write a character to comm port handle hPort
WriteByte( hPort, Asc(cChr))
Please see my other posts on related issues with available ports via the emulator and faults with PPC2003 emulator. Antonio's code is the best! I use it to read and talk to a bluetooth barcode and possibly RFID scanners.
Just one character at a time.
hth
|
Bluetooth serial port
|
Many thanks, I will give it a try.
I need to read complete messages but I am sure this is not a problem as long as I can read a character.
Best Regards,
Raymond
|
Bluetooth serial port
|
Thanks for the info.
Based on it I have been able to get the data from a Btooth GPS.
I still have a problem to get the data from a serial one. I can read the serial GPS but I only get invalid data.
Here is my com port opening :
[code:3rzbjec3]STATIC FUNCTION OPENCOMM(nPort)
// Ouvrir le port en lecture
LOCAL hPort
hPort := CreateFile( "COM"+ltrim(str(nPort))+":",;
GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
IF hPort == -1
MSGALERT("Impossible d'ouvrir le port")
ENDIF
RETURN hPort[/code:3rzbjec3]
nPort comtains 8 for a Btooth and 1 or 2 for the serial port.
I wonder if the problem is not due to a bad com port setting (like a bad baud rate).
I could not find the documentation of the "CreateFile" function. Can you tell me where to look ?
Many thanks,
|
Bluetooth serial port
|
[quote="Raymond Fischbach":1vo0i2hi]I could not find the documentation of the "CreateFile" function. Can you tell me where to look ?[/quote:1vo0i2hi]
On the MSDN.
EMG
|
Bluetooth support
|
Hi Everybody,
Is it possible to communicate with a Bluetooth device via FWH ?
If yes, are there any samples?
Thanks,
Jeff
|
Bluetooth support
|
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=5347">http://fivetechsoft.com/forums/viewtopic.php?t=5347</a><!-- m -->
|
Blur effect!!!
|
He estado haciendo pruebas con el efecto de empañado, y funciona perfectamente en mi computador de escritorio, con Windows 7 y 4gb de Memoria, pero en mi laptop (Intel Centrino) y mi AllInOne (Atom), ambas con 2 Gb de Memoria y Windows XP, no me funciona correctamente, la mayoria del tiempo empaña 1 control, a veces 2 Controles, a veces 4, a veces mas y raras veces todos los controles....
Al parecer, esto se debe a que la funcion Blur no espera a que se pinten los controles del dialogo o ventana, para ejecutarse.....
He intentado a poner un Inkey(.5), pero al colocarlos, se detiene todo, incluyendo el pintado de la ventana y se produce el mismo efecto.....
Estoy utilizando ventanas tipo POP UP, por lo que quiero utilizar este efecto para diferenciar la ventana nueva de la anterior....
Algun comentario al respecto, o ayuda de como resolver el problema, les estare muy agradecido!!!!
Tengo una ventana POPUP con aproximadamente 70 controles, la mayoria BTNBMP's con 1 imagen.....
El codigo que uso para obtener el efecto es:
[code=fw:2p8noeuc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp <br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /> <br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> <br /> PalBmpDraw<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hDC</span> , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Probando Empañado de Pantalla..."</span> <span style="color: #000000;">)</span><br /> oDialog:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span><br /><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2p8noeuc]
|
Blur effect!!!
|
Bayron disculpa, he querido probar el efecto Blur también para conseguir el efecto de que no sea una cosa inmediata y no se si lo hago bien. Si lo pongo en ON PAINT no me efectúa el efecto deseado.
[code=fw:2o85pggs]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> BlurEffect<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Do you want to end ?"</span> <span style="color: #000000;">)</span><br /> </div>[/code:2o85pggs]
Si no dejo el mensaje tuyo (//MsgInfo...) no aprecio el efecto blur, en los dialogos. Si lo dejo funciona pero lo que me muestra es la imagen blur hasta que vuelvo a pulsar el mensaje tuyo y entonces se quita.
Pregunta: ¿No tendriamos que crear un delay e ir actualizando la concentración del blur hasta que fuera nula? No sé, es la primera prueba que hago pero no tengo ni idea.
[code=fw:2o85pggs]<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 /><br /> <span style="color: #00C800;">local</span> oDlg, oIco, cTest := <span style="color: #ff0000;">"Hello world! "</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"fivewin.ico"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"I am a DialogBox"</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W+/B"</span> ;<br /> <span style="color: #0000ff;">ICON</span> oIco<br /><br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">GET</span> cTest<br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> BlurEffect<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span> <span style="color: #00C800;">DEFAULT</span><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> BlurEffect<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Do you want to end ?"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />procedure AppSys <span style="color: #B900B9;">// XBase++ requirement</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp<br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /><br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /><br /> PalBmpDraw<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hDC</span> , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//MsgInfo( "Probando Empañado de Pantalla..." )</span><br /> oDialog:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span><br /><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2o85pggs]
|
Blur effect!!!
|
Si pongo un for next, no me crea bien el efecto ya que solo lo hace en los controles que tiene el dialogo y no en todo el dialogo. ¿Alguien sabe como crear el efecto pero de todo el dialogo? Prueben de añadir el for next en el blur, cuando se pulsa ok, se muestra el efecto pero con un pequeño rebote al final. Bueno son ideas.
[code=fw:1ym05xfj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp, i<br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /><br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">120</span><br /><br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #000000;">121</span> - i<span style="color: #000000;">)</span><br /><br /> PalBmpDraw<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hDC</span> , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//MsgInfo( "Probando Empañado de Pantalla..." )</span><br /> oDialog:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span><br /><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1ym05xfj]
|
Blur effect!!!
|
Bayron
prueba colocar un sysrefresh() antes de empezar el proceso del blur
Andres
oDialog:refresh() sacalo del FOR/NEXT
|
Blur effect!!!
|
Gracias Daniel, funcionó perfectamente!!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Blur effect!!!
|
Andres, intenta este codigo:
[code=fw:233h0za8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />....<br />....<br />....<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">Window</span> oDialog ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">Init</span> <span style="color: #000000;">(</span> BlurEffect<span style="color: #000000;">(</span> oDialog , .T. <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"NNN"</span> <span style="color: #000000;">)</span>, oDialog:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, BlurEffect<span style="color: #000000;">(</span> oDialog , .F. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br />....<br />....<br />....<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog , ForWard<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp, i<br /> <span style="color: #00C800;">LOCAL</span> n := <span style="color: #000000;">25</span><br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /><br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">25</span><br /> <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> !ForWard, n := n - <span style="color: #000000;">1</span> , <span style="color: #000000;">)</span><br /> <br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ForWard, i , n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> PalBmpDraw<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hDC</span> , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #B900B9;">//MsgInfo( "Probando Empañado de Pantalla..." )</span><br /> <span style="color: #B900B9;">//oDialog:refresh()</span><br /><br /> DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span><br /><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:233h0za8]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Daniel,
El problema del BLUR ya está resuelto, no sé ni que le moví, pero ahora funciona correctamente...
Ahora el problema es con el pintado del RibbonBar, y éste apareció despues de que definí la ventana principal colocando el estilo: [color=#FF0000:2gdaud91]STYLE nOr( WS_POPUP )[/color:2gdaud91], si quito este estilo, todo va bien...
Esto se puede observar en el video del post anterior...
EDITADO:
Al posicionar el Mouse sobre los grupos, el pintado se muestra correctamente de nuevo...
El problema se da cuando se pinta inicialmente la RibbonBar, y cuando utilizo las funciones oWnd:Restore() y oWnd:Maximize()
Con el ejemplo samples\ribbon.prg no se da el problema, y estoy tratando de recrear el problema ahora...
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Daniel,
Este codigo reproduce el error... Hay botones en la parte superior derecha para las funciones basicas de la ventana... (Por favor intenta a Maximizar/Restaurar la ventana)
[code=fw:352614x5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.CH"</span> <span style="color: #B900B9;">//FWH10.2</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /><br /><span style="color: #00C800;">static</span> oRBar<br /><span style="color: #00C800;">static</span> oBtn101, oBtn102, oBtn103<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">public</span> oWnd<br /><br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> oWnd;<br /> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">(</span> WndHeight<span style="color: #000000;">(</span> GetDesktopWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> -;<br /> fhTaskBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> WndWidth<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> GetDesktopWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">PIXEL</span>; <br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_POPUP <span style="color: #000000;">)</span><br /> <br /> <span style="color: #B900B9;">//NEW RIBBON </span><br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">OF</span> oWnd;<br /> <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">" Archivos "</span>;<br /> HEIGHT <span style="color: #000000;">230</span>;<br /> TOPMARGIN <span style="color: #000000;">52</span><br /><br /> <span style="color: #B900B9;">//Buttons</span><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-48</span> <span style="color: #0000ff;">BTNBMP</span> oBtn101;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span>;<br /> <span style="color: #0000ff;">PIXEL</span>; <br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-96</span> <span style="color: #0000ff;">BTNBMP</span> oBtn102;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Max"</span> + CRLF + <span style="color: #ff0000;">"Rest"</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>IsZoomed<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span>,;<br /> oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-144</span> <span style="color: #0000ff;">BTNBMP</span> oBtn103;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Min"</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">Minimize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /><br /> <span style="color: #B900B9;">//Grupo 1</span><br /> ADD GROUP oGr20;<br /> RIBBON oRBar;<br /> <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span>; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Trabajando con Camareros..."</span>;<br /> WIDTH <span style="color: #000000;">180</span><br /><br /> @ <span style="color: #000000;">15</span>, <span style="color: #000000;">15</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn20;<br /> GROUP oGr20;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">130</span>;<br /> <span style="color: #0000ff;">ROUND</span><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: #00C800;">NIL</span> <br /><br /><span style="color: #B900B9;">//***********************************************************************//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> fhTaskBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Of Daniel Garcia-Gil</span><br /> <span style="color: #00C800;">local</span> hTaskBar := FindWindow<span style="color: #000000;">(</span><span style="color: #ff0000;">"Shell_TrayWnd"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aClientRect := GetClientRect<span style="color: #000000;">(</span> hTaskBar <span style="color: #000000;">)</span> <br /> <br /><span style="color: #00C800;">RETURN</span> aClientRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <br /><br /> </div>[/code:352614x5]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Hola,
Al intentar usar el efecto Blur en una ventana con RibbonBar, ésta hace el efecto, pero la RibbonBar no lo hace...
Al hacerlo sobre el objeto de la RibbonBar, solamente los tabs hacen el efecto, pero no los botones pintados sobre ella...
[img:3368rhzj]http://www.mayapos.com/FiveWin/puntotactil8.png[/img:3368rhzj]
Si es algo demasiado complicado como para arreglarlo en FWH10.2, por favor indiquenlo cuando sea arreglado en alguna version futura!!!!
EDITADO:
oRBar:Disable() funciona, pero no crea ningún efecto de desabilitado sobre la RibbonBar....
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Bayron
intenta hacerlo sobre la ventana principal no sobre la ribbon
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Hola Daniel,
Eso fue lo primero que hice, pero ni siquiera tocó la RibbonBar... al menos no lo hizo ayer, hoy si está trabajando bien???
Hice algunas pruebas, aparentemente el problema de pintado en los grupos (ya no tiene nada que ver con el efecto Blur) me lo da al colocar STYLE nOr( WS_POPUP ); en el ejemplo ribbon.prg no me produce este problema...
Ya coloque oRBar:Refresh() y un SysRefresh() en el on Init y sigue igual...
EDITADO:
Utilizando la función oWnd:Maximize(), siempre me provoca el problema de pintado....
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Aquí te muestro el problema:
[url:2h1zg7z7]http://www.youtube.com/watch?v=YAqTucM2Pzw[/url:2h1zg7z7]
para Maximizar la ventana solamente uso oWnd:Maximize()
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Bayron
trata de cocinar esta idea
este link te puede servir para las opciones del GetSysMetrics
[url:37f3dqr8]http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx[/url:37f3dqr8]
oDialog es la ventana principal y retorno
[code=fw:37f3dqr8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp, i<br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /> <span style="color: #00C800;">LOCAL</span> oWnd<br /> <br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /><br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #000000;">4</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;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_POPUP, WS_VISIBLE <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">PIXEL</span><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;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> ::<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">51</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: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">(</span> PalBmpDraw<span style="color: #000000;">(</span> hDC , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span>, DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> oWnd <span style="color: #B900B9;">//retorno este objeto para liberarlo despues de cerrar el dialogo que crea el efecto blur</span><br /><br /> </div>[/code:37f3dqr8]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
La RibbonBar no refresca cuando regreso del efecto Blur, como lo tengo ahora y tambien con el ejemplo que tu pusiste....
Le he colocado un SysRefresh(), oWnd:Refresh() y oRBr:Refresh(), pero no funciona...
[url:2w9oa990]http://www.youtube.com/watch?v=SY7EaGB_8bs[/url:2w9oa990]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Daniel y Equipo FiveTech,
1 He encontrado una forma temporal de refrescar la RibbonBar al momento de entrar a mi programa:
[code=fw:2oxbth5z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span> oRBar:<span style="color: #000000;">Resize</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, oRBar:<span style="color: #000000;">nWidth</span>, oRBar:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:2oxbth5z]
Pero solo funciona para entrar al programa y no con oWnd:Maximize() y oWnd:Restore(), asi que:
2 Tuve que declarar cada Grupo y cada Boton de la Barra con una variable Estatica y Refrescarlas individualmente...
Asi que estoy pensando en hacer una funcion temporal, algo asi como:
[code=fw:2oxbth5z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">For</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Len<span style="color: #000000;">(</span>oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">)</span><br /> oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">For</span> m = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">)</span><br /> oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>m<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> EndFor<br /><br />EndFor</div>[/code:2oxbth5z]
No he probado todavia, a ver que resuelvo... Ojala que vaya por buen camino...
3 He puesto algunos botones con la BtnBmp, con la Clausula [color=#BF0000:2oxbth5z]OF oRBar[/color:2oxbth5z] y tampoco son refrescados al momento de volver de la función BlurEffect() y hacer un :Refresh() en la ventana y otro en la RibbonBar...
Voy a intentar con botones RbButton a ver que pasa....
Todo lo expuesto anteriormente deberia ser refrescado por un oRBar:Refresh(), por lo que estas soluciones deben ser temporales, mientras se encuentra la forma de que sean permantes desde la propia Clase...
Tomen en cuenta que solo sucede cuando uso la ventana con [color=#BF0000:2oxbth5z]STYLE nOr( WS_POPUP )[/color:2oxbth5z]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
He logrado Refrescar la RibbonBar, con esta funcion:
[code=fw:k0n129ee]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> RefRBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">For</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Len<span style="color: #000000;">(</span>oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">)</span><br /> oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">For</span> m = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">)</span><br /> oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>m<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">For</span> l = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>m<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">)</span><br /> oRBar:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>m<span style="color: #000000;">]</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span>l<span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> EndFor<br /> EndFor<br /> EndFor<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:k0n129ee]
Pero me provoca un parpadeo no tan bonito!!!...
PS: Ver el post anterior...
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Bayron
prueba esto, el boton dentro del grupo hace el efecto blur
[code=fw:98n85pux]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.CH"</span> <span style="color: #B900B9;">//FWH10.2</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /><br /><span style="color: #00C800;">static</span> oRBar<br /><span style="color: #00C800;">static</span> oBtn101, oBtn102, oBtn103<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> aArea := GETWORKAREA<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">public</span> oWnd<br /> <br /> <br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> oWnd;<br /> <span style="color: #0000ff;">FROM</span> aArea<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">TO</span> aArea<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>;<br /> <span style="color: #0000ff;">PIXEL</span>; <br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_POPUP, WS_VISIBLE <span style="color: #000000;">)</span><br /> <br /> <span style="color: #B900B9;">//NEW RIBBON </span><br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">OF</span> oWnd;<br /> <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">" Archivos "</span>;<br /> HEIGHT <span style="color: #000000;">230</span>;<br /> TOPMARGIN <span style="color: #000000;">52</span><br /><br /> <span style="color: #B900B9;">//Buttons</span><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-48</span> <span style="color: #0000ff;">BTNBMP</span> oBtn101;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span>;<br /> <span style="color: #0000ff;">PIXEL</span>; <br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-96</span> <span style="color: #0000ff;">BTNBMP</span> oBtn102;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Max"</span> + CRLF + <span style="color: #ff0000;">"Rest"</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> aArea<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, oRBar:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /> @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-144</span> <span style="color: #0000ff;">BTNBMP</span> oBtn103;<br /> <span style="color: #0000ff;">OF</span> oRBar ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Min"</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> ; <br /> <span style="color: #0000ff;">PIXEL</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">Minimize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /><br /> <span style="color: #B900B9;">//Grupo 1</span><br /> ADD GROUP oGr20;<br /> RIBBON oRBar;<br /> <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span>; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Trabajando con Camareros..."</span>;<br /> WIDTH <span style="color: #000000;">180</span><br /><br /> @ <span style="color: #000000;">15</span>, <span style="color: #000000;">15</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn20;<br /> GROUP oGr20;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">130</span>;<br /> <span style="color: #0000ff;">ROUND</span>;<br /> <span style="color: #0000ff;">action</span> Ribbon<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /> <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;">on</span> <span style="color: #0000ff;">init</span> oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> aArea<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /><span style="color: #B900B9;">//***********************************************************************//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> fhTaskBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Of Daniel Garcia-Gil</span><br /> <span style="color: #00C800;">local</span> hTaskBar := FindWindow<span style="color: #000000;">(</span><span style="color: #ff0000;">"Shell_TrayWnd"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aClientRect := GetClientRect<span style="color: #000000;">(</span> hTaskBar <span style="color: #000000;">)</span> <br /> <br /><span style="color: #00C800;">RETURN</span> aClientRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <br /><br /> <br /><br /><span style="color: #00C800;">Function</span> Ribbon<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #00C800;">local</span> aBtn := Array<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aGrp := Array<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oBrush<br /> <span style="color: #00C800;">local</span> oMenu<br /> <span style="color: #00C800;">local</span> oBlur<br /><br /> oBlur = BlurEffect<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span> <br /><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Style Set"</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>tyleset161.BMP"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Colors"</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Font"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\b</span>oards.bmp"</span> <br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test RibbonBar Own Control "</span> + FWVERSION <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">600</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /> @ <span style="color: #000000;">010</span>, <span style="color: #000000;">010</span> RBGROUP aGrp<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">40</span> <br /> <br /> @ <span style="color: #000000;">010</span>, <span style="color: #000000;">060</span> RBGROUP aGrp<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Transparent"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">40</span> TRANSPARENT<br /> <br /> @ <span style="color: #000000;">010</span>, <span style="color: #000000;">110</span> RBGROUP aGrp<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Own Color"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">40</span> ;<br /> GRADIANT <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.9</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">252</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">40</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>;<br /> LINECOLORS RGB<span style="color: #000000;">(</span> <span style="color: #000000;">249</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">179</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">)</span>;<br /> CAPTIONGRAD <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">239</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">239</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>;<br /> TEXTCOLOR CLR_WHITE<br /> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">05</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Say Button"</span> SAYBUTTON <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ROUND</span> BORDER;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Say Button"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">60</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ROUND</span> BORDER;<br /> GRADIANT <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> , ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">252</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">40</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span><span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> ;<br /> LINECOLORS RGB<span style="color: #000000;">(</span> <span style="color: #000000;">249</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">179</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">)</span><br /> <br /> @ <span style="color: #000000;">120</span>, <span style="color: #000000;">005</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Most Left"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">15</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> BORDER ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignleft16.bmp"</span><br /><br /> @ <span style="color: #000000;">120</span>, <span style="color: #000000;">080</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">5</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Left"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">ROUND</span> BORDER ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignleft16.bmp"</span><br /><br /> @ <span style="color: #000000;">140</span>, <span style="color: #000000;">005</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Center"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ROUND</span> BORDER ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extaligncenter16.bmp"</span><br /><br /> @ <span style="color: #000000;">165</span>, <span style="color: #000000;">005</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">7</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Most Right"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">15</span> MOSTRIGHT <span style="color: #0000ff;">ROUND</span> BORDER ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignright16.bmp"</span><br /><br /> @ <span style="color: #000000;">165</span>, <span style="color: #000000;">080</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">8</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Right"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">ROUND</span> BORDER ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignright16.bmp"</span><br /><br /><br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">165</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Rect Corner"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CENTER</span> BORDER <br /><br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">220</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">10</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>elect16.BMP"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Popup"</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">POPUP</span> BORDER<br /> <br /> @ <span style="color: #000000;">130</span>, <span style="color: #000000;">165</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">11</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"SplitPopup"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">50</span>;<br /> SPLITPOPUP <span style="color: #0000ff;">ROUND</span> BORDER <span style="color: #0000ff;">MENU</span> oMenu BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extaligncenter16.bmp"</span><br /><br /><br /> @ <span style="color: #000000;">110</span>, <span style="color: #000000;">220</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">12</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>elect16.BMP"</span> <span style="color: #0000ff;">MENU</span> oMenu;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Action"</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">POPUP</span> BORDER ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Action"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> <br /> @ <span style="color: #000000;">130</span>, <span style="color: #000000;">220</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">13</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Popup"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">50</span>;<br /> SPLITPOPUP <span style="color: #0000ff;">ROUND</span> BORDER <span style="color: #0000ff;">MENU</span> oMenu BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extaligncenter16.bmp"</span>;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Action"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">CENTER</span><br /><br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">005</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">14</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Transparent"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CENTER</span> BORDER TRANSPARENT<br /><br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">080</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">15</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\T</span>EXT.BMP"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"ALPHA"</span> TOP TRANSPARENT <br /><br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">150</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">16</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignleft16.bmp"</span> GROUPBUTTON FIRST <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> ChangeSelect<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">16</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">17</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">18</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">19</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">162</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">17</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extaligncenter16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> ChangeSelect<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">17</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">16</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">18</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">19</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">174</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">18</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignright16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">ROUND</span>;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> ChangeSelect<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">18</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">17</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">16</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">19</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> <br /> @ <span style="color: #000000;">200</span>, <span style="color: #000000;">186</span> RBBTN aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">19</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>extalignjustify16.bmp"</span> GROUPBUTTON END <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">ROUND</span>;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> ChangeSelect<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">19</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">18</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">17</span> <span style="color: #000000;">]</span>, aBtn<span style="color: #000000;">[</span> <span style="color: #000000;">16</span> <span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <br /> AEval<span style="color: #000000;">(</span> aGrp, <span style="color: #000000;">{</span> | o | <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> o != <span style="color: #00C800;">NIL</span>, o:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBlur:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />Procedure ChangeSelect<span style="color: #000000;">(</span> aObj <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> n<br /> <br /> aObj<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">lSelected</span> := .t.<br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span> aObj <span style="color: #000000;">)</span><br /> aObj<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span>:<span style="color: #000000;">lSelected</span> := .f.<br /> aObj<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">Function</span> ChangeBmp<span style="color: #000000;">(</span> oBmp <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">static</span> lWork<br /> <br /> <span style="color: #00C800;">if</span> lWork == <span style="color: #00C800;">nil</span><br /> lWork := .f.<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> !lWork<br /> lWork := .t.<br /> nIndex+=nAvance <br /> <br /> <span style="color: #00C800;">if</span> nIndex > LEN<span style="color: #000000;">(</span> aBmp <span style="color: #000000;">)</span><br /> nAvance := <span style="color: #000000;">-1</span><br /> nIndex := LEN<span style="color: #000000;">(</span> aBmp <span style="color: #000000;">)</span> + nAvance<br /> elseif nIndex == <span style="color: #000000;">0</span><br /> nAvance := <span style="color: #000000;">1</span><br /> nIndex := <span style="color: #000000;">1</span> + nAvance<br /> <span style="color: #00C800;">endif</span><br /> oBmp:<span style="color: #000000;">hBitmap</span> = aBmp<span style="color: #000000;">[</span> nIndex <span style="color: #000000;">]</span> <br /> oBmp:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> lWork := .f.<br /> <br /> <span style="color: #00C800;">endif</span><br /><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> BackStage<span style="color: #000000;">(</span> oRBar <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oBackStage<br /> <br /> <span style="color: #0000ff;">DEFINE</span> BACKSTAGE oBackStage <br /> <br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Save"</span> ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_save.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>;<br /> GRADIENT <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Save As"</span> ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_saveas.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>;<br /> GRADIENT <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">96</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">195</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">37</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>;<br /> COLORTEXT CLR_BLACK, CLR_WHITE<br /> <br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Open"</span> ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_open.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Close"</span>;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_close.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /> <br /><br /> <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Information"</span>;<br /> COLORTEXT <span style="color: #00C800;">NIL</span>, CLR_HRED <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"New"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Save / Send"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>;<br /> GRADIENT <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Help"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>;<br /> COLORS nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">96</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">195</span>, <span style="color: #000000;">37</span>, <span style="color: #000000;">37</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Option"</span> ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_options.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oOpt:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> BSBUTTON <span style="color: #0000ff;">OF</span> oBackStage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> ;<br /> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\b</span>s_exit.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> oRBar:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <br /> <br /> <br /> SET BACKSTAGE oBackStage <span style="color: #0000ff;">TO</span> oRBar<br /><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <br /> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> TestRes<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #00C800;">local</span> oBtn5, oBtn6, obtn7, oBtn8, oBtn9, oBtn10, oBtn11<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TEST"</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>ASTE32.BMP"</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> RIBBON<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> SPLITPOPUP <span style="color: #0000ff;">ROUND</span> <br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>ut16.BMP"</span> ;<br /> MOSTLEFT <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Cut"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>opy16.BMP"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Copy"</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Copy"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>aste16.BMP"</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Paste"</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Paste"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg SAYBUTTON <br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn5 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>old16.bmp"</span> GROUPBUTTON FIRST <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn5:<span style="color: #000000;">lSelected</span> := !oBtn5:<span style="color: #000000;">lSelected</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn6 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\i</span>talic16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn6:<span style="color: #000000;">lSelected</span> := !oBtn6:<span style="color: #000000;">lSelected</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn7 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\u</span>nderline16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">Popup</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn8 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>trikethru16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">ROUND</span>;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn8:<span style="color: #000000;">lSelected</span> := !oBtn8:<span style="color: #000000;">lSelected</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn9 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ubindex16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">ROUND</span>;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn9:<span style="color: #000000;">lSelected</span> := !oBtn9:<span style="color: #000000;">lSelected</span>, oBtn10:<span style="color: #000000;">lSelected</span> := .f., oBtn10:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn10 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>uperindex16.bmp"</span> GROUPBUTTON <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn10:<span style="color: #000000;">lSelected</span> := !oBtn10:<span style="color: #000000;">lSelected</span>, oBtn9:<span style="color: #000000;">lSelected</span> := .f., oBtn9:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn11 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oDlg BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>asing16.bmp"</span> GROUPBUTTON END <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">POPUP</span> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> AddResource<span style="color: #000000;">(</span> nHResource, cType <span style="color: #000000;">)</span><br /><br /> AAdd<span style="color: #000000;">(</span> aResources, <span style="color: #000000;">{</span> cType, nHResource, ProcName<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>, ProcLine<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> DelResource<span style="color: #000000;">(</span> nHResource <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nAt<br /><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nAt := AScan<span style="color: #000000;">(</span> aResources, <span style="color: #000000;">{</span> | aRes | aRes<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> == nHResource <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> ADel<span style="color: #000000;">(</span> aResources, nAt <span style="color: #000000;">)</span><br /> ASize<span style="color: #000000;">(</span> aResources, Len<span style="color: #000000;">(</span> aResources <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">Function</span> BlurEffect<span style="color: #000000;">(</span> oDialog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hBmp, i<br /> <span style="color: #00C800;">LOCAL</span> hBlur<br /> <span style="color: #00C800;">LOCAL</span> oWnd<br /> <span style="color: #00C800;">LOCAL</span> aRect := GetClientRect<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aCoor := GetCoors<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nTop := <span style="color: #000000;">0</span><span style="color: #B900B9;">//GetSysMetrics( 51 ) + GetSysMetrics( 33 ) + 4</span><br /> <span style="color: #00C800;">local</span> nLeft := <span style="color: #000000;">0</span><span style="color: #B900B9;">//GetSysMetrics( 32 ) </span><br /><br /> oDialog:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hBmp := MakeBkBmp<span style="color: #000000;">(</span> oDialog:<span style="color: #000000;">hWnd</span> , oDialog:<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /><br /> hBlur := Blur<span style="color: #000000;">(</span> hBmp , <span style="color: #000000;">4</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;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_POPUP, WS_VISIBLE <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">FROM</span> aCoor<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + nTop, aCoor<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> + nLeft <span style="color: #0000ff;">TO</span> aCoor<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> - GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">33</span> <span style="color: #000000;">)</span>, aCoor<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> - nLeft <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">(</span> PalBmpDraw<span style="color: #000000;">(</span> hDC , <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , hBlur <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span> DeleteObject<span style="color: #000000;">(</span> hBlur <span style="color: #000000;">)</span>, DeleteObject<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /> oWnd:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oDialog:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> oWnd<br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> GETWORKAREA <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> RECT rect;<br /> memset<span style="color: #000000;">(</span> &rect, 0x00, sizeof<span style="color: #000000;">(</span> RECT <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> SystemParametersInfo<span style="color: #000000;">(</span> SPI_GETWORKAREA, <span style="color: #000000;">0</span>, &rect, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /><br /> hb_reta<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /> hb_storvnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> rect.top, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> hb_storvnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> rect.<span style="color: #0000ff;">left</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> hb_storvnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> rect.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> hb_storvnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> rect.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /> <br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><br /> </div>[/code:98n85pux]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Daniel, Gracias por contestar...
No probé tu ejemplo completamente porque mi version de fivewin es la 10.2.. pero probe con:
[code=fw:h5rbojn9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span> aArea<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>, aArea<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span></div>[/code:h5rbojn9]
Funcionó en el ejemplo, pero no funcionó en mi programa...
Lo del efecto Blur, ya fue resuelto... y lo del pintado de la RibbonBar no tiene nada que ver con el... sino con el estilo PopUp...
Por ahora lo tengo resuelto de la forma anteriormente expuesta y creo que lo vamos a dejar así para evitar extender este post innecesariamente...
Gracias por tu apoyo....
[url:h5rbojn9]http://www.youtube.com/watch?v=-Yfxhmf_KFM[/url:h5rbojn9]
|
Blur effect!!! /// RibbonBar ::FiveTech
|
HOLA
ese efecto Blur esta super <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
es de fivewin o codiguito tuyo <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Hola
si esta incluido en fivewin
|
Blur effect!!! /// RibbonBar ::FiveTech
|
Muchas gracias creo que a mi ya no me toco tenerla esta genial
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
Blur effect!!! /// RibbonBar ::FiveTech
|
[quote:222ttnhh]creo que a mi ya no me toco tenerla esta genial[/quote:222ttnhh]
AIDA, Si puedes usarla en tu version de FiveWin, yo uso la 10.2, y creo que tu tienes una mas reciente:
Para usarla solo tienes que enviarle el dialogo, Ventana o Control que quieres hacerle el efecto y darle un Refresh() al volver...
|
Blur?
|
Hi All,
I have a dialog and call another dialog( get or read data ), back to to first dialog.
First dialog background have second dialog background like blur.
This problem does not occur in all users.
Sometimes or for a long time to appear.
I want to know it's FWH problem or computer device problem?
Now, I test fwh1312 got problem. But fwh0612 old version working no problem.
[img:1at89kgs]http://www.fivetech.com.tw/downloads/img/fwh/S_6611433909296.jpg[/img:1at89kgs]
|
Blur?
|
Richard,
Please try with current FWH version, or a more recent version, thanks
|
Blur?
|
[quote="Antonio Linares":1w0ks6ux]Richard,
Please try with current FWH version, or a more recent version, thanks[/quote:1w0ks6ux]
OK. I will try it. Thanks.
|
Bmp en ListBox
|
Srs.Tengo un List Box que muestra los datos de mi tabla de articulos, bien, cuando el usuario elige el articulo que quiere, quiero mostrar la imagen del articulo.1-List Box2-Eleccion3-Mostrar la ImagenTengo el List Box y la funcion para Mostrar la Imagen, pero cuando le dan el click sobre el producto, me da error.de que no puede mostrar el mensaje.Pueden indicarme como realizar esto??
|
Bmp en ListBox
|
Oscar,Que error te da ? Por favor copia aqui el error, gracias
|
Bmp en ListBox
|
[quote="Antonio Linares":bpproe8s]Oscar,
Que error te da ? Por favor copia aqui el error, gracias[/quote:bpproe8s]El error es el Siguiente:Message not FoundTDIALOG:INV_SHOWArg:[ 1]=O ObjectStack Calls:_errt_sbaseTDIALOG ERROR(172)MAS LAS DESCRIPTIVAS DE ORIGEN.ESTA FUNCION LA SAQUE Y CREE UNA VENTANA PRINCIPAL Y CORRE PERFECTAMENTE..Gracias.
|
Bmp en ListBox
|
Oscar,En que parte de tu PRG se llama al método :INV_SHOW() ?Puedes copiar aqui esa porción de código ? gracias
|
Bmp en ListBox
|
[quote="Antonio Linares":3r2kmccz]Oscar,
En que parte de tu PRG se llama al método :INV_SHOW() ?
Puedes copiar aqui esa porción de código ? gracias[/quote:3r2kmccz]*---------------------------STATIC FUNCTION Sel_Invent_dlg()*--------------------------- LOCAL oFont,oFont2 local oSay, cSearch := "" DEFINE FONT oFont NAME "Arial" SIZE 0, -12 DEFINE FONT oFont2 NAME "Arial" SIZE 0, -10 DEFINE DIALOG o[ O_DLG_INVE ] RESOURCE "Sel_Invent" REDEFINE LISTBOX o[ O_LBX_INVE ] ; FIELDS (aDbf[ DBF_ARTICULOS ])->NOMPROD, (aDbf[ DBF_ARTICULOS ])->REFERENCIA, (aDbf[ DBF_ARTICULOS ])->ingprod ; HEADERS "NOMBRE", "REFERENCIA", "USO" FONT oFont2; ID 500 OF o[ O_DLG_INVE ] ALIAS aDbf[ DBF_ARTICULOS ] o[ O_LBX_INVE ]:aColSizes := { 80, 80, 40 } o[ O_LBX_INVE ]:blDblClick := {|| ( nRecno := (aDbf[ DBF_ARTICULOS ])->( Recno() ), o[ O_DLG_INVE ]:end()) } o[ O_LBX_INVE ]:blClicked := {|| ( nRecno := (aDbf[ DBF_ARTICULOS ])->( Recno() ), o[ O_DLG_INVE ]:end()) } REDEFINE say oSay VAR Csearch ID 600 OF o[ O_DLG_INVE ] readonly o[ O_LBX_INVE ]:bKeyChar = { | nKey, nFlags | Search_inv( nKey, @cSearch ), o[ O_LBX_INVE ]:Refresh() ,oSay:Refresh(), o[ O_LBX_INVE ]:setfocus() } oSay:bKeyChar = { | nKey, nFlags | Search_inv( nKey, @cSearch ), o[ O_LBX_INVE ]:Refresh() ,oSay:Refresh(), o[ O_LBX_INVE ]:setfocus() } REDEFINE BUTTON ID 700 OF o[ O_DLG_INVE ] ACTION o[ O_DLG_INVE ]:End() REDEFINE BUTTON ID 800 OF o[ O_DLG_INVE ] ACTION o[ O_DLG_INVE ]:inv_show()*!* ACTIVATE DIALOG o[ O_DLG_INVE ] CENTERED*!* set filt to*!* select &cAlias2RETU nRecno*---------------------------STATIC FUNCTION Inv_Show()*--------------------------- local oBmp DEFINE WINDOW oWnd TITLE "Presenta Imagen."*!* // @ 10, 20 BTNBMP RESOURCE "users" SIZE 60, 60 ACTION MsgInfo( "click!" ) @ 5, 5 BITMAP oBmp FILENAME "\fwppc\samples\1KX-82590-01.bmp" NOBORDER oBmp:lTransparent = .t. ACTIVATE WINDOW oWnd ; ON CLICK MsgInfo( "click!" )return nil
|
Bmp en ListBox
|
Hola Oscar:Creo que tu problema está en esta línea:REDEFINE BUTTON ID 800 OF o[ O_DLG_INVE ] ACTION o[ O_DLG_INVE ]:inv_show() Debería quedar así:REDEFINE BUTTON ID 800 OF o[ O_DLG_INVE ] ACTION inv_show()Saludos.Manuel Mercado
|
Bmp en TXBrowse con Array
|
Estimados,
Muestro un Array con la TXBrowse y necesito poner un Bmp cuando un registro logico tiene .T. o .F. si utilizo la TXBrowse con datos de la DBF directamente funciona bien, pero no logro hacer lo mismo cuando la utilizo con información desde un Array..
alguien me puede echar una mano. Aqui les dijo un compacto de ambos usos:
Directo de la DBF, Funciona correctamente.
::oBrw := TXBrowse():New( ::oWnd )
::oBrw:cAlias := DBF_GIRBAN:cAlias
::oCol := Array( 01 )
::oCol[01] := ::oBrw:AddCol()
::oCol[01]:cHeader := "Conciliado"
::oCol[01]:AddResource( "CHECK_SI" )
::oCol[01]:AddResource( "CHECK_NO" )
::oCol[01]:bBmpData := { || IF( DBF_GIRBAN:ESTGIR == .T. , 1, 2) }
::oCol[01]:BStrData := { || "" }
::oCol[01]:nWidth := 60
::oBrw:CreateFromCode()
....
....
Desde un Array, NO muestra el BMP
WITH OBJECT ::oBrw
:SetArray( AR_DATOS, .T. )
WITH OBJECT :aCols[ ESTADO ]
:cHeader := "Conciliado"
:AddResource( "CHECK_SI" )
:AddResource( "CHECK_NO" )
:bBmpData := { || IF(Len(AR_DATOS) >0, (IF ( AR_DATOS[::oBrw:nArrayAt][ESTGIR] == .T. , 1, 2) ), NIL) }
:bStrData := { || ""}
:nWidth := 40
END
END
...
...
Muchas gracias
salu2
Mauro
|
Bmp+get+mouse (SOLUCIONADO)
|
Saludos amigos.
Tengo un dialog normal con un Bitmap incrustrado. Sobre este bmp, creado con GIMP, he puesto algunos gets (char y numerics). Ahora bien, el problema es el siguiente:
1- Teclas UP, DOWN trabajan bien.
2- TAB trabaja bien
3- CLICK del mouse para cambiar de get, NO FUNCIONA. No hace nada.
Trabajo con recursos PELLESC, y he revisado las propiedades, pero no encuentro solucion. Mi Ver FWH es: 1204
Agradezco de antemano, sus sugerencias e ideas de como solucionar esto.
Saludos.
|
Bmp+get+mouse (SOLUCIONADO)
|
Solucionado...!
<!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?f=6&t=20102&hilit=get+sobre+bitmap&start=15#p107949">viewtopic.php?f=6&t=20102&hilit=get+sobre+bitmap&start=15#p107949</a><!-- l -->
Saludos.
|
BmpToHex
|
Alguien tiene alguna utilidad que realice la tarea contraria?, es decir, coja la cadena hexadecimal y la convierta en fichero .bmp?
Teniendo en cuenta que tengo la cadena hexadecimal pero no tengo el fichero .bmp
|
BmpToHex
|
HexToStr()
|
BmpToHex
|
[quote="SGS":2m0p9v5y]HexToStr()[/quote:2m0p9v5y]
Pues evidente, gracias
Hay dias que nos proponemos reinventar la rueda. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[code=fw:2m0p9v5y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// BMP to hex definition</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cBmp := MemoRead<span style="color: #000000;">(</span> <span style="color: #ff0000;">".<span style="color: #000000;">\o</span>tro.bmp"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cHex := <span style="color: #ff0000;">""</span>, n, m := <span style="color: #000000;">1</span>, nChar, cChar<br /> <span style="color: #00C800;">local</span> cBmp1 := <span style="color: #ff0000;">""</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> cBmp <span style="color: #000000;">)</span><br /> nChar = <span style="color: #0000ff;">Asc</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cBmp, n, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cChar = hb_NumToHex<span style="color: #000000;">(</span> nChar <span style="color: #000000;">)</span><br /> cHex += <span style="color: #ff0000;">"0x"</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> cChar <span style="color: #000000;">)</span> == <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"0"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span> + cChar + <span style="color: #ff0000;">", "</span><br /> <span style="color: #00C800;">if</span> m == <span style="color: #000000;">16</span><br /> cHex += CRLF<br /> m = <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">else</span><br /> m++ <br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">next</span><br /> <br /> cBmp1 := StrTran<span style="color: #000000;">(</span> cHex, <span style="color: #ff0000;">"0x"</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span><br /> cBmp1 := StrTran<span style="color: #000000;">(</span> cBmp1, <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /> cBmp1 := StrTran<span style="color: #000000;">(</span> cBmp1, <span style="color: #ff0000;">","</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span> <br /> cBmp1 := StrTran<span style="color: #000000;">(</span> cBmp1, CRLF, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> hb_memowrit<span style="color: #000000;">(</span> <span style="color: #ff0000;">"otro1.bmp"</span>, HextoStr<span style="color: #000000;">(</span>cBmp1<span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <br /> MemoEdit<span style="color: #000000;">(</span> cHex <span style="color: #000000;">)</span><br /><br /> MemoEdit<span style="color: #000000;">(</span> cBmp1 <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2m0p9v5y]
|
BmpToHex
|
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Bold on Menuitem
|
is it possible show a word on menuitem on Bold or one menuitem ?
|
Bold on Menuitem
|
Silvio, It does not serve him well?
[quote:1j4crqv5]
#xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>] ;
[ MESSAGE <cMsg> ] ;
[ <checked: CHECK, CHECKED, MARK> ] ;
[ <enable: ENABLED, DISABLED> ] ;
[ <file: FILE, FILENAME, DISK> <cBmpFile> ] ;
[ <resource: RESOURCE, RESNAME, NAME> <cResName> ] ;
[ ACTION <uAction,...> ] ;
[ BLOCK <bAction> ] ;
[ <of: OF, MENU, SYSMENU> <oMenu> ] ;
[ ACCELERATOR <nState>, <nVirtKey> ] ;
[ <help: HELP> ] ;
[ <HelpId: HELP ID, HELPID> <nHelpId> ] ;
[ WHEN <uWhen> ] ;
[ <lDegrade: DEGRADE> ] ;
[ <break: BREAK> ] ;
[ FONT <oFont> ] ;
[ COLORMENU [ <nClrMenu>, ] <nClrMenutxt> ] ;
[ <left: COLORBMP, COLORLEFT, LEFTCOLOR> <nClrToBa> [, <nClrBkBa>] ] ;
[ <right: COLORPNEL, COLORRIGHT, RIGHTCOLOR> <nClrToBr> [, <nClrBkBr> ] ] ;
[ COLORSELECT <nClrHiLi>, <nClrHiLf>[, <nClrHitx>] ] ;
[ COLORSEPARATOR <nClrHiBr> ] ;
[ <lVert: LINESVERT> ] ;
[ <lColors: COLORS> ] ;
[ CHARICON <cCharBmp> ] ;
[ HSYSBITMAP <hBmp> ] ;
[ INDEX <nIndex> ] ;
[ <lRight: RIGHT> ] ;
[ <lSeparator: SEPARATOR> ] ;
[b:1j4crqv5][ <lBold: BOLD> ];[/b:1j4crqv5]
[ <lItalic: ITALIC> ]
[/quote:1j4crqv5]
|
Bold on Menuitem
|
yes of corse BUT
I wish create this
"Open [b:18ob2x6m]Bollette[/b:18ob2x6m]"
|
Bold text on a button bar
|
Hello all:
In my app I have a button bar initialized:
DEFINE BUTTONBAR oBar SIZE 73.5 ,78 2007 OF oWnd1
Works fine.
I have text on the bar...so far no problem.
This code is coloring the text : oBar:nClrText = nRGB( 0, 0, 128 )...This Works fine
My question is how can i get the text on the bar in BOLD.
Any help appreciated
|
Bold text on a button bar
|
Harvey,
Try:
define font oFont "Arial" size 0, -8 bold
oBar:setFont( oFont )
James
|
Bold text on a button bar
|
James:
Doesnt work. Here is all the code.
[code=fw:1ngbdbi0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">//Define the button</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">73.5</span> ,<span style="color: #000000;">46</span> <span style="color: #000000;">2007</span> <span style="color: #0000ff;">OF</span> oWnd1 <br /><br /><span style="color: #B900B9;">// color of text</span><br />oBar:<span style="color: #000000;">nClrText</span> = nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span> <br /><br /><span style="color: #B900B9;">// Define font</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">-8</span> BOLD <br /><br /><span style="color: #B900B9;">// set font as James suggested</span><br />oBar:<span style="color: #000000;">setFont</span><span style="color: #000000;">(</span>ofont1<span style="color: #000000;">)</span> <br /><br /><span style="color: #B900B9;">// color of the obar</span><br /> oBar:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">{</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ! lInvert,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">178</span>, <span style="color: #000000;">187</span>, <span style="color: #000000;">202</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">137</span>, <span style="color: #000000;">155</span>, <span style="color: #000000;">179</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">129</span>, <span style="color: #000000;">149</span>, <span style="color: #000000;">174</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">114</span>, <span style="color: #000000;">132</span>, <span style="color: #000000;">156</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">139</span>, <span style="color: #000000;">166</span>, <span style="color: #000000;">193</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">69</span>, <span style="color: #000000;">119</span>, <span style="color: #000000;">170</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">52</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">152</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">107</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">// text to be displayed on oBar</span><br /><span style="color: #B900B9;">// displayed fine but not bold.</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Financial"</span>+CRLF+<span style="color: #ff0000;">"Analysis "</span>+CRLF+<span style="color: #ff0000;">"No. 1"</span> <span style="color: #0000ff;">of</span> oBar<br /> </div>[/code:1ngbdbi0]
|
Bold text on a button bar
|
Harvey,
It looks like you want bold text on the button not the bar. I expect you need to define the button font not the bar font.
James
|
Bold text on a button bar
|
Thanks for getting back to me. I looked in FWH help and it says... define button prompt "help" of oBar FONT oFont1... Font oFont1 should work. It doesn't.
Any other ideas?
|
Bold text on a button bar
|
Harvey,
there are some post, I talked about this problem.
With more tests on VTitle, I think it is a good Replacement for Buttonbars,
if You want to do something special and create Your own Buttonbar.
Button-Actions are added in FWH-0.08 and Tooltips will still be included by Daniel.
Another Test with [color=#FF0000:n5ogdz8k]BTNBMP[/color:n5ogdz8k] :
[img:n5ogdz8k]http://www.pflegeplus.com/pictures/vttitle41.jpg[/img:n5ogdz8k]
[code=fw:n5ogdz8k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<br />nSCR0 := GetSysMetrics<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Screen-Width</span><br />nSCR17 := GetSysMetrics<span style="color: #000000;">(</span><span style="color: #000000;">17</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Screen-Hight - Title-Height</span><br /> <br /><span style="color: #B900B9;">//Title 4 Vertical ( Right )</span><br /><span style="color: #B900B9;">// Top, Left - Width / Height </span><br />@ <span style="color: #000000;">0</span>, nSCR0 - <span style="color: #000000;">80</span> <span style="color: #0000ff;">TITLE</span> oTitle4 <span style="color: #0000ff;">size</span> <span style="color: #000000;">80</span>, nSCR17 <span style="color: #0000ff;">of</span> oWnd SHADOW BOTTOMLEFT SHADOWSIZE <span style="color: #000000;">1</span> TOPRIGHT <br /> <br />@ <span style="color: #000000;">0</span>, nSCR0 - <span style="color: #000000;">95</span> <span style="color: #0000ff;">TITLE</span> oTitle3 <span style="color: #0000ff;">size</span> <span style="color: #000000;">15</span>, nSCR17 <span style="color: #0000ff;">of</span> oWnd SHADOW BOTTOMLEFT SHADOWSIZE <span style="color: #000000;">1</span> TOPRIGHT <br /><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2X32<span style="color: #000000;">\k</span>eys.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX TRANSPARENT ;<br /><span style="color: #0000ff;">ACTION</span> Msgalert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Button 1"</span><span style="color: #000000;">)</span><br />@ <span style="color: #000000;">70</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 1"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br />@ <span style="color: #000000;">100</span>, <span style="color: #000000;">20</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\e</span>xplorer.BMP"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX ANIMA<br />@ <span style="color: #000000;">160</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 2"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br />@ <span style="color: #000000;">190</span>, <span style="color: #000000;">15</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\m</span>ovie.BMP"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">60</span> ANIMA LEVEL <span style="color: #000000;">100</span><br />@ <span style="color: #000000;">250</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 3"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br />@ <span style="color: #000000;">280</span>, <span style="color: #000000;">15</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\m</span>ovie.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">60</span> ANIMA LEVEL <span style="color: #000000;">255</span><br />@ <span style="color: #000000;">340</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 4"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br />@ <span style="color: #000000;">370</span>, <span style="color: #000000;">20</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphaBmp<span style="color: #000000;">\e</span>xplorer.BMP"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX ANIMA<br />@ <span style="color: #000000;">430</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 5"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br />@ <span style="color: #000000;">460</span>, <span style="color: #000000;">20</span> TITLEIMG <span style="color: #0000ff;">OF</span> oTitle4 BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2X32<span style="color: #000000;">\k</span>eys.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX TRANSPARENT <br />@ <span style="color: #000000;">520</span>, <span style="color: #000000;">20</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Button 6"</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> CLR_BLACK <br /> <br /><span style="color: #B900B9;">// @ 550, 20 TITLEIMG OF oTitle4 BITMAP ".\bitmaps\AlphaBmp\explorer.BMP" SIZE 30, 30 REFLEX ANIMA</span><br /><span style="color: #B900B9;">// @ 610, 20 TITLETEXT OF oTitle4 TEXT "Button 7" FONT oFont2 COLOR CLR_BLACK </span><br /> <br /><span style="color: #B900B9;">// replacement of => Button 7</span><br /><span style="color: #B900B9;">// -------------------------------</span><br />@ <span style="color: #000000;">550</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">OF</span> oTitle4 <span style="color: #000000;">2007</span> ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>, <span style="color: #000000;">75</span> ;<br />FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2X32<span style="color: #000000;">\k</span>eys.bmp"</span> ;<br /><span style="color: #0000ff;">ACTION</span> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Button-Click"</span>, <span style="color: #ff0000;">"Button 1"</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"But.1"</span> ;<br /><span style="color: #0000ff;">FONT</span> oButtFont ;<br />TOP <br />oBtn1:<span style="color: #000000;">lTransparent</span> := .t. <br />oBtn1:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Button1"</span><br />oBtn1:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #000000;">128</span> <span style="color: #000000;">)</span><br /><br />oTitle4:<span style="color: #000000;">lRound</span> := .F.<br />oTitle4:<span style="color: #000000;">aGrdBack</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.9</span>, <span style="color: #000000;">15851661</span>, <span style="color: #000000;">16708826</span> <span style="color: #000000;">}</span>,<span style="color: #000000;">{</span> <span style="color: #000000;">0.9</span>, <span style="color: #000000;">16708826</span>, <span style="color: #000000;">15851661</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br />oTitle3:<span style="color: #000000;">lRound</span> := .F.<br />oTitle3:<span style="color: #000000;">aGrdBack</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.1</span>, <span style="color: #000000;">15851661</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">}</span>,<span style="color: #000000;">{</span> <span style="color: #000000;">0.1</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">15851661</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br />...<br />...<br /> </div>[/code:n5ogdz8k]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.