topic
stringlengths
1
63
text
stringlengths
1
577k
2a Reunión de programadores de Harbour Magazine
Que más falta??? Si aún no te has apuntado hazlo!!!! Seguro que aprendes un montón y conocerás a mucha gente...
2a Reunión de programadores de Harbour Magazine
Ya tenemos agenda para la 2ª Reunión de programadores de Harbour Magazine, es la siguiente: Sábado 10:00 Apertura de la reunión José Luis Sánchez 10:15 Pruebas unitarias con Harbour Manuel Calero 11:15 TDolphin Biel Maimó 12:15 Harbour en Android Antonio Linares 13:30 Comida 16:30 Migración DBF - SQL Bingen Ugaldebere 17:30 Docker Antonio Linares 18:30 Harbour en Android II Antonio Linares 19:30 OpenXava José Tur 20:30 Cena Domingo 10:00 Depuración con Hwgdebug José Luis Sánchez 11:00 Cierre de reunión José Luis Sánchez 11:30 Taller de Harbour 13:30 Comida de despedida Si alguien quiere inscribirse todavía está a tiempo. Saludos,
2nd FWH + [x]Harbour 2018 international conference in Brazil
I have talked with Antonio today and I am happy to announce the next international conference 2018 will be in Brazil! <!-- m --><a class="postlink" href="https://www.facebook.com/fivewin/">https://www.facebook.com/fivewin/</a><!-- m --> Everybody will be welcome! Note, There's no date and place yet defined. Thanks Antonio for it!
2nd FWH + [x]Harbour 2018 international conference in Brazil
Very Good !
2nd FWH + [x]Harbour 2018 international conference in Brazil
Very Good !
2nd FWH + [x]Harbour 2019 international conference in Sillia
Hi, Could we have more info about this ? An idea of the date ? Thanks , Philippe
2nd FWH + [x]Harbour 2019 international conference in Sillia
Hello Philippe, the info will be posted this weekend. Best regards Otto
2nd FWH + [x]Harbour 2019 international conference in Sillia
Otto, If you do not organize a trip to the loacker and in Salzburg this I will strike and when I arrive I put the virus on all the computers even those of Iris !!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
2nd Harbour Magazine programmers conference
[url:3143lhm5]http&#58;//medium&#46;com/harbour-magazine[/url:3143lhm5] Regards, José Luis Sánchez
2nd Harbour Magazine programmers conference
Hello, We already have a first list of talks that we are going to make at the 2nd Meeting of Harbour programmers next March in Calpe (Alicante). The scheduled talks are the following: * Unit tests with Harbour by Manuel Calero. * Rapid migration to SQL by Bingen Ugaldebere. * Use of TDolphin by Biel Maimó * OpenXava by Genaro Tur * Debugging Harbour/FWH applications with hwgdebug by José Luis Sánchez We will also hold an open Habour workshop where attendees can raise questions and resolve them among all. If any other attendee wants to make a talk we are happy to hear your proposals. I remind you that the meeting will be from 29 to 31 March in Calpe (Alicante), that there is no registration fee and that there are affordable accommodation in the area so that the cost is as low as possible. I encourage everyone to come to the meeting, and you can register at the following URL [url:1sj6rc63]https&#58;//drive&#46;google&#46;com/open?id=1bXAszn4P1nYTVY5zRU_pjPpsxnWLD16konXkDb1bJo8[/url:1sj6rc63]. Both me and the other organizers and speakers of the talks are preparing the meeting with great enthusiasm, and we would like to have the presence of as many programmers as possible. Kind regards, José Luis Sánchez
2nd Harbour Magazine programmers conference
Hi, Is it English speeking ? Thanks
2nd Harbour Magazine programmers conference
Hello Jack, the talks will be in Spanish, but I'm sure that you can follow them with the presentations we will show, and with the help of other attendants. Regards, Jose Luis
2nd Harbour Magazine programmers conference
Hello, everybody, we have good news for the 2nd Harbour Magazine Programmers Meeting. Antonio Linares and Cristobal Navarro have confirmed their attendance, and Antonio is going to make a practical talk with FiveTouch in Android, showing how to use QT Creator, how to build Harbour, how to test it in the BlueStacks emulator. For those of you who are still hesitant to attend, I think it is a great opportunity to meet Antonio Linares and Cristobal Navarro and enjoy their knowledge and company during the meeting. Greetings, José Luis Sánchez
2nd Harbour Magazine programmers conference
It sounds wonderful but it is not possible for me to attend. Would you consider making a video of the presentations ? I would be especially interested in the one on SQL.
2nd anniversary
From skype.com Cristobal Quiero anunciar que el próximo día 14 de Mayo, celebrando el 2º aniversario de la aparición de Mod-Harbour ( sería el día 15 ), habrá una conferencia especial en la que estaremos todos, Charly, Antonio, etc. Allí estaremos ------------- I want to announce that next May 14th, celebrating the 2nd anniversary of the appearance of Mod-Harbor (it would be the 15th), there will be a special conference in which we will all be, Charly, Antonio, etc. We'll be there.
2nd anniversary
From skype.com Cristobal Quiero anunciar que el próximo día 14 de Mayo, celebrando el 2º aniversario de la aparición de Mod-Harbour ( sería el día 15 ), habrá una conferencia especial en la que estaremos todos, Charly, Antonio, etc. Allí estaremos ------------- I want to announce that next May 14th, celebrating the 2nd anniversary of the appearance of Mod-Harbor (it would be the 15th), there will be a special conference in which we will all be, Charly, Antonio, etc. We'll be there.
2ª conferencia internacional de usuarios de Harbour y FWH
Hola, Hoy yo tieno hablado con Antonio y estoy feliz que proxima conferencia internacional sera no Brasil! <!-- m --><a class="postlink" href="https://www.facebook.com/fivewin/">https://www.facebook.com/fivewin/</a><!-- m --> Everybody will be welcome! No hay fecha y lugar definido pero breve lo teremos. Muchas gracias Maestro Antonio! Saludos desde brasil!
3 LIBS MISSING in xharbour_bcc582_20140728.zip
Hi, [quote:24vza9gm] Re: Converting fron xharbour to harbour New postby Antonio Linares » Fri Aug 22, 2014 1:38 am Silvio, Are you using the most recent Harbour from <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/harbour-xharbour-builds">https://bitbucket.org/fivetech/harbour-xharbour-builds</a><!-- m --> ? Please download the most recent Harbour version from there regards, saludos [/quote:24vza9gm] In the file [b:24vza9gm]xharbour_bcc582_20140728.zip[/b:24vza9gm] 3 libs are missing ACE32.LIB HBZIP.LIB RDDADS.LIB Copy them from older version or ? Best regards,
3 LIBS MISSING in xharbour_bcc582_20140728.zip
Avista, I think it is no problem, to add these libs from anothe Xharbour dir. I had also some problems, after a virus was found and I had to do a complete system-refresh. Now it works without any problems. [color=#0000FF:30211sfb][b:30211sfb]ACE32.LIB ( 67 KIB ) HBZIP.LIB ( 720 KIB ) RDDADS.LIB ( 66 KIB )[/b:30211sfb][/color:30211sfb] best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
3 LIBS MISSING in xharbour_bcc582_20140728.zip
Avista, Yes, you can copy them from a previous build,
3 LIBS MISSING in xharbour_bcc582_20140728.zip
Thanks, Best regards,
3 button
if I have 3 button bmp and I wish press one and this one must be pressed how I can make ? and if I press another the buttons are not pressed type like radiobutton how I can make it?
3 button
Silvio, maybe the solution You are looking for ? These buttons are working like radios. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30161&p=172847&hilit=rbuttons3#p172847">viewtopic.php?f=3&t=30161&p=172847&hilit=rbuttons3#p172847</a><!-- l --> [img:2711nxuv]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/RBStyles6&#46;jpg[/img:2711nxuv] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
3 levels categories
I'm thinking to create 3 levels of categories for a store Level 1 : 2 Characters (es. 11) Level 2 : 2 Characters (es. 1122) Level 3 : 4 Characters (es. 11223333) sample : cCodice:= 01020001 cDesc := Italian keyboard black I have some problems to build valid at get when the user insert a new record because the valid function must to control if there is the higher-level of the code he inserted Isample : if the user insert the code := 01020001 he must insert before 01 keyboard, 0102 Italian Keyboard and then he can insert the new category Any help please to build the valid function
3 levels categories
You can split the get into 3 gets so you can validate them separately.
3 levels categories
sorry I have allready the dbf, and I must use this (from customer) look this : [img:12mcvvee]http&#58;//img534&#46;imageshack&#46;us/img534/11/catd&#46;png[/img:12mcvvee]
3 levels categories
Silvio, Here at the levels we call families of items. So you should have your stored configuration in a field the levels of your families of items. Example: If your levels are 2,2,4 you can store "020408" To find that there are higher levels of hierarchy you can use: [code=fw:31drw0pn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> lExistLevels<span style="color: #000000;">&#40;</span>cItem<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> lExist:= .f.<br /><span style="color: #00C800;">Local</span> cLevels:= <span style="color: #ff0000;">"020408"</span> <span style="color: #B900B9;">// From config field</span><br /><span style="color: #00C800;">Local</span> nMaxItem:= Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>cLevels, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nI, nAt:= <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span>StrZero<span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span>cItem<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, cLevels<span style="color: #000000;">&#41;</span>- <span style="color: #000000;">2</span>    <br /><span style="color: #00C800;">Local</span> nLevel, cSubItem<br /><span style="color: #00C800;">FOR</span> nI:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nAt STEP <span style="color: #000000;">2</span><br />   nLevel:= <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cLevels, nI, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />   cSubItem:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cItem, nLevel<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">SELECT</span> <span style="color: #0000ff;">Items</span><br />   SEEK PadR<span style="color: #000000;">&#40;</span>cSubItem, nMaxItem<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> Eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       lExist:= .f.<br />       EXIT<br />   <span style="color: #00C800;">ENDIF</span><br />   lExist:= .t.<br />       <br /><span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">RETURN</span> lExist<br />   <br />Regards<br />   <br /> </div>[/code:31drw0pn]
3 levels categories
perhaps it is that I'm searching... I must make some tests
3 levels categories
Antonio Mart., the function can run ok only when I digit a string of 8 Cr the function run ok if I digit a string of 6 cr it is bad code I can have only 3 levels for sample aa aabb aabbcccc the function must return a string aabbcc as right ...
3 levels categories
Silvio. You can do this: Static nLenCode := 8 Redefine get oget var cvar id 4000 of odlg Valid cCodeOk(cvar) Function cCodeOK(cVar) if !MyCatal->(dbseek(cVar)) .or. len(alltrim(cVar)) != nLenCode Stop("Bad code inserted") return .f. endif Return .t. This is only for transactions validations. I hope it helps you. Regards.
3 levels categories
The DBF does not matter. get var1 valid ... get var2 valid ... get var3 valid ... read field_to_save := var1 +var2 + var3
3 problemas
1) Poder justificar los texto de un objeto SAY (derecha, centro, izquierda) Implementado: * New: Class TSay Method SetJustify( nType ) // LEFT = 0, RIGHT = 1, CENTER = 2, FILL = 3 * Example: oSay:SetJustify( 1 ) 2) Poder cambiar el tipo de letra, color de la letra y fondo de un objeto SAY 3) Si tengo 3 ventanas abierta al colocar un msgalert() que vuelva a la venta que lo llamano y no a la primera. Necesito resolver estos 3 problemas, se agradece cualquier ayuda. Jorge Gayoso
3 problemas
Puntos 2 y 3 solucionados y enviadas las nuevas librerias a Jorge <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
3 problems with touch.prg from the fwh/samples
Hello Antonio, I have 3 problems with touch.prg sample. Thanks in advance Otto [img:bkusxr3z]http&#58;//www&#46;atzwanger-software&#46;com/fw/touch3&#46;jpg[/img:bkusxr3z]
3 problems with touch.prg from the fwh/samples
Hello Antonio, hover effert I found a workaround for hover effert with inserting DrawEllipse method from an other class to TRBtn. -------------------- I can't find out how to make operable scrollpanel with finger. Hope you can help me. Thanks in advance Otto //----------------------------------------------------------------------------// [code=fw:3ocgbqdc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> DrawEllipse<span style="color: #000000;">&#40;</span> hDC, nRGBColor, n <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hOldBrush := SelectObject<span style="color: #000000;">&#40;</span> hDC, GetStockObject<span style="color: #000000;">&#40;</span> NULL_BRUSH <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hPen := CreatePen<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">1</span>, nRGBColor <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> n := <span style="color: #000000;">-1</span><br /><br />&nbsp; Ellipse<span style="color: #000000;">&#40;</span> hDC, n, n, ::<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">1</span> , ::<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">1</span> , hPen <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, hOldBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hPen <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:3ocgbqdc]
3 problems with touch.prg from the fwh/samples
I found a workaround. In TScrollPanel I inserted: [code=fw:lg3esiwy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> finger<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TScrollPanel<br />&nbsp;&nbsp; &nbsp;::<span style="color: #000000;">GoToPos</span><span style="color: #000000;">&#40;</span> x <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:lg3esiwy] and when I define oPanel [code=fw:lg3esiwy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oPanel:<span style="color: #000000;">bLClicked</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || oPanel:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,lSlider := .t. <span style="color: #000000;">&#125;</span><br />oPanel:<span style="color: #000000;">bLButtonUp</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |r,c,f,lDrag | lSlider := .f. <span style="color: #000000;">&#125;</span><br />oPanel:<span style="color: #000000;">bMMoved</span>&nbsp; := <span style="color: #000000;">&#123;</span> |r,c,f,lDrag| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lSlider = .t. , oPanel:<span style="color: #000000;">finger</span><span style="color: #000000;">&#40;</span>r<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:lg3esiwy] Best regards, Otto
3 problems with touch.prg from the fwh/samples
Hello Antonio, The only problem left is focus on SWITCH. Best regards, Otto
3 problems with touch.prg from the fwh/samples
Otto, The back arrow that we show there is a TImage object. As TImage inherits from TBitmap, then we could do: oImgBack:bMove = { || If( oImgBack;cBmpFile != "..\bitmaps\metro\back-black-48-hover.png", ( oImgBack:LoadImage( nil, "..\bitmaps\metro\back-black-48-hover.png" ), oImgBack:Refresh() ), nil ) } oImgBack:bMLeave = { || oImgBack:LoadImage( nil, "..\bitmaps\metro\back-black-48.png" ), oImgBack:Refresh() }
3 problems with touch.prg from the fwh/samples
Otto, I just tested samples/touch.prg and the switches seem to get the focus though they don't change their appareance. Please give the focus to the GET above the switch and press tab. If you press tabs two times more, then the GET below gets the focus. So the focus sequence is working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
3 problems with touch.prg from the fwh/samples
Dear Antonio can you please help me with oImgBack:bMLeave = { || oImgBack:LoadImage( nil, "..\bitmaps\metro\back-black-48.png" ), oImgBack:Refresh(), msginfo(1) }. I tried your suggestions but oImgBack:bMLeave here is not working. Thank you in Advance Otto @ 20, 20 IMAGE oImgBack FILENAME "..\bitmaps\metro\back-black-48.png" OF oDlg ; PIXEL NOBORDER oImgBack:bMMoved = { || If( oImgBack:cBmpFile != "..\bitmaps\metro\Metro-Back-48hover.bmp",; ( oImgBack:LoadImage( nil, "..\bitmaps\metro\Metro-Back-48hover.bmp" ), oImgBack:Refresh() ), nil ) } oImgBack:bMLeave = { || oImgBack:LoadImage( nil, "..\bitmaps\metro\back-black-48.png" ), oImgBack:Refresh(), msginfo(1) } oImgBack:bLButtonUp := { || oDlg:End() }
3 problems with touch.prg from the fwh/samples
Otto, Please test this and let me know if it beeps: oImgBack:bMLeave = { || MsgBeep() }
3 problems with touch.prg from the fwh/samples
Dear Antonio, I changed bMove to bMMoved as bMove errors out. I can’t test with msgbeep as I work remote. Therefor I use: oImgBack:bMLeave = { || msginfo(1) } I do not see the msg. I use the original touch.prg of FiveTech. Thank you and best regards Otto
3 problems with touch.prg from the fwh/samples
Dear Antonio, can you please help me. Thank you in advance Otto
3 problems with touch.prg from the fwh/samples
Otto, Please try this: oImgBack:bMLeave = { || x++ } // to generate a runtime error lets see if the runtime error is generated
3 problems with touch.prg from the fwh/samples
Dear Antonio, no runtime error. I use the original Fivewin touch.prg from the samples. Thank you an best regards Otto
3 problems with touch.prg from the fwh/samples
Dear Otto, This is working fine here: oImgBack:bMLeave = { || MsgInfo( 1 ) } so I guess it is related to remotely working
3 problems with touch.prg from the fwh/samples
Dear Antonio, thank you. Can you please send me your prg and exe file. I will test remote and on my local system. Maybe I do not have all the latest classes Best regards Otto
3 problems with touch.prg from the fwh/samples
Dear Otto, Here you have it: [url:28n7t0by]https&#58;//github&#46;com/FiveTechSoft/FWH_samples/raw/master/touch&#46;zip[/url:28n7t0by]
3 problems with touch.prg from the fwh/samples
Dear Antonio, is this the right place where I should test. If yes then it is not working. I tested remote and locally. Do you thinkthere will be a solution? Thank you in advance Otto [img:1n9d8grv]https&#58;//mybergland&#46;com/FWForum/antonio&#46;jpg[/img:1n9d8grv] [img:1n9d8grv]https&#58;//mybergland&#46;com/FWForum/antonio1&#46;jpg[/img:1n9d8grv]
3 problems with touch.prg from the fwh/samples
Dear Antonio I use TRBtn as I never got TImage working. In my copy of TRBtn I inserted DrawEllipse method and changed Paint method. This is working for me. But now I want to switch to the newest FIVEWIN version and original FW classes evolved much. It is difficult for me to keep up my changes. Best regards Otto method paint ... if ::lMOver .and. nTypeButton != 3 do case case nTypeButton == TYPE_NORMAL if ::lSelected GradientFill( ::hDC, 1, 1, ::nHeight, ::nWidth - If(::lRound,2,0), eval( ::bClrGradSelectPress, ::lPressed ) ) else //procl if ::lRound = .t. GradientFill( ::hDC, 1, 1, ::nHeight, ::nWidth - If(::lRound,2,0), eval( ::bClrGradNormal, ::lPressed ) ) else ::DrawEllipse( ::hDC, CLR_BLUE, 1 ) endif endif case nTypeButton == TYPE_POPUP GradientFill( ::hDC, 1,1, ::nHeight, ::nWidth - 2, ::aClrGradBack ) ... //----------------------------------------------------------------------------// METHOD DrawEllipse( hDC, nRGBColor, n ) CLASS TRBtn local hOldBrush := SelectObject( hDC, GetStockObject( NULL_BRUSH ) ) local hPen := CreatePen( hDC, 1, nRGBColor ) DEFAULT n := -1 Ellipse( hDC, n, n, ::nWidth - 1 , ::nHeight - 1 , hPen ) SelectObject( ::hDC, hOldBrush ) DeleteObject( hPen ) return nil //----------------------------------------------------------------------------//
3 problems with touch.prg from the fwh/samples
Dear Otto, Please go to "Company", then click on "+" and then test it thanks [img:1zihyxf9]https&#58;//fivetechsoft&#46;github&#46;io/screenshots/touch_hover&#46;JPG[/img:1zihyxf9]
3 problems with touch.prg from the fwh/samples
Dear Antonio, you sample works but you have no hover bitmap. Also you have to move the mouse more than 2 cm away till MsgInfo is executed. If we add oImgBack:bMMoved = { || If( oImgBack:cBmpFile != "..\bitmaps\metro\Metro-Back-48hover.bmp",; ( oImgBack:LoadImage( nil, "..\bitmaps\metro\Metro-Back-48hover.bmp" ), oImgBack:Refresh() ), nil ) } then oImgBack:bMLeave = { || MsgInfo( 1 ) in no more working. Thank you in advance Otto
3 state btnbmp
I need to do a 3 state btnbmp but I can't do it in the beginning the state is free (3 no pressed) state n. 1 taken state n. 2 fixes state 3 free when a user presses the first time the status is 1, if they press the second time the status is 2, if they click for the third time the status returns to 3 how can I do ? I try to make a test but not run ok , someone can help me pls ? [code=fw:1u75i9iz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#define</span> DARKORANGE2 &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">247</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> LIGHTBLUE &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> &nbsp; nTotCol := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">local</span> &nbsp; nTotRow := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">local</span> &nbsp; oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> &nbsp; oSay<br /><span style="color: #00C800;">local</span> &nbsp; xRow:=<span style="color: #000000;">25</span><br /><span style="color: #00C800;">local</span> &nbsp; xCol:=<span style="color: #000000;">40</span><br /><span style="color: #00C800;">local</span> &nbsp; xWidth:= &nbsp;<span style="color: #000000;">40</span><br /><span style="color: #00C800;">local</span> &nbsp; xHeight:= <span style="color: #000000;">30</span><br /><span style="color: #00C800;">local</span> &nbsp; xSpace := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">local</span> k,t,nMaxVal:=<span style="color: #000000;">4</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">100</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE<br />&nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"0 selezionati"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br />&nbsp;<span style="color: #00C800;">For</span> t=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotRow<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> k=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ &nbsp;xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> xWidth,xHeight <span style="color: #0000ff;">PIXEL</span> FLAT <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>:=<span style="color: #000000;">&#123;</span>.f.,.f.,.f.<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := BtnAction<span style="color: #000000;">&#40;</span> k, t, nTotCol, nTotRow, oBtnNum, nMaxVal,oSay <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xCol += xWidth + xSpace<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xRow += xHeight + xSpace<br />&nbsp; &nbsp; &nbsp; xCol := <span style="color: #000000;">40</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG<br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;<span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> BtnAction<span style="color: #000000;">&#40;</span> x, y, nTotCol, nTotRow, aBtn, aSay, nMaxVal,oSay<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> | oSelf | CheckStatus<span style="color: #000000;">&#40;</span> oSelf, x, y, nTotCol, nTotRow, aBtn, aSay, nMaxVal,oSay <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> CheckStatus<span style="color: #000000;">&#40;</span> oSelf, x, y, nTotCol, nTotRow, aBtn, aSay, nMaxVal,oSay <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nCount := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> j<br /><br /><br /><br />&nbsp; &nbsp; ? &nbsp;oSelf:<span style="color: #000000;">lpressed</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oSelf:<span style="color: #000000;">lpressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSelf:<span style="color: #000000;">lpressed</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSelf:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSelf:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; * oSelf:<span style="color: #000000;">lpressed</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSelf:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSelf:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKORANGE2, DARKORANGE2 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKORANGE2, DARKORANGE2 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;* &nbsp;oSelf:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:=.t.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; oSelf:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ? &nbsp;oSelf:<span style="color: #000000;">lpressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp;xbrowser oSelf:<span style="color: #000000;">cargo</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------//</span><br /><br /><br /><br />&nbsp;</div>[/code:1u75i9iz]
3 state btnbmp
Algo asi? [code=fw:y4rk7cz8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// \samples\BTNPRES3.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> DARKORANGE2 &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">247</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> LIGHTBLUE &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span><br /><br />MEMVAR &nbsp;nVeces<br /><br /><span style="color: #00C800;">FUNCTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nPos, oDlg, oFnt, oFont, K, T, oSay, cPrompt, oExit<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMaxVal := <span style="color: #000000;">4</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xRow &nbsp; &nbsp;:= <span style="color: #000000;">25</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xCol &nbsp; &nbsp;:= <span style="color: #000000;">40</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xWidth &nbsp;:= <span style="color: #000000;">40</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xSpace &nbsp;:= <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;nVeces &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;cPrompt &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"Selezionati &nbsp; &nbsp; &nbsp; &nbsp;"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt &nbsp; &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE &nbsp; ;<br />&nbsp; &nbsp; &nbsp; COLORS LIGHTBLUE, CLR_WHITE TRANSPARENT<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">9.0</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cPrompt <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; COLORS DARKORANGE2, CLR_WHITE TRANSPARENT <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> T = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTotRow<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> K = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTotCol<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> xWidth, xHeight &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PIXEL</span> FLAT <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PROMPT</span> AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> VERIFY_NUMBERX_BTN<span style="color: #000000;">&#40;</span> oBtnNum, oDlg, oSay <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span>| lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert, &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> .F., .F., .F. <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xCol += xWidth + xSpace<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp; &nbsp; xRow += xHeight + xSpace<br /><br />&nbsp; &nbsp; &nbsp; xCol := <span style="color: #000000;">40</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">44</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> oExit <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SET FONT OF oBtnNum[ nPos ] TO oFnt</span><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oExit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFnt:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> VERIFY_NUMBERX_BTN<span style="color: #000000;">&#40;</span> oBtnNum, oDlg, oSay <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTextSay := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// cPrompt</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nVeces = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cTextSay := <span style="color: #ff0000;">"I am Taken"</span><br /><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Taken<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ELSEIF nVeces = <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cTextSay := <span style="color: #ff0000;">"I am Fixes"</span><br /><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Fixes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ELSEIF nVeces = <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp; &nbsp; nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cTextSay := <span style="color: #ff0000;">"I am Free."</span><br /><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; Free<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ELSEIF nVeces = <span style="color: #000000;">4</span><br /><br />&nbsp; &nbsp; &nbsp; nVeces = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// oDlg:End()</span><br /><br />&nbsp; &nbsp; &nbsp; cTextSay := <span style="color: #ff0000;">"Yo Soy Silvio"</span><br /><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Taken<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// tomada</span><br /><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Taken?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Fixes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// correções</span><br /><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Fixes?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Free<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Grátis/Livre</span><br /><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Free?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// END / FIN</span><br />&nbsp;</div>[/code:y4rk7cz8]
3 state btnbmp
[quote="karinha":9lrei53n]Algo asi? [code=fw:9lrei53n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// \samples\BTNPRES3.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> DARKORANGE2  nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">247</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> LIGHTBLUE    nRGB<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span><br /><br />MEMVAR  nVeces<br /><br /><span style="color: #00C800;">FUNCTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> nPos, oDlg, oFnt, oFont, K, T, oSay, cPrompt, oExit<br />   <span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">2</span><br />   <span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br />   <span style="color: #00C800;">LOCAL</span> nMaxVal := <span style="color: #000000;">4</span><br />   <span style="color: #00C800;">LOCAL</span> oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> xRow    := <span style="color: #000000;">25</span><br />   <span style="color: #00C800;">LOCAL</span> xCol    := <span style="color: #000000;">40</span><br />   <span style="color: #00C800;">LOCAL</span> xWidth  := <span style="color: #000000;">40</span><br />   <span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">LOCAL</span> xSpace  := <span style="color: #000000;">2</span><br /><br />   nVeces        := <span style="color: #000000;">1</span><br />   cPrompt       := <span style="color: #ff0000;">"Selezionati        "</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt    <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE   ;<br />      COLORS LIGHTBLUE, CLR_WHITE TRANSPARENT<br /><br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />   @ <span style="color: #000000;">9.0</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cPrompt <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      COLORS DARKORANGE2, CLR_WHITE TRANSPARENT <span style="color: #0000ff;">FONT</span> oFont<br /><br />   <span style="color: #00C800;">FOR</span> T = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTotRow<br /><br />      <span style="color: #00C800;">FOR</span> K = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTotCol<br /><br />         nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br /><br />         @ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> xWidth, xHeight    ;<br />            <span style="color: #0000ff;">PIXEL</span> FLAT <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PROMPT</span> AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>      ;<br />            <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> VERIFY_NUMBERX_BTN<span style="color: #000000;">&#40;</span> oBtnNum, oDlg, oSay <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span>| lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,      ;<br />            <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,   ;<br />            <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />            <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">242</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> .F., .F., .F. <span style="color: #000000;">&#125;</span><br /><br />         xCol += xWidth + xSpace<br /><br />      <span style="color: #00C800;">NEXT</span><br /><br />      xRow += xHeight + xSpace<br /><br />      xCol := <span style="color: #000000;">40</span><br /><br />   <span style="color: #00C800;">NEXT</span><br /><br />   @ <span style="color: #000000;">44</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> oExit <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />   <span style="color: #B900B9;">// SET FONT OF oBtnNum[ nPos ] TO oFnt</span><br />   SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oExit              <span style="color: #0000ff;">TO</span> oFont<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   oFnt:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> VERIFY_NUMBERX_BTN<span style="color: #000000;">&#40;</span> oBtnNum, oDlg, oSay <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cTextSay := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// cPrompt</span><br /><br />   <span style="color: #00C800;">IF</span> nVeces = <span style="color: #000000;">1</span><br /><br />      nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      cTextSay := <span style="color: #ff0000;">"I am Taken"</span><br /><br />      oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />      oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      Taken<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ELSEIF nVeces = <span style="color: #000000;">2</span><br /><br />      nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      cTextSay := <span style="color: #ff0000;">"I am Fixes"</span><br /><br />      oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />      oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      Fixes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ELSEIF nVeces = <span style="color: #000000;">3</span><br /><br />      nVeces := nVeces + <span style="color: #000000;">1</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      cTextSay := <span style="color: #ff0000;">"I am Free."</span><br /><br />      oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />      oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      Free<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ELSEIF nVeces = <span style="color: #000000;">4</span><br /><br />      nVeces = <span style="color: #000000;">1</span><br /><br />      <span style="color: #B900B9;">// oDlg:End()</span><br /><br />      cTextSay := <span style="color: #ff0000;">"Yo Soy Silvio"</span><br /><br />      oSay:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> cTextSay <span style="color: #000000;">&#41;</span><br />      oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oBtnNum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Taken<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// tomada</span><br /><br />   ? <span style="color: #ff0000;">"Taken?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Fixes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// correções</span><br /><br />   ? <span style="color: #ff0000;">"Fixes?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Free<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Grátis/Livre</span><br /><br />   ? <span style="color: #ff0000;">"Free?"</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// END / FIN</span><br /> </div>[/code:9lrei53n][/quote:9lrei53n] No sorry.....I have many numbers Please see this test I made two states Orange and Blue I have two array one for numbers (alista) and one for numbers fix (afissi) I select and the procedure change the color in DARKORANGE2 and the status cargo [img:9lrei53n]https&#58;//i&#46;postimg&#46;cc/xCWkn03G/1&#46;png[/img:9lrei53n] If you press the button "go" you can see two array one with the number 1 and one empty Now I Press the number btnbmp it change on LIGHTBLUE and change the status cargo [img:9lrei53n]https&#58;//i&#46;postimg&#46;cc/BvjQ6r6m/2&#46;png[/img:9lrei53n] If you press the button "go" you can see two array one with the number 1 and one with the same number 1 Now I wish return to Initial state the color must be DARKCYAN and the cargo .f., .f. how I can do ? [code=fw:9lrei53n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#define</span> DARKORANGE2 &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">247</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> LIGHTBLUE &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> DARKCYAN &nbsp; &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">165</span>, <span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">static</span> alista,aFissi<br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> odlg,oBtnNum:=array<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nPos:= <span style="color: #000000;">1</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">600</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE<br /><br />@ &nbsp;<span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> FLAT <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKCYAN, DARKCYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKCYAN, DARKCYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>:=<span style="color: #000000;">&#123;</span>.f.,.f.<span style="color: #000000;">&#125;</span><br />oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := BtnAction<span style="color: #000000;">&#40;</span>oBtnNum,nPos<span style="color: #000000;">&#41;</span><br />&nbsp; @ <span style="color: #000000;">400</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnConfirm <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"GO"</span> <span style="color: #0000ff;">of</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> vedilista<span style="color: #000000;">&#40;</span>alista<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> &nbsp;oDlg &nbsp;<span style="color: #0000ff;">center</span> ;<br /><span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> testinit<span style="color: #000000;">&#40;</span>nPos,oBtnNum<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> BtnAction<span style="color: #000000;">&#40;</span>oBtnNum,nPos<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> || CheckStatus<span style="color: #000000;">&#40;</span> oBtnNum,nPos<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> CheckStatus<span style="color: #000000;">&#40;</span> oBtnNum,nPos<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">if</span> !oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, LIGHTBLUE, LIGHTBLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, LIGHTBLUE, LIGHTBLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:=.f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=.f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span>nPos<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKCYAN, DARKCYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKCYAN, DARKCYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UpdateSay<span style="color: #000000;">&#40;</span>oBtnNum<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;<span style="color: #B900B9;">//------------------------------------------------//</span><br />&nbsp; <span style="color: #00C800;">Function</span> testinit<span style="color: #000000;">&#40;</span>nPos,oCmb<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> atemp:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lSelect,idcheck,n<br />&nbsp; &nbsp;atemp:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> n= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span>atemp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; idcheck:= atemp<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; oCmb<span style="color: #000000;">&#91;</span>idcheck<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>:=lSelect<br />&nbsp; &nbsp; &nbsp; &nbsp; oCmb<span style="color: #000000;">&#91;</span>idcheck<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:=lSelect<br />&nbsp; &nbsp; &nbsp; &nbsp; oCmb<span style="color: #000000;">&#91;</span>idcheck<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=.f.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCmb<span style="color: #000000;">&#91;</span>idcheck<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKORANGE2, DARKORANGE2 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, DARKORANGE2, DARKORANGE2 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCmb<span style="color: #000000;">&#91;</span>idcheck<span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; UpdateSay<span style="color: #000000;">&#40;</span>oCmb<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />proc UpdateSay<span style="color: #000000;">&#40;</span>aBtn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> i<br />&nbsp; &nbsp; &nbsp; &nbsp;aLista:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;aFissi:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> aBtn<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> =.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aLista,ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> aBtn<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style="color: #000000;">&#40;</span>aFissi,ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;<span style="color: #00C800;">Function</span> vedilista<span style="color: #000000;">&#40;</span>alista<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; xbrowser alista<br />&nbsp; &nbsp; xbrowser afissi<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:9lrei53n]
3 state btnbmp
hi Silvio, i have search in Fivewin and found just 1 Sample x:\fwh\samples\fiveres.prg using BS_3STATE also in HMG and MiniGUI Extended Version i did not found any Sample <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> BS_3STATE is a "Radio-Button" Style and it is "normal" Setup at Create. not sure if you can change Style after Create.
3 state btnbmp
Silvio, here is a much more simple code to realize a tri-state-button. Hope it helps ... [code=fw:3hby01xp]<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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------</span><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> xRow    := <span style="color: #000000;">25</span><br /><span style="color: #00C800;">LOCAL</span> xCol    := <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xWidth  :=  <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br /><span style="color: #00C800;">LOCAL</span> xSpace  := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> k, t, oSay, nPos<br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"0 selezionati"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br />   <span style="color: #00C800;">for</span> t := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotRow<br />      <span style="color: #00C800;">for</span> k := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotCol<br />         nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br />         @ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                      <span style="color: #0000ff;">SIZE</span> xWidth, xHeight <span style="color: #0000ff;">OF</span> oDlg<br /><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>   :=  <span style="color: #000000;">1</span><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> | o | SetStatus<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />         xCol += xWidth + xSpace<br />      <span style="color: #00C800;">next</span><br /><br />      xRow += xHeight + xSpace<br />      xCol := <span style="color: #000000;">40</span><br />   <span style="color: #00C800;">next</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 />PROCEDURE SetStatus<span style="color: #000000;">&#40;</span> oBtn <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------------------</span><br /><br />    <span style="color: #00C800;">switch</span> oBtn:<span style="color: #000000;">cargo</span><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />    end<br /><br />   oBtn:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span></div>[/code:3hby01xp]
3 state btnbmp
[quote="Detlef":2efhed0u]Silvio, here is a much more simple code to realize a tri-state-button. Hope it helps ... [code=fw:2efhed0u]<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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------</span><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> xRow    := <span style="color: #000000;">25</span><br /><span style="color: #00C800;">LOCAL</span> xCol    := <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xWidth  :=  <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br /><span style="color: #00C800;">LOCAL</span> xSpace  := <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> k, t, oSay, nPos<br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"0 selezionati"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br />   <span style="color: #00C800;">for</span> t := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotRow<br />      <span style="color: #00C800;">for</span> k := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotCol<br />         nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br />         @ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                      <span style="color: #0000ff;">SIZE</span> xWidth, xHeight <span style="color: #0000ff;">OF</span> oDlg<br /><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>   :=  <span style="color: #000000;">1</span><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> | o | SetStatus<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />         xCol += xWidth + xSpace<br />      <span style="color: #00C800;">next</span><br /><br />      xRow += xHeight + xSpace<br />      xCol := <span style="color: #000000;">40</span><br />   <span style="color: #00C800;">next</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 />PROCEDURE SetStatus<span style="color: #000000;">&#40;</span> oBtn <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------------------</span><br /><br />    <span style="color: #00C800;">switch</span> oBtn:<span style="color: #000000;">cargo</span><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />    end<br /><br />   oBtn:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span></div>[/code:2efhed0u][/quote:2efhed0u] Dear friend, Thanks for the example, but I have a difficulty I inserted a pattern by calling it from another dialog when I return to the dialog where the btnbmp are they are not colored if I insert a function to refresh all the btnbmp it tells me that it does not find the cargo variable, how can I do to save the status? I try with ACTIVATE DIALOG oDLG ON INIT RefreshBtns(oBtn) [code=fw:2efhed0u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> RefreshBtns<span style="color: #000000;">&#40;</span>oBtn<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n<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;">&#40;</span>obtn<span style="color: #000000;">&#41;</span><br />          <span style="color: #00C800;">If</span> oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>= <span style="color: #000000;">1</span><br />                oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br />         elseif oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>= <span style="color: #000000;">2</span><br />              oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />          elseif oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>= <span style="color: #000000;">3</span><br />          oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Endif</span><br />    oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Next</span> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2efhed0u] The test complete ( I try to out oBtnNum as statuc but not save o status [code=fw:2efhed0u]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp;<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />&nbsp;<span style="color: #00C800;">STATIC</span> oBtnNum<br /><br /><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTable<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">4</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br /><br /><br />&nbsp; &nbsp; oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">Button</span> <span style="color: #ff0000;">"table"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">42</span>,<span style="color: #000000;">18</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">action</span> table<span style="color: #000000;">&#40;</span>oBtnNum,nTotCol,nTotRow<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">FUNCTION</span> table<span style="color: #000000;">&#40;</span>oBtnNum,nTotCol,nTotRow<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//-------------</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oDlg<br />&nbsp; &nbsp;* <span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;* <span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;* <span style="color: #00C800;">LOCAL</span> oBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> xRow &nbsp; &nbsp;:= <span style="color: #000000;">25</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> xCol &nbsp; &nbsp;:= <span style="color: #000000;">40</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> xWidth &nbsp;:= &nbsp;<span style="color: #000000;">40</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> xSpace &nbsp;:= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> k, t, oSay, nPos<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"0 selezionati"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span> t := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> k := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPos := nTotCol * <span style="color: #000000;">&#40;</span> t - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + k<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nPos, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> xWidth, xHeight FLAT <span style="color: #0000ff;">OF</span> oDlg NOROUND<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span> &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> ,npos <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> | o | SetStatus<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnNum<span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xCol += xWidth + xSpace<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xRow += xHeight + xSpace<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xCol := <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> RefreshBtns<span style="color: #000000;">&#40;</span>oBtnNum<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; PROCEDURE SetStatus<span style="color: #000000;">&#40;</span> oBtn <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//-------------------------</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">switch</span> oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><br /><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Function</span> RefreshBtns<span style="color: #000000;">&#40;</span>oBtn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> n= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span>obtn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>= <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:2efhed0u]
3 state btnbmp
Silvio, I am not sure having understood your problem well. But may be this could help you? [code=fw:34s19exl]<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;">STATIC</span> aBtnNum<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------</span><br /><span style="color: #00C800;">LOCAL</span> oDlg, oTable<br /><span style="color: #00C800;">LOCAL</span> nTotCol := <span style="color: #000000;">4</span><br /><span style="color: #00C800;">LOCAL</span> nTotRow := <span style="color: #000000;">2</span><br /><br /><br />    aBtnNum := Array<span style="color: #000000;">&#40;</span> nTotRow * nTotCol <span style="color: #000000;">&#41;</span><br /><br /><br />       <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />       @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">Button</span> oTable <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"table"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">ACTION</span> Table<span style="color: #000000;">&#40;</span> nTotCol, nTotRow <span style="color: #000000;">&#41;</span><br /><br />       <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br />PROCEDURE Table<span style="color: #000000;">&#40;</span> nTotCol, nTotRow <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//---------------------------------</span><br /><span style="color: #00C800;">LOCAL</span> oDlg, oSay<br /><span style="color: #00C800;">LOCAL</span> xRow    := <span style="color: #000000;">25</span><br /><span style="color: #00C800;">LOCAL</span> xCol    := <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xWidth  := <span style="color: #000000;">40</span><br /><span style="color: #00C800;">LOCAL</span> xHeight := <span style="color: #000000;">30</span><br /><span style="color: #00C800;">LOCAL</span> xSpace  :=  <span style="color: #000000;">2</span><br /><span style="color: #00C800;">LOCAL</span> nRow, nCol, nBtn<br /><br /><br />       <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br />       @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"0 selezionati"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br />       <span style="color: #00C800;">for</span> nRow := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotRow<br />          <span style="color: #00C800;">for</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nTotCol<br />             nBtn := nTotCol * <span style="color: #000000;">&#40;</span> nRow - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + nCol<br />             @ xRow, xCol <span style="color: #0000ff;">BTNBMP</span> aBtnNum<span style="color: #000000;">&#91;</span> nBtn <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nBtn, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                          <span style="color: #0000ff;">SIZE</span> xWidth, xHeight FLAT <span style="color: #0000ff;">OF</span> oDlg NOROUND<br /><br />             aBtnNum<span style="color: #000000;">&#91;</span> nBtn <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cargo</span>   := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, nBtn <span style="color: #000000;">&#125;</span><br />             aBtnNum<span style="color: #000000;">&#91;</span> nBtn <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> | o | SetStatus<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />             aBtnNum<span style="color: #000000;">&#91;</span> nBtn <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />             xCol += xWidth + xSpace<br />          <span style="color: #00C800;">next</span><br /><br />          xRow += xHeight + xSpace<br />          xCol := <span style="color: #000000;">40</span><br />       <span style="color: #00C800;">next</span><br /><br />        <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLG<br /><span style="color: #00C800;">RETURN</span><br /><br />PROCEDURE SetStatus<span style="color: #000000;">&#40;</span> oBtn <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------------------</span><br /><br />    <span style="color: #00C800;">switch</span> oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span><br />         oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HRED <span style="color: #000000;">&#41;</span><br />         EXIT<br /><br />       <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span><br />         oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">1</span><br />         oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">&#41;</span><br /><br />    end<br /><br />   oBtn:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:34s19exl] Regards, Detlef
3 state btnbmp
I'm afraid I must make a new array type anumbers( toty,totx) I made it for the prices (see the ticket ) and run ok the problem is when i select fir a sample 5 numbers and then I return to main dialog and the return back i cannot change the cargo because it not found it I had the same problem with the array if prices then I found the solution Now I have alista with numbers, aruote with ruotes, and aprices with prices , so I can continue to make the print of the ticket do you Remember?
3 state btnbmp
Good morning Silvio. I'm not very involved at your system. And so I don’t understand your problem completely. If you send me a not working code I could have a look at it. Regards, Detlef
3 state btnbmp
[quote="Detlef":2sjl9kcd]Good morning Silvio. I'm not very involved at your system. And so I don’t understand your problem completely. If you send me a not working code I could have a look at it. Regards, Detlef[/quote:2sjl9kcd] I not have your mail my is silvio(dot)falconi(at)gmail(dot)com
30 get necesito controlar el lostFocus
Hola. Tengo: [code=fw:32j141yl]<div class="fw" id="{CB}" style="font-family: monospace;">oGets:= array<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span><br />vGets:= array<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span></div>[/code:32j141yl] [code=fw:32j141yl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGets<span style="color: #000000;">&#91;</span>...<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">var</span> vGets<span style="color: #000000;">&#91;</span>...<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">id</span> ... <span style="color: #0000ff;">of</span> oDlg</div>[/code:32j141yl] y necesito que cada vez que pierde el foto un get se evalue el valor que contiene. para no hacer 30 ... oGets[...]:bLostFocus:= { | x | .... } pense en usar aEval, pero como se deberia de hacer? gracias.
30 get necesito controlar el lostFocus
Maybe this post can help <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36139">viewtopic.php?f=3&t=36139</a><!-- l -->
30 get necesito controlar el lostFocus
Se me ocurre algo asi: [code=fw:26b5b8aq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> oGets, <span style="color: #000000;">&#123;</span>| e | <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> vGets<span style="color: #000000;">&#91;</span> e <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLostFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span>...Acción....<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:26b5b8aq] Saludos
32 Bit BCC7 *.MAK -> 64 Bit ?
hi, i have made a 32 Bit FiveWin App using BCC7 and *.MAK Project File and try to use it under 64 Bit when star "go" [code=fw:2y75buc5]<div class="fw" id="{CB}" style="font-family: monospace;">set BCDIR=c:\BCC7<span style="color: #000000;">-64</span><br />%BCDIR%\bin\make -FWIPTV.mak<br /><span style="color: #00C800;">if</span> errorlevel <span style="color: #000000;">0</span> FWIPTV.exe</div>[/code:2y75buc5] i got [quote:2y75buc5]c:\BCC7-64\bin\make not found[/quote:2y75buc5] this is my c:\BCC7-64\BIN [quote:2y75buc5]10.05.2017 00:46 298 bcc64.cfg 17.03.2017 00:55 17.657.296 bcc64.exe 17.03.2017 00:55 17.638.352 cpp64.exe 07.07.2011 03:07 23.040 dcc64.exe 20.07.2016 01:51 70 ilink64.cfg 05.04.2016 00:55 973.832 ilink64.exe 16.03.2017 10:55 1.002.448 lnkdfm250.dll 16.03.2017 10:55 327.632 mkexp.exe 16.03.2017 10:55 69.480 rc.exe 16.03.2017 10:55 339.304 RcDLL.dll 16.03.2017 10:55 81.360 rlink32.dll 16.03.2017 10:55 817.648 rw32core.dll 17.03.2017 00:55 786.384 tdump64.exe 05.04.2016 00:55 398.344 tlib64.exe 17.03.2017 00:55 2.556.880 tlibimp.exe 17.03.2017 00:55 1.647.568 TRegSvr.exe[/quote:2y75buc5] now under FiveWin 64 Bit i was told to use MSVC but how about *.MAK File [code=fw:2y75buc5]<div class="fw" id="{CB}" style="font-family: monospace;">HBDIR=C:\HARBOUR64<br />BCDIR=c:\BCC7<span style="color: #000000;">-64</span><br />FWDIR=C:\FWH64<br /><br />#change these paths as needed<br />.path.obj=.\objh<br /><br />PRG           = \<br />FWIPTV.PRG      \<br />FWVLC.PRG       \<br />READM3U.PRG<br /><br />PROJECT     : <span style="color: #000000;">FWIPTV</span>.EXE<br /><br />FWIPTV.EXE : $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span> FWIPTV.res<br />   echo off<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\c0w32.obj + > b32.bc<br />   echo .\objh\FWIPTV.obj .\objh\FWVLC.obj .\objh\READM3U.obj, + >> b32.bc<br />   echo FWIPTV.exe, + >> b32.bc<br />   echo FWIPTV.map, + >> b32.bc<br /><br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveH.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHC.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libmysql.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\hbpgsql.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libpq.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbhpdf.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\libhpdf.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\png.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbwin.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\gtgui.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbrtl.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbvm.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hblang.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbmacro.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbrdd.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddntx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddcdx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddfpt.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbsix.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbdebug.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcommon.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbpp.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcpage.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcplr.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbct.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbpcre.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\xhb.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbziparc.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbmzip.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbzlib.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\minizip.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbusrrdd.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbtip.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbzebra.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcurl.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\libcurl.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\dolphin.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\cw32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\uuid.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\import32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\ws2_32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\odbc32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\nddeapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\msimg32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\psapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\rasapi32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\gdiplus.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\shell32.lib , >> b32.bc<br /><br />   <span style="color: #00C800;">IF</span> EXIST FWIPTV.res echo FWIPTV.res >> b32.bc<br />   $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\ilink64 -Gn -aa -Tpe -s @b32.bc<br />   del b32.bc<br /><br />.PRG.OBJ:<br />  <span style="color: #00C800;">if</span> not exist objh mkdir objh<br />  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /L /N /W /Oobjh\ /I$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc64 -c -tWM -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -oobjh\$& objh\$&.c<br /><br />FWIPTV.res : <span style="color: #000000;">FWIPTV</span>.rc<br />   $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\rc -r FWIPTV.rc</div>[/code:2y75buc5] how can i use a Project File under 64 Bit and MSVC <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
32 Bit BCC7 *.MAK -> 64 Bit ?
Dear Jimmy, The simplest way is to use Harbour's hbmk2 Please review FWH\makes\hbmk2.zip
32 Bit BCC7 *.MAK -> 64 Bit ?
hi Antonio, i do have working FWIPTV.PRG but it have > 1000 Lines so i want to "split" it into 3 Parts to use it "seperate" (in "your" App) [quote:eacfnzh9]FWIPTV.PRG Main App FWVLC.PRG CLASS fwTVLC READM3U.PRG read *.M3U Files[/quote:eacfnzh9] for 32 Bit i have nade a working *.MAK using BCC7 for FiveWin and MSVC i do not know how to use a Project File so i wrote [code=fw:eacfnzh9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> _WIN64<br />#ifdef _WIN64<br />   <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWVLC.PRG"</span><br />   <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"READM3U.PRG"</span><br />#endif</div>[/code:eacfnzh9] it does work with BUILDH64 but not "usable" for "other" User. btw. #ifdef _WIN64 seems not to work in *.PRG, what can i use (without #define it ) ? so i ask how to make a Project File for MSVC ... using hbmk2 but how <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> need some help please
32 Bit BCC7 *.MAK -> 64 Bit ?
Hi, In the fórums there is a sample file for hbmake. If you want to use make, the make.exe itself is the same for 64 bits. Regards!!
32 Bit BCC7 *.MAK -> 64 Bit ?
Hi, Thx for Answer [quote="elvira":wj64zf86]In the fórums there is a sample file for hbmake.[/quote:wj64zf86] i will look for it [quote="elvira":wj64zf86]If you want to use make, the make.exe itself is the same for 64 bits.[/quote:wj64zf86] my BCC7-64 "Problem" : there is no MAKE.EXE in my Folder c:\BCC7-64\BIN <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
32 Bit BCC7 *.MAK -> 64 Bit ?
hi Antonio, [quote="Antonio Linares":3dc0k84c] <!-- m --><a class="postlink" href="http://fivetechsupport.com/forums/viewtopic.php?p=252090&sid=b87a7c59f98f82e6b36e9abb506ee257#p252090">http://fivetechsupport.com/forums/viewt ... 57#p252090</a><!-- m -->[/quote:3dc0k84c] [quote:3dc0k84c]The simplest way is to use Harbour's hbmk2 Please review FWH\makes\hbmk2.zip[/quote:3dc0k84c] i have no \makes\hbmk2.zip ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [quote:3dc0k84c]10.04.2022 08:13 3.359 bormake.zip 10.04.2022 08:13 1.269 gccmake.zip 10.04.2022 08:13 18.525.867 ide_msvc2012.zip 10.04.2022 08:13 2.987 msmake.zip 10.04.2022 08:13 3.314 vs2010_make.zip[/quote:3dc0k84c] OK , got it <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [quote:3dc0k84c]c:\fwh\makes\vs2010_make.zip[/quote:3dc0k84c] sorry ... sometimes i´m just blind
32 Bit BCC7 *.MAK -> 64 Bit ?
Dear Jimmy, <!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?p=252090&sid=b87a7c59f98f82e6b36e9abb506ee257#p252090">viewtopic.php?p=252090&sid=b87a7c59f98f82e6b36e9abb506ee257#p252090</a><!-- l -->
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi, i have "split" my CODE and use *.MAK under BCC7 32 Bit Question : how under MSVC 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:pyuatwpk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> not exist obj md obj<br />c:\bcc7\bin\make -fTGRID.mak</div>[/code:pyuatwpk] [code=fw:pyuatwpk]<div class="fw" id="{CB}" style="font-family: monospace;">HBDIR=c:\harbour<br />BCDIR=c:\BCC7<br />FWDIR=c:\fwh<br /><br />#change these paths as needed<br />.path.OBJ = .\obj<br />.path.PRG = .\<br />.path.CH  = $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />.path.C   = .\<br />.path.rc  = .\<br /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG =        \<br />TGRID.PRG    \<br />EXPCLASS.PRG    \<br /><span style="color: #00C800;">HB_FUNC</span>.PRG<br /><br />PROJECT    : <span style="color: #000000;">DUALEXP</span>.exe<br /><br />DUALEXP.exe  : $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span> DUALEXP.res<br />   echo off<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\c0w32.obj + > b32.bc<br />   echo obj\TGRID.obj obj\EXPCLASS.obj obj\<span style="color: #00C800;">HB_FUNC</span>.obj, + >> b32.bc<br />   echo DUALEXP.exe, + >> b32.bc<br />   echo DUALEXP.map, + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveH.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHC.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbrtl.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbvm.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\gtgui.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hblang.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbmacro.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbrdd.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddntx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddcdx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\rddfpt.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbsix.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbdebug.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcommon.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbpp.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbwin.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcpage.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbct.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbpcre.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcplr.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\xhb.lib + >> b32.bc<br />   <br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbziparc.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbmzip.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbzlib.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\minizip.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\png.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbusrrdd.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbtip.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbzebra.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbcurl.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\libcurl.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\win\bcc\hbxpp.lib +  >> b32.bc<br /><br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\dolphin.lib +  >> b32.bc<br />   <br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\cw32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\uuid.lib + >> b32.bc <br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\ws2_32.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\gdiplus.lib +  >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\import32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\odbc32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\nddeapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\msimg32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\psapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\rasapi32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\shell32.lib,  >> b32.bc<br /><br />   <span style="color: #00C800;">IF</span> EXIST DUALEXP.res echo DUALEXP.res >> b32.bc<br />   $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc<br />   del b32.bc<br /><br />.PRG.OBJ:<br />  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /L /N /W /Oobj\ /I$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -oobj\$& obj\$&.c<br /><br />.C.OBJ:<br />  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />  echo -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include >> tmp<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -oobj\$& @tmp $&.c<br />  del tmp<br /><br />DUALEXP.res : <span style="color: #000000;">DUALEXP</span>.rc<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\brc32.exe -r DUALEXP.rc</div>[/code:pyuatwpk]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Dear Jimmy, Please review FWH\samples\buildh64.bat and adapt your make file to it. Please review FWH\makes\hbmk2.zip as hbmk2 is the easiest way to build Harbour + FWH apps
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Antonio. [quote:1ib7gkto]Please review FWH\makes\hbmk2.zip as hbmk2 is the easiest way to build Harbour + FWH apps[/quote:1ib7gkto] thx for Answer i have not found hbmk2.zip ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [quote:1ib7gkto]c:\fwh64\makes\bormake.zip c:\fwh64\makes\gccmake.zip c:\fwh64\makes\ide_msvc2012.zip c:\fwh64\makes\msmake.zip c:\fwh64\makes\vs2010_make.zip[/quote:1ib7gkto] as also Everything does not found hbmk2.zip it is not on my PC [quote:1ib7gkto]Please review FWH\samples\buildh64.bat and adapt your make file to it.[/quote:1ib7gkto] ok ... but how to "call" it later when have all those "echo" in new *.MAK (?) should i use vs2010_make.zip <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:1ib7gkto]<div class="fw" id="{CB}" style="font-family: monospace;">c:\<span style="color: #ff0000;">"Program Files (x86)<span style="color: #000000;">\M</span>icrosoft Visual Studio 10.0"</span>\VC\bin\nmake -ftest.mak<br /><span style="color: #00C800;">if</span> errorlevel==<span style="color: #000000;">0</span> one.exe</div>[/code:1ib7gkto] seem to be for 32 Bit --- buildh64.bat seems for single File only <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> when try [code=fw:1ib7gkto]<div class="fw" id="{CB}" style="font-family: monospace;">buildh64.bat A B C</div>[/code:1ib7gkto] it does create A.c B.c and C.c but does not link B.c and C.c so i get "missing" sorry for all those Question but as Newbie i have to learn it ...
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Dear Jimmy, Here you have it: [url:k6sdavf9]https&#58;//github&#46;com/FiveTechSoft/FWH_tools/blob/master/hbmk2&#46;zip[/url:k6sdavf9]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Antonio, [quote="Antonio Linares":k4ou9fl5]Here you have it: [url:k4ou9fl5]https&#58;//github&#46;com/FiveTechSoft/FWH_tools/blob/master/hbmk2&#46;zip[/url:k4ou9fl5][/quote:k4ou9fl5] thx for link have download it and use go64.bat [code=fw:k4ou9fl5]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles(x86)%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>019<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> amd64<br />c:\harbour\bin\hbmk2 test64.hbp -comp=msvc64<br />test.exe<br /><br />-Ic:\fwh\include<br />-Lc:\fwh\lib</div>[/code:k4ou9fl5] which i modify to my Path thi Way [code=fw:k4ou9fl5]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> amd64<br />c:\harbour64\bin\hbmk2 test64.hbp -comp=msvc64<br />test.exe<br /><br />-Ic:\fwh64\include<br />-Lc:\fwh64\lib</div>[/code:k4ou9fl5] but when run go64 i got this [quote:k4ou9fl5]c:\fwh64\0\TGRID>go64 c:\fwh64\0\TGRID>call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 ********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.2.6 ** Copyright (c) 2022 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64' Error BASE/1126 Argument error: STRTRAN (Quit) Error BASE/1126 Argument error: STRTRAN Called from STRTRAN(0) Called from __HBMK(0) Called from HBMK_LOCAL_ENTRY(0) Called from __HBMK_FAKE_ENTRY(0) Der Befehl "test.exe" ist entweder falsch geschrieben oder konnte nicht gefunden werden.[/quote:k4ou9fl5] where does STRTRAN() came from <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> but it work when use [code=fw:k4ou9fl5]<div class="fw" id="{CB}" style="font-family: monospace;">c:\fwh64\samples\buildh64.bat TEST</div>[/code:k4ou9fl5] --- test again with BCC7 64 Bit and MAKE.EXE from 32 Bit BCC [quote:k4ou9fl5]c:\fwh64\0\TGRID>go c:\fwh64\0\TGRID>if not exist obj md obj c:\fwh64\0\TGRID>c:\bcc7\bin\make -fTGRID.m MAKE Version 5.2 Copyright (c) 1987, 2000 c:\harbour64\bin\harbour .\DUALGRID Harbour 3.4.0dev (8eeef91) (2021-09-26 11:2 Copyright (c) 1999-2021, <!-- m --><a class="postlink" href="https://github.com">https://github.com</a><!-- m --> Compiling '.\DUALGRID.PRG'... Lines 11471, Functions/Procedures 67 Generating C source output to 'obj\DUALGRID c:\BCC7\bin\bcc64 -c -tWM -Ic:\harb Embarcadero C++ 7.10 for Win64 Copyright (c obj\DUALGRID.c: In file included from obj\DUALGRID.c:3: In file included from c:\harbour64\include\ c:\harbour64\include/hbdefs.h:50:10: fatal #include <stdarg.h> ^ 1 error generated. ** error 1 ** deleting .\obj\DUALGRID.OBJ[/quote:k4ou9fl5]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Dear Jimmy, Please send me your files and I will build the makefile for you
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Dear Jimmy, Here you have it: go.bat [code=fw:2uw5b3of]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br />c:\harbour\bin\win\msvc\hbmk2 dualgrid.hbp -comp=msvc</div>[/code:2uw5b3of] dualgrid.hbp [code=fw:2uw5b3of]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-Ic:\fwh\include<br /><br />dualgrid.prg<br /><span style="color: #00C800;">hb_func</span>.prg<br />tgrid.prg<br /><br />-Lc:\fwh\lib<br /><br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">msvcrt</span><br /><br />dualgrid.rc<br />&nbsp;</div>[/code:2uw5b3of] It looks like the Total Commander! excellent work Jimmy <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
[quote="Antonio Linares":1wn48b7u]-ldflag=/NODEFAULTLIB:msvcrt[/quote:1wn48b7u] I recommend to use -MD compiler switch and replace the above with [code=fw:1wn48b7u]<div class="fw" id="{CB}" style="font-family: monospace;">-nodefaultlib:<span style="color: #000000;">libcmt</span></div>[/code:1wn48b7u]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Antonio, [quote="Antonio Linares":7iebi9c5]Here you have it:[/quote:7iebi9c5] thx for Link File and Help as i like to use it for 64 Bit i have change x86 -> amd64 c:\fwh\ -> c:\fwh64\ -lFiveH64 -lFiveHC64 ... but fail <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [code=fw:7iebi9c5]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> amd64 <br />c:\harbour64\bin\win\msvc\hbmk2 dualgrid.hbp -comp=msvc</div>[/code:7iebi9c5] [code=fw:7iebi9c5]<div class="fw" id="{CB}" style="font-family: monospace;">    -gui<br /><br />    -Ic:\fwh64\include<br /><br />    dualgrid.prg<br />    <span style="color: #00C800;">hb_func</span>.prg<br />    tgrid.prg<br /><br />    -Lc:\fwh64\lib<br /><br />    -lFiveH64<br />    -lFiveHC64<br /><br />    -lgdiplus<br />    -lole32<br />    -lOleDlg<br />    -lversion<br /><br />    xhb.hbc<br />    hbct.hbc<br />    hbwin.hbc<br />    hbmzip.hbc<br />    hbziparc.hbc<br />    hbfoxpro.hbc<br /><br />    -ldflag=/NODEFAULTLIB:<span style="color: #000000;">msvcrt</span><br /><br />    dualgrid.rc</div>[/code:7iebi9c5] it produce a lot of Error (about LIBs ?) ... what do i need "more" for 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [quote="Antonio Linares":7iebi9c5]It looks like the Total Commander![/quote:7iebi9c5] YES, Design is like Total Commander and also Hot-Key "should" be the same ShFileOperation work so you can "copy" or "move" Files/Folder with Animation "delete" does work but not "move to Paperbin" (FOF_ALLOWUNDO) ... something have change with Rights ... i have "split" CODE while i want to "share CLASS TGRID" to Fivewin but still need some Time to learn Fivewin and work on Demo
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
[quote="Jimmy":17rdxwd2]ShFileOperation work so you can "copy" or "move" Files/Folder with Animation "delete" does work but not "move to Paperbin" (FOF_ALLOWUNDO) ... something have change with Rights ...[/quote:17rdxwd2] Interesting. Can you show a sample of ShFileOperation usage?
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Jimmy, > it produce a lot of Error (about LIBs ?) ... what do i need "more" for 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> What errors ? Please post them here
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Antonio [quote="Antonio Linares":2kjl2w5e]> it produce a lot of Error (about LIBs ?) ... what do i need "more" for 64 Bit <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> What errors ? Please post them here[/quote:2kjl2w5e] please use Go64 and *.HBP which i have posted i have change "your" Go a and HBP to use for 64 Bit ... but i got a very long list so i have not post it
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Enrico, [quote="Enrico Maria Giordano":28i276mq]Interesting. Can you show a sample of ShFileOperation usage?[/quote:28i276mq] have update this Thread [url:28i276mq]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=42417&p=255468[/url:28i276mq]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
Dear Jimmy, I just ported the make to 64 bits and worked fine on first try: go.bat [code=fw:37aqddmk]<div class="fw" id="{CB}" style="font-family: monospace;">call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> amd64<br />c:\harbour\bin\win\msvc64\hbmk2 dualgrid.hbp -comp=msvc64</div>[/code:37aqddmk] dualgrid.hbp [code=fw:37aqddmk]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-Ic:\fwh\include<br /><br />dualgrid.prg<br /><span style="color: #00C800;">hb_func</span>.prg<br />tgrid.prg<br /><br />-Lc:\fwh\lib<br /><br />-lFiveH64<br />-lFiveHC64<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbct.hbc<br />hbwin.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br />hbfoxpro.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">msvcrt</span><br /><br />dualgrid.rc<br /> </div>[/code:37aqddmk]
32 Bit BCC7 *.MAK -> MSVC 64 Bit ?
hi Antonio, [quote="Antonio Linares":2tpzpl72]I just ported the make to 64 bits and worked fine on first try:[/quote:2tpzpl72] YES <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> now it work using MSVC 64 Bit, thx
32 Bit DLL equivalent
On Clipper/DOS/FiveWin I use the VDVBX.DLL to display images. What's the 32 bit equivalent of this DLL ?
32 Bit DLL equivalent
Look in the sample directory for IMAGE control.EMG
32 bit toolbar on dialog
Dear All, how to put 32bit toolbar on dialog? reviewed toolbar1.prg but not luck. thanks.
32 bit toolbar on dialog
Try building it in the ACTIVATE DIALOG .. ON INIT clause. EMG
32 bit toolbar on dialog
Dear Enrico, Thanks. Its works. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Hiong
32 bit toolbar on dialog
Dear Enrico, can i move last button to the right side of toolbar? thanks
32 bit toolbar on dialog
I don't know, sorry. EMG
32 bits version of IsZip/GetFirstInZip/GetNextInZip
Hello, I want to know where I can find the 32 bits version of :IsZipGetFirstInZipGetNextInZipand UnZipFile tooI already found HB_GETUNZIPFILE in spanish [url=http&#58;//fivetechsoft&#46;com/forums/viewtopic&#46;php?t=1764:1vszridq]forum[/url:1vszridq] but it generate error.PS.: I use xHarbour 1.1.0 + FwXh 8.02and already add lib HBZIP.LIB im my project
360º videos - must see
[url:3ezcgk86]https&#58;//www&#46;facebook&#46;com/nytimes/videos/vb&#46;5281959998/10150820319614999/?type=2&theater[/url:3ezcgk86] you have to download the NYTimes app and watch it from [b:3ezcgk86]your phone[/b:3ezcgk86] with your finger you can look to any direction from inside the video <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
3CX PBX interface
Hi all, just to know if someone already made a connector for that PBX (<!-- w --><a class="postlink" href="http://www.3cx.com">www.3cx.com</a><!-- w -->)
3CX PBX interface
Marco, What exactly do you do? Making a call from your application? Let me know bye marco
3CX PBX interface
I would like to make calls from my application and also show a pop-up with the name of the caller (I should check the calling number with those in my customers database to get the name)
3CX PBX interface
Marco, IF you try this [code=fw:1gb2cfri]<div class="fw" id="{CB}" style="font-family: monospace;">http:<span style="color: #B900B9;">//<pbx>:5000/ivr/PbxAPI.aspx?func=make_call&from=<ext>&to=<dest>&pin=<ext_pin></span></div>[/code:1gb2cfri] maybe everything is easier. For incoming calls it all depends on which phone you have to use: real phone or softphone. I use innovaphone PBX systems. You can use 3 kind of directories: 1 - local to pbx (not reccomanded) 2 - local to every signle phone ( loaded into phone memory, line cell phones) 3 - ldap server (very expensive and difficult to manage) In Innovaphone If you have less than 1000 entries the solution #2 is the best (it's free and is very fast)