topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ButtonBmp and 2007 look | Antonio,It will be that in version 8.06 he is ready <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> ? |
ButtonBmp and 2007 look | Vilian,Its is not ready yet |
ButtonBmp and 2007 look | We modified the btnbmp class with office 2007 effect( Silver, Magenta, Blue)it is compatible with btnbmp fivetech class send a mesage to private email pls |
ButtonBmp and 2007 look | Silvio,Not yet I received! You sent? |
ButtonBmp and 2007 look | I sent you a message We decide to sale our classes :this is the price list ( May08):BtnBmp 2007 €49,00TPaintTitle €49,00TTabs2007 €49,00Bundle 2 classes €79,00Bundle 3 classes €129,00All classes with source code Samples code and Help file |
ButtonBmp con soporte de alpha channel bitmaps! | Realmente bonito <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1w8p46yx]http://img13.imageshack.us/img13/7906/38354905.png[/img:1w8p46yx] |
ButtonBmp con soporte de alpha channel bitmaps! | Hola Antonio,
Hay forma de poner estos Bitmaps en un archivo de recursos o Una Dll |
ButtonBmp con soporte de alpha channel bitmaps! | Pablo,
Si, se pueden poner en un archivo de recursos de la forma usual:
button BITMAP "../bitmaps/AlphaBmp/ichat.bmp"
El problema es que el compilador de recursos de Borland no los sabe manejar bien y genera este error:
"Invalid bitmap format"
Se soluciona usando el compilador de recursos de Microsoft, de esta forma:
rc.exe -r -d__FLAT__ test.rc
En FWH\samples\buildh.bat y buildx.bat, asi:
IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1 |
ButtonBmp con soporte de alpha channel bitmaps! | Podeis descargar el compilador de recursos de Microsoft desde aqui:
<!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38a5bbce2ec52d8c11b8eada0a1ae8665a">http://www.mediafire.com/?sharekey=414c ... 0a1ae8665a</a><!-- m -->
Microsoft lo incluye en todas las versiones demo de MSVC. |
ButtonBmp con soporte de alpha channel bitmaps! | Antonio, Pablo.
No se si estamos hablando de lo mismo, pero yo he incluido bitmaps del tipo Alpha en mi archivo de recursos .rc , y los compilo con el compilado de recursos de Borland, sin ningún problema.
Los defino de esta forma en el archivo .rc
[code=fw:2m9wbasj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ABMP01 ALPHABITMAP <span style="color: #ff0000;">"C:<span style="color: #000000;">\s</span>istema<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\b</span>mps<span style="color: #000000;">\u</span>ser_add_ab.bmp"</span><br /> </div>[/code:2m9wbasj]
Y no tengo ningún mensaje de error.
Espero les sirva.
Carlos Sincuir. |
ButtonBmp con soporte de alpha channel bitmaps! | Carlos,
gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
ButtonBmp con soporte de alpha channel bitmaps! | [quote="csincuir":3v277ta2]Antonio, Pablo.
No se si estamos hablando de lo mismo, pero yo he incluido bitmaps del tipo Alpha en mi archivo de recursos .rc , y los compilo con el compilado de recursos de Borland, sin ningún problema.
Los defino de esta forma en el archivo .rc
[code=fw:3v277ta2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ABMP01 ALPHABITMAP <span style="color: #ff0000;">"C:<span style="color: #000000;">\s</span>istema<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\b</span>mps<span style="color: #000000;">\u</span>ser_add_ab.bmp"</span><br /> </div>[/code:3v277ta2]
Y no tengo ningún mensaje de error.
Espero les sirva.
Carlos Sincuir.[/quote:3v277ta2]
Estimado Mr.Carlos,
Esa es una gran nueva actualización. Yo era de la impresión de que el compilador de recursos de Borland no puede compilar. AlphaChannel RC archivos que contienen mapas de bits. Debido a esta razón por la que estaba utilizando PellesC como compilador de recursos.
Muchas gracias
Saludos
Anser |
ButtonBmp con soporte de alpha channel bitmaps! | Hola a todos.
Que bueno que fue de utilidad esta opción. Se me olvido comentar que el BRC "Borland Resource Workshop", puede abrir estos archivo .rc con estas definiciones, pero no puede editar los .bmp, hay que hacerlo con un editor de imagenes aparte.
Por último solo comentar que que esta opción la aprendí de Fernando Mancera.
Saludos cordiales.
Carlos. |
ButtonBmp con soporte de alpha channel bitmaps! | Saludos.
He revisado, la sintaxis que corresponde al ButtonBmp en el archivo fivewin.ch
[code=fw:3l1bxscy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #000000;">[</span> <oBtn> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">[</span> <of:<span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, DIALOG> <oDlg> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ACTION</span> <uAction,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <help:<span style="color: #0000ff;">HELP</span>, HELPID, <span style="color: #0000ff;">HELP</span> ID> <nHelpId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <update: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHEN</span> <WhenFunc> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">VALID</span> <uValid> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">PROMPT</span> <cPrompt> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lCancel: <span style="color: #000000;">CANCEL</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BITMAP <cBitmap> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <cPostext: <span style="color: #000000;">TEXTTOP</span>, TEXTBOTTOM, TEXTLEFT, TEXTRIGHT> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> TOOLTIP <cToolTip> <span style="color: #000000;">]</span></div>[/code:3l1bxscy]
[b:3l1bxscy][ BITMAP <cBitmap> ][/b:3l1bxscy]
Y si no me equivoco para hacer referencia al archivo BITMAP solo corresponde a la descripcion del archivo no para recursos, no se si estoy equivocado, me corrigen por favor.
Porque el BTNBMP si lo tiene contenido en la sintaxis:
[code=fw:3l1bxscy]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #000000;">[</span><oBtn><span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <bar: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">BUTTONBAR</span> > <oBar> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <resource: <span style="color: #0000ff;">NAME</span>, <span style="color: #0000ff;">RESNAME</span>, RESOURCE> <cResName1>;<br /> <span style="color: #000000;">[</span>,<cResName2><span style="color: #000000;">[</span>,<cResName3><span style="color: #000000;">]</span><span style="color: #000000;">[</span>,<cResName4><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <file: <span style="color: #000000;">FILE</span>, FILENAME, DISK> <cBmpFile1> ;<br /> <span style="color: #000000;">[</span>,<cBmpFile2><span style="color: #000000;">[</span>,<cBmpFile3><span style="color: #000000;">[</span>,<cBmpFile4><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <action:<span style="color: #0000ff;">ACTION</span>,EXEC,<span style="color: #0000ff;">ON</span> CLICK> <uAction,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <adjust: <span style="color: #0000ff;">ADJUST</span> > <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHEN</span> <uWhen> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lUpdate: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> TOOLTIP <cToolTip> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">PROMPT</span> <cPrompt> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lNoBorder: <span style="color: #000000;">NOBORDER</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <layout: <span style="color: #0000ff;">CENTER</span>, TOP, <span style="color: #0000ff;">LEFT</span>, BOTTOM, RIGHT> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <l2007: <span style="color: #000000;">2007</span>> <span style="color: #000000;">]</span> ; <br /> <span style="color: #000000;">[</span> <lTrans: <span style="color: #000000;">TRANSPARENT</span>> <span style="color: #000000;">]</span> ; <br /> </div>[/code:3l1bxscy]
[b:3l1bxscy][ <resource: NAME, RESNAME, RESOURCE> <cResName1>[/b:3l1bxscy]
Y por otro lado tambien los aceleradores (hotkeys) no me funcionan correctamente (no desencadenan la accion del boton) perdon po insistir con este detalle, pero es que queria hacer uso de este aspecto, pero mi intencion que con la actualizacion a FWH 9.04; mis clientes hicieran uso de esos cambios tan buenos en estas clases.
Saludos desde Honduras |
ButtonBmp de Rossini | Holas,
he intentado compilar las modificaciones de Rossini a la clase Button pero sin exito, logro compilar Button.prg + Buttonb.prg mas el ejemplo Testbubm.prg pero al querer correr el pubto exe me da el error "No se puede iniciar la aplicacion porque su configuracion es incorrecta"
Estoy utilizando xHarbour .99.5 FWH 2.6 Abril BCC, alguna sugerencia, o el entorno que dispongo no es copatible?
saludos
Marcelo |
ButtonBmp de Rossini | Olá Marcelo,
Aqui está o link para a classe button: <!-- m --><a class="postlink" href="http://geocities.yahoo.com.br/qiinformatica2000/BUTTON.ZIP">http://geocities.yahoo.com.br/qiinforma ... BUTTON.ZIP</a><!-- m -->
e aqui para a classe folder:
<!-- m --><a class="postlink" href="http://geocities.yahoo.com.br/qiinformatica2000/FOLDER.ZIP">http://geocities.yahoo.com.br/qiinforma ... FOLDER.ZIP</a><!-- m -->
Tente com estes,
Abraços,
Rossine. |
ButtonBmp de Rossini | Rossini,
probe el button bmp, y funciono perfectamente, gracias
un abrazo
Marcelo
[quote="Rossine":2nwmicoa]Olá Marcelo,
Aqui está o link para a classe button: <!-- m --><a class="postlink" href="http://geocities.yahoo.com.br/qiinformatica2000/BUTTON.ZIP">http://geocities.yahoo.com.br/qiinforma ... BUTTON.ZIP</a><!-- m -->
e aqui para a classe folder:
<!-- m --><a class="postlink" href="http://geocities.yahoo.com.br/qiinformatica2000/FOLDER.ZIP">http://geocities.yahoo.com.br/qiinforma ... FOLDER.ZIP</a><!-- m -->
Tente com estes,
Abraços,
Rossine.[/quote:2nwmicoa] |
ButtonBmp over Title | Could be possible to manage a control like this with fivewin ?
<!-- m --><a class="postlink" href="http://www.softwarexp.co.uk/beta/test_title.bmp">http://www.softwarexp.co.uk/beta/test_title.bmp</a><!-- m -->
Thanks
Marco |
ButtonBmp over Title | Marco,
You may use a TBtnBmp control without border (NOBORDER) |
ButtonBmp over Title | See:
www. canalfive.com
James |
ButtonBmp over Title | Hi James,
I am already working with vTitle of Canalfive and all runs fine.
The problem is that if I put a button over the vTitle control then the button will be hidden by the vTitle control.
I also tried to disable the vTitle control and then I put the button on it but with this solution the button is visible but I can't press it.
Did you know any solution about this ?
Thanks
Best Regards,
Marco |
ButtonBmp over Title | Marco,
>Did you know any solution about this ?
I don't know, I have never used this control.
James |
ButtonBmp sin borde | Estoy intentando crear un buttonbmp sin borde, pero no he hallado el como......Quiero obtener un ..get .. action.. en el que el botón carezca del borde que actualmente tiene.Alguien me puede dar alguna idea, hace tiempo que ando haciendo pruebas sin resultado.Gracias desde ya por vuestra ayuda. |
ButtonBmp sin borde | [quote="jose_murugosa":3gp8baqi]Estoy intentando crear un buttonbmp sin borde, pero no he hallado el como......
Quiero obtener un ..get .. action.. en el que el botón carezca del borde que actualmente tiene.
Alguien me puede dar alguna idea, hace tiempo que ando haciendo pruebas sin resultado.
Gracias desde ya por vuestra ayuda.[/quote:3gp8baqi]Lo que busco es este look[url=http://imageshack.us:3gp8baqi][img:3gp8baqi]http://img227.imageshack.us/img227/1687/muestraqp7.png[/img:3gp8baqi][/url:3gp8baqi] |
ButtonBmp sin borde | intenta hacer esto...[code:1uhsphak]
activate dialog on init( ;
oBtn:=TbtnBmp():New( 0, oGet:nWidth - oGet:nHeight, oGet:nHeight - 4, aObjVar[ 2 ]:nHeight - 4, "busca", , , ,;
{||msginfo("prueba")}, aObjVar[ 2 ], , , .T., .T., , , , , .F., , ),;
oBtn:lTransparent:=.t. );
on paint( oBtn:SetColor( oGet:nClrText, oGet:nClrPane ) )
[/code:1uhsphak]no definas el get como buttonget... revisa que no me haya faltado ningun parametro de la TbtnBmp[img:1uhsphak]http://i485.photobucket.com/albums/rr217/danielgarciagil/btnTran.jpg[/img:1uhsphak] |
ButtonBmp with alpha channel bitmaps support! | So nice <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:6nrkq7xg]http://img13.imageshack.us/img13/7906/38354905.png[/img:6nrkq7xg] |
ButtonBmp without border | Is it possible to create a ButtonBmp without border?How would be the code?I've been working on it and I didn´t find a way to do it.Thanks in advance. |
ButtonBmp without border | [quote="jose_murugosa":2dntr2yx]Is it possible to create a ButtonBmp without border?
How would be the code?
I've been working on it and I didn´t find a way to do it.
Thanks in advance.[/quote:2dntr2yx]What I want is to change the get.... bitmap... action.... to this look[url=http://imageshack.us:2dntr2yx][img:2dntr2yx]http://img227.imageshack.us/img227/1687/muestraqp7.png[/img:2dntr2yx][/url:2dntr2yx] |
ButtonBmp without border | Jose,clause ... GET ... ACTION ... creates a TButtonBmp control as a child control of the GET. Class TButtonBmp is inherited from Class TButton, based on the standard Windows buttons.Though some resources editors, as MS VSX, shows an optional "flat" style for a button, when we test such style, the button still shows its border.A possible solution would be to modify Class TGet and use a TBtnBmp instead of a TButtonBmp, but then you would not have themes support in the TBtnBmp button. |
ButtonBmp without border | [quote="Antonio Linares":2nhvhxxa]Jose,
clause ... GET ... ACTION ... creates a TButtonBmp control as a child control of the GET. Class TButtonBmp is inherited from Class TButton, based on the standard Windows buttons.
Though some resoures editors, as MS VSX, shows an optional "flat" style for a button, when we test such style, the button still shows its border.
A possible solution would be to modify Class TGet and use a TBtnBmp instead of a TButtonBmp, but then you would not have themes support in the TBtnBmp button.[/quote:2nhvhxxa]Thanks for your answer, I suspect that this would be the only solution (sorry for my terrible english). |
ButtonBmp without border | José,Another possibility is to replace the TButtonBmp used in Class TGet with a TBitmap control. This way there will be no button borders at all. |
ButtonBmp without border | I add a variable lNoBorderBtn and I create a ButtonBmp when it is .f. and a BtnBmp with it is .t., now it works ok in both cases.Thanks for your help Antono!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> For those who could need this I leave the code:After defining a variable lNoBorderBtn in method New and Redefine.....[code:avyplw2e]
METHOD CreateButton() CLASS TGet
local oThis := Self
if ValType( ::bAction ) == "B" .and. Upper( ::ClassName() ) == "TGET"
//JSe modifica para que al indicar que no se desee borde en botón cambie a objeto btnbmp sin borde
IF ::lNoBorderBtn
IF Empty( ::cBmpName ) //no hay bmp
@ 0, ::nWidth - ::nHeight BUTTONBMP ::oBtn OF Self ;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL TRANSPARENT
::oBtn:SetText( "..." )
ELSE
/*
@ 0, ::nWidth - ::nHeight BUTTONBMP ::oBtn OF Self ;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL BITMAP ::cBmpName
*/
IF At( ".", ::cBmpName)<>0 //si es .bmp
@0, ::nwidth - ::nHeight BTNBMP ::oBtn OF Self;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
FILE ::cBmpName ;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL NOBORDER TRANSPARENT
ELSE //si es un bmp
@0, ::nwidth - ::nHeight BTNBMP ::oBtn OF Self;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
RESOURCE ::cBmpName;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL NOBORDER TRANSPARENT
ENDIF
ENDIF
ELSE
if Empty( ::cBmpName )
@ 0, ::nWidth - ::nHeight BUTTONBMP ::oBtn OF Self ;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL
if Empty( ::oBtn:hBitmap )
::oBtn:SetText( "..." )
endif
else
@ 0, ::nWidth - ::nHeight BUTTONBMP ::oBtn OF Self ;
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
SIZE ::nHeight - 4, ::nHeight - 4 PIXEL BITMAP ::cBmpName
endif
ENDIF
::oBtn:lCancel = .T. // so the GET VALID is not fired when the button is focused
ENDIF
return nil
//----------------------------------------------------------------------------//
[/code:avyplw2e] |
ButtonSkin-Painter + BtnBMP Update 4.0a (Preview) | Hello,
A Preview on the Update 4.0a of the ButtonSkin-painter.
Class BtnBMP ( Buttonbar and Buttons ) are included now.
There are still some Tests and the Code-generator to do.
Like usual, the Note < Preview > will change to < Update >
as soon it is ready for Download.
ButtonSkin- and BtnBMP-painter are included in one Application now.
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint1.jpg[/img:1p8760kq]
Define ButtonbarSize, Multiline Button-prompts and Groups
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint2.jpg[/img:1p8760kq]
Define Button-Gradients and Multiline Prompts
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint11.jpg[/img:1p8760kq]
Define BMP's for Buttons and Position inside Buttons.
Define Buttonform : Rectangle or Round
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint4.jpg[/img:1p8760kq]
Test with any Background You like :
Normal 2007 - Style
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint5.jpg[/img:1p8760kq]
Create extra Buttonbar and Button-Gradients
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint6.jpg[/img:1p8760kq]
The new elliptical Button-Form is supported
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint7.jpg[/img:1p8760kq]
Using different Settings : Buttonbar = Style 2007, Buttons with defined Gradients
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint8.jpg[/img:1p8760kq]
The Buttons 7 ( Butonbar ) and 12 ( Buttons) are reserved for a special Test.
BMP-change on Normal, Focus and Pressed ( Green-, Blue- and Red - Button ) :
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint10.jpg[/img:1p8760kq]
[img:1p8760kq]http://www.pflegeplus.com/pictures/Skint9.jpg[/img:1p8760kq]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
Buttonb | Hola Foro :
Como puedo justificar la data TButtonBmp:cCaption. ?? de manera que el .BMP quede a la derecha o a la izquierda.
Saludos
Harbour Build 45.00, bcc55, Fwh 2.7 December 2005.
Ricardo R |
Buttonb | Ricardo,
Esa capacidad está implementada en el build de abril 2006.
Puedes usar la clase modificada por Rossine, que te proporciona esa capacidad. |
Buttonb | Gracias Antonio.
Alguien podria subir ( <!-- m --><a class="postlink" href="http://hyperupload.com">http://hyperupload.com</a><!-- m -->) la classe tbuttonb modificada por Rossine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ???
Saludos.
Ricardo R. |
Buttonb | Hola Foro <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Será que hay alguna alma caritativa <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> , que tenga por ahi la tbutton modificada por Rossine. ?
Saludos.
Ricardo R. |
Buttonb | Ricardo,
Aqui la tienes:
<!-- m --><a class="postlink" href="http://hyperupload.com/download/026090f048/button.zip.html">http://hyperupload.com/download/026090f ... n.zip.html</a><!-- m -->
Es bastante similar a la de FWH, pero no iguales. |
Buttonb | Gracias Master <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Saludos.
Ricardo R. |
Buttonbar + Menu VS. Ribbonbar | Bien, si he entendido lo que pretendes
No es exactamente eso lo que hace el ejemplo TBDESIGN.PRG ? |
Buttonbar + Menu VS. Ribbonbar | Buenos días, parcialmente si, pero necesito saber si hay alguna forma de conocer 3 valores del botón pulsado.
Por ejemplo de la línea:
@3,155 add button oBtn4_2_6 prompt "Obtener MAC address" group oGr2_6 bitmap "mac_add" action GetMacAdd() size 150,20 MOSTLEFT
1.- El prompt "Obtener MAC address"
2.- El bitmap "mac_add"
3.- El action "GetMacAdd()"
Estos tres valores los guardaría en una tabla asociados al ID del usuario que se ha firmado, de esa manera tendré los valores que necesito para reconstruir el menu "Favoritos" cada vez que el usuario ingrese al sistema.
Y la construiría asi:
[code=fw:3v440vx5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">select</span> * <span style="color: #0000ff;">from</span> tablafavoritos <span style="color: #0000ff;">where</span> userid=cUsuario<br /><br /><span style="color: #00C800;">for</span> unid=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">[</span>Nregistros<span style="color: #000000;">]</span><br /> cProm1:=<span style="color: #ff0000;">"Obtener MAC address"</span><br /> cBitm1:=<span style="color: #ff0000;">"mac_add"</span><br /> cFunc1:=<span style="color: #ff0000;">"GetMacAdd()"</span><br /><br /> @<span style="color: #000000;">3</span>,<span style="color: #000000;">140</span> add <span style="color: #0000ff;">button</span> oBtn4_2_6 <span style="color: #0000ff;">prompt</span> cProm1 group oGr2_6 bitmap cBitm1 <span style="color: #0000ff;">action</span> &cFunc1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">145</span>,<span style="color: #000000;">20</span> MOSTLEFT<br /><span style="color: #00C800;">next</span><br /> </div>[/code:3v440vx5]
Es posible hacer esto? |
Buttonbar + Menu VS. Ribbonbar | Busca "detached" en el foro, es el concepto que necesitas para hacer eso, entendiendo que el query de respuesta de lo que buscas en la tabla ya lo tienes en un array |
Buttonbar + Menu VS. Ribbonbar | Gracias Cristobal, el punto que los favoritos se van a ir agregando a la tabla conforme el usuario los vaya seleccionando, la idea original es que el usuario le de click derecho a alguna opción del sistema y le aparezca un menú para agregar o quitar de sus favoritos.
Como verás hay varios tabuladores y varios grupos dentro de cada unos de ellos y muchas opciones dentro de cada grupo, esa complejidad me impulsa a darles a los usuarios la opción de que tengan un lugar donde agrupen las opciones de las tareas que realizan con mayor frecuencia, por lo tanto los usuarios son los que decidirán que opciones irán agregando a sus favoritos.
Es por eso que necesito saber si es posible que al seleccionar la opción "Agregar a favoritos" pueda recibir estos tres parámetros de acuerdo al botón pulsado, una vez que tenga estos valores los almacenaría en la tabla de favoritos.
Espero haberme explicado con claridad.
Saludos. |
Buttonbar + Menu VS. Ribbonbar | Gracias Antonio, ya lo estoy probando y encontrando la luz al final de este tunel, solo un pequeño detalle más, cuando tengo un POPUP, como se diferencia el botón derecho y el izquierdo?
Actualmente, al darle click en una opción de un menu POPUP me da la misma acción, independietemente del botón del mouse que haya pulsado.
[code=fw:3eccy1c3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@<span style="color: #000000;">3</span>,<span style="color: #000000;">175</span> add <span style="color: #0000ff;">button</span> oBtn4_2_5 <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Reportes de nomina"</span> group oGr2_5 bitmap <span style="color: #ff0000;">"nomina_semana"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">POPUP</span> MOSTLEFT <span style="color: #0000ff;">menu</span> repor_nomina<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /><br /><span style="color: #00C800;">Function</span> repor_nomina<br /> <span style="color: #00C800;">local</span> oPopuprn<br /> <span style="color: #00C800;">public</span> cTipnom<br /> <span style="color: #0000ff;">menu</span> oPopuprn <span style="color: #0000ff;">popup</span> <span style="color: #000000;">2015</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Semanal"</span> <span style="color: #0000ff;">action</span> rep_incsem<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"nomina_semana"</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Quincenal"</span> <span style="color: #0000ff;">action</span> <span style="color: #000000;">(</span>cTipnom:=<span style="color: #ff0000;">"Q"</span>,rep_incqui<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"nomina_quincena"</span><br /> <span style="color: #0000ff;">endmenu</span><br /><span style="color: #00C800;">return</span> oPopuprn<br /> </div>[/code:3eccy1c3]
Quisiera obtener el valor de oMenuitem:cPrompt, solo cuando se pulse el botón derecho del mouse, en caso contrario que ejecute su clausula "ACTION" de forma normal. |
Buttonbar + Menu VS. Ribbonbar | Mario,
Aqui tienes el ejemplo usando "detached locals" como te ha indicado Cristobal:
[code=fw:29t096ay]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ribbon.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> BuildRibbonBar<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> BuildRibbonBar<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">local</span> oRBar, oGrp, oBtn, n<br /><br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> HEIGHT <span style="color: #000000;">134</span> TOPMARGIN <span style="color: #000000;">25</span><br /><br /> ADD GROUP oGrp RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"new"</span> WIDTH <span style="color: #000000;">260</span> <br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">3</span><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> + <span style="color: #000000;">(</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * <span style="color: #000000;">80</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"new"</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> GROUP oGrp <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"click"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">83</span> TOP<br /> oBtn:<span style="color: #000000;">bRClicked</span> = GenBlock<span style="color: #000000;">(</span> oBtn, n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> GenBlock<span style="color: #000000;">(</span> oBtn, n <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">{</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> n, oBtn:<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:29t096ay] |
Buttonbar + Menu VS. Ribbonbar | Muchas gracias por sus aportes, ya quedó finalmente implementado y se ve bastante bien, como comenta Cesar, tuve que hacer un reacomodo de todos los items de cada grupo para que no quedaran (o quedaran los menos posibles) de espacios en blanco.
El login al sistema quedo así:
[img:2imetx7j]https://i.postimg.cc/7PWLgX2J/Login.jpg[/img:2imetx7j]
Y la RibbonBar:
[img:2imetx7j]https://i.postimg.cc/wTRjFJXf/Main-Ribbon-Bar.jpg[/img:2imetx7j]
Ahora se me ha metido a la cabeza la idea de generar un grupo que sea construido por el usuario, básicamente mi ídea es que le den click derecho del mouse a la opción deseada y que les aparezca un menu contextual que les de la opción de agregar o quitar del grupo de favoritos, obviamente al agregar/quitar voy a guardar en una tabla el ID del usuario, el nombre del item y la función que llama, para que la siguiente vez que se firme el usuario se pueda construir este grupo "favoritos"
Una idea es hacerlo asi:
[code=fw:2imetx7j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> firma=<span style="color: #ff0000;">"MAR"</span><br />cFunc1:=<span style="color: #ff0000;">"GetMacAdd()"</span><br />add group oGr2_6 ribbon oRBar <span style="color: #0000ff;">to</span> option <span style="color: #000000;">6</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"DESARROLLO"</span> width <span style="color: #000000;">310</span><br />@<span style="color: #000000;">3</span>,<span style="color: #000000;">155</span> add <span style="color: #0000ff;">button</span> oBtn4_2_6 <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Obtener MAC address"</span> group oGr2_6 bitmap <span style="color: #ff0000;">"mac_add"</span> <span style="color: #0000ff;">action</span> &cFunc1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">20</span> MOSTLEFT<br />oBtn4_2_6:<span style="color: #000000;">bRButtonUp</span> := <span style="color: #000000;">{</span> | nRow, nCol | checafav<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">Function</span> checafav<br /> <span style="color: #00C800;">if</span> msgyesno<span style="color: #000000;">(</span><span style="color: #ff0000;">"Desea agregar este comando a favoritos"</span>,<span style="color: #ff0000;">"Favoritos"</span><span style="color: #000000;">)</span><br /> ?<span style="color: #ff0000;">"Si, agregar"</span><br /> *poner proceso para guardar datos en base de datos<br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span><br /> </div>[/code:2imetx7j]
Si tiene alguna idea mejor lea gradeceré los aportes. |
Buttonbar + Menu VS. Ribbonbar | Buenos días a todos, recién estoy tratando de migrar mi viejo menu que implemente usando Buttonbar a usar Ribbonbar, tengo algunas dudas, con Buttonbar puedo generar de forma dinámica mis menús, basado en los atributos de mis usuarios Ejemplo:
Defino la barra de botones con acceso controlado de acuerdo a la "firma" (ID de usuario) o por el nivel del mismo)
[code=fw:xvpdtkmz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oVentprinc <span style="color: #0000ff;">from</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">9</span>,<span style="color: #000000;">165</span> <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Sistema principal"</span> <span style="color: #0000ff;">menu</span> creamenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBarra <span style="color: #0000ff;">of</span> oVentprinc 3dlook <span style="color: #0000ff;">size</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">50</span><br /> aFirmarr:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"MAR"</span>,<span style="color: #ff0000;">"VSJ"</span>,<span style="color: #ff0000;">"JAV"</span><span style="color: #000000;">}</span><br /> cFirrr:=ascan<span style="color: #000000;">(</span>aFirmarr,firma<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> cFirrr<><span style="color: #000000;">0</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBarra <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BMPIMAGEN"</span> <span style="color: #0000ff;">action</span> reporte1<span style="color: #000000;">(</span><span style="color: #000000;">)</span> tooltip <span style="color: #ff0000;">"Procesar reporte"</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBarra <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BMPMARKET"</span> <span style="color: #0000ff;">action</span> marketin<span style="color: #000000;">(</span><span style="color: #000000;">)</span> tooltip <span style="color: #ff0000;">"Telemarketing"</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBarra <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BMPMARCON"</span> <span style="color: #0000ff;">action</span> consmark<span style="color: #000000;">(</span><span style="color: #000000;">)</span> tooltip <span style="color: #ff0000;">"Consulta telemarketing"</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBarra <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BMPCALEND"</span> <span style="color: #0000ff;">action</span> calendar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> tooltip <span style="color: #ff0000;">"Calendario de grupo"</span><br /> <span style="color: #00C800;">if</span> leve=<span style="color: #ff0000;">"A"</span> .or. lAdmrh=.T. <br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBarra <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"BMPUSUARIOS"</span> <span style="color: #0000ff;">action</span> Admusers<span style="color: #000000;">(</span><span style="color: #000000;">)</span> tooltip <span style="color: #ff0000;">"Administra usuarios"</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oVentprinc<br /> </div>[/code:xvpdtkmz]
Función para crear el menú, las opciones del mismo también están controladas de acuerdo a los atributos del usuario
[code=fw:xvpdtkmz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> creamenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oMenu<br /> <span style="color: #0000ff;">menu</span> oMenu <span style="color: #000000;">2015</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"&CONSULTAS"</span><br /> <span style="color: #0000ff;">menu</span><br /> <span style="color: #00C800;">if</span> firma=<span style="color: #ff0000;">"MAR"</span> .or. firma=<span style="color: #ff0000;">"ABC"</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Consulta de cliente"</span> <span style="color: #0000ff;">action</span> cons_clie<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #0000ff;">endmenu</span><br /> <span style="color: #00C800;">if</span> firma=<span style="color: #ff0000;">"MAR"</span> .or. firma=<span style="color: #ff0000;">"ABC"</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"&TAREAS ESPECIALES"</span><br /> <span style="color: #0000ff;">menu</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"&Especial 1"</span> <span style="color: #0000ff;">action</span> Esp1<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">separator</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Especial 2"</span> <span style="color: #0000ff;">action</span> Esp2<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> firma=<span style="color: #ff0000;">"MAR"</span><br /> <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Espcecial 3"</span> <span style="color: #0000ff;">action</span> Esp3<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #0000ff;">endmenu</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:xvpdtkmz]
Como se ve en este pequeño ejemplo solo se mostrarán los menús si el usuario que se "firmo" cumple con ciertos requisitos, así mismo algunas de las opcion es de dichos menús solo se mostrarán si se cumplen algunos criterios, la pregunta es:
¿Es posible administrar estas opciones usando un RibbonBar? Leyendo encontré que se pueden deshabilitar los "Tabs" del RibbonBar (oRBar:aEnable[NoDeTab]:=.F.) y efectivamente lo deshabilita, pero me gustaría poder esconderlo (trate con la opción oRBar:hide[2]:=.T., pero no funciona).
Cualquier ayuda será muy agradecida.
Saludos. |
Buttonbar + Menu VS. Ribbonbar | Bien, no sé si te he entendido bien, pero al igual que en la buttonbar, o en los menús, defines las opciones que quieres mostrar, aquí puedes hacer lo mismo, con la condición que necesites y utilizando el metodo AddTab de la Ribbon, y no definir los prompts al principio junto a la definición de la Ribbon.
Espero haberme explicado |
Buttonbar + Menu VS. Ribbonbar | Muchas gracias por tu respuesta, tendrás un pequeño ejemplo de como lo manejas?
Gracias. |
Buttonbar + Menu VS. Ribbonbar | Me respondo, me puse a revisar el archivo rbdesign.prg, ahi viene como generar el ribbonBar desde 0.
oRBar:AddTab( "CIERRE DIARIO" )
Gracias por no darme el pescado y forzarme a buscarlo por mi mismo. |
Buttonbar + Menu VS. Ribbonbar | Gracias a ti por entender que es mejor explicar el concepto y continuar investigando .... |
Buttonbar + Menu VS. Ribbonbar | Hola Mario:
Cuando armas un menú personalizado según los permisos que tiene el usuario, te puedes encontrar que algunos tabs pueden no tener contenido (el usuario no tiene permiso a ningun subitem). En estos casos el método <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->eleteTab(n) que aplica al ribbonbar te puede ser útil.
También, como aquí para que quede prolijo, el ancho del grupo de botones va a depender de la cantidad de items que tenga permiso, otro método que puede serte útil es :SetSize(n) que aplica a un grupo del ribbonbar.
Espero que te sea de utilidad...
Saludos |
Buttonbar 2007 button with a attached Popup menu | Does someone know how to open the attached popup menu with a click on the button.
(Like in WORD Button: “Formatvorlagen”)
Regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | [code:3ui8pmr3]
DEFINE BUTTON OF oBar NOBORDER ;
PROMPT 'SubMenu' ;
MENU MyPopUp() ;
ACTION MsgInfo('Can have action and also submenu')
....
....
// -------------------
STATIC FUNCTION MyPopUp()
LOCAL oPop
MENU oPop POPUP
MENUITEM 'One'
MENUITEM 'Two'
ENDMENU
RETURN oPop
[/code:3ui8pmr3] |
Buttonbar 2007 button with a attached Popup menu | nageswaragunupudi , thank you for your answer.
But that is the code how to attach a popup menu.
But I need to open the attached popup menu with a click on the button.
(Like in WORD Button: “Formatvorlagen”)
Here a jpg:
[img:3u4fuuhz]http://www.atzwanger.com/fw/buttonPopup.jpg[/img:3u4fuuhz][img:3u4fuuhz]http://www.atzwanger.com/fw/word.jpg[/img:3u4fuuhz] |
Buttonbar 2007 button with a attached Popup menu | Otto,
Please add this method to class TBtnBmp:
[code:j0hrnnnj]
METHOD ShowPopup() CLASS TBtnBmp
local oWnd
if ::oPopup != nil
if ::oWnd:oWnd != nil .and. Upper( ::oWnd:oWnd:Classname() ) == "TBAR"
oWnd := ::oWnd:oWnd
else
oWnd := ::oWnd
endif
if GetClassName( GetParent( Self:hWnd ) ) != "TBAR"
oWnd = oWndFromhWnd( GetParent( Self:hWnd ) )
endif
oWnd:NcMouseMove() // close the tooltip
oWnd:oPopup = ::oPopup
::oPopup:Activate( ::nTop + ::nHeight(), ::nLeft, oWnd, .f. )
oWnd:oPopup = nil
::Refresh()
endif
return nil
[/code:j0hrnnnj]
To use it, simply do:
[code:j0hrnnnj]
MENU oPopup POPUP
MENUITEM "One" ACTION MsgInfo( 1 )
MENUITEM "Two" ACTION MsgInfo( 2 )
ENDMENU
DEFINE BUTTON oBtn OF oBar ACTION oBtn:ShowPopup() ;
RESOURCE "people" PROMPT "Clients" GROUP ;
MENU oPopup
[/code:j0hrnnnj] |
Buttonbar 2007 button with a attached Popup menu | Thank you, Antonio.
It is working.
Regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | Hello Antonio,
I have seen that popup is included in 10.3. Thank you.
How can I align the popup menu if I use oBtn:ShowPopup()?
Best regards,
Otto
[code=fw:2trq278v]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">5</span>, <span style="color: #000000;">145</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtnBearbeiten GROUP oFunktionen BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps2<span style="color: #000000;">\1</span>1.bmp"</span> <span style="color: #0000ff;">MENU</span> oMenuBearbeiten ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Bearbeiten"</span> SPLITPOPUP TOP <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBtnBearbeiten:<span style="color: #000000;">ShowPopup</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:2trq278v]
[img:2trq278v]http://www.atzwanger-software.com/fw/clip2.jpg[/img:2trq278v]
[img:2trq278v]http://www.atzwanger-software.com/fw/clip3.jpg[/img:2trq278v] |
Buttonbar 2007 button with a attached Popup menu | Otto,
I don't exactly understand what you mean |
Buttonbar 2007 button with a attached Popup menu | Mr Antonio.
ShowPopup was already there in the FWH long time back.
This kind of code was working since many versions of FWH. I think we do not need to add the above code again:
The code below is an extract from testxbr3.prg:
[code=fw:29613iv8]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"REPORT"</span> TOP ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Report"</span> ;<br /> <span style="color: #0000ff;">MENU</span> ReportMenu<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ACTION</span> This:<span style="color: #000000;">ShowPopUp</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Print the browse contents"</span> ;<br /> TOOLTIP <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Print Report"</span>, <span style="color: #ff0000;">"Report"</span> <span style="color: #000000;">}</span><br /> </div>[/code:29613iv8] |
Buttonbar 2007 button with a attached Popup menu | Hello Antonio,
Best regards,
Otto
[img:3hif5zqf]http://www.atzwanger-software.com/fw/clip4.jpg[/img:3hif5zqf] |
Buttonbar 2007 button with a attached Popup menu | Otto,
Does it fit in the right side ? |
Buttonbar 2007 button with a attached Popup menu | Antonio,
yes it fits in the right side.
Best regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | Otto,
Then it means that the left coordinate of the popup is wrongly calculated.
We are going to review it, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Buttonbar 2007 button with a attached Popup menu | Hello Otto...
in METHOD LButtonUp( nRow, nCol ) CLASS TRBtn
find and replace this section...
[code=fw:kcsaus2r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #00C800;">case</span> ::<span style="color: #000000;">nTypeButton</span> == TYPE_SPLITPOPUP<br /> <span style="color: #00C800;">if</span> nRow >= ::<span style="color: #000000;">nPopupMargin</span> .or. ! lAction<br /> oWnd := ::<span style="color: #000000;">oWnd</span><br /> oWnd:<span style="color: #000000;">NcMouseMove</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// close the tooltip</span><br /> oWnd:<span style="color: #000000;">oPopup</span> = ::<span style="color: #000000;">oPopup</span><br /> ::<span style="color: #000000;">oPopup</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nHeight</span>, <span style="color: #000000;">0</span>, <span style="color: #00C800;">Self</span>, .F. <span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oPopup</span> = <span style="color: #00C800;">nil</span><br /> ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #0000ff;">click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <br /> <span style="color: #00C800;">case</span> ::<span style="color: #000000;">nTypeButton</span> == TYPE_POPUP <br /> <span style="color: #00C800;">if</span> nCol >= ::<span style="color: #000000;">nPopupMargin</span> .or. !lAction<br /> oWnd := ::<span style="color: #000000;">oWnd</span><br /> oWnd:<span style="color: #000000;">NcMouseMove</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// close the tooltip</span><br /> oWnd:<span style="color: #000000;">oPopup</span> = ::<span style="color: #000000;">oPopup</span><br /> ::<span style="color: #000000;">oPopup</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nHeight</span>, <span style="color: #000000;">0</span>, <span style="color: #00C800;">Self</span>, .F. <span style="color: #000000;">)</span> <br /> oWnd:<span style="color: #000000;">oPopup</span> = <span style="color: #00C800;">nil</span><br /> ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> ::<span style="color: #0000ff;">click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:kcsaus2r] |
Buttonbar 2007 button with a attached Popup menu | Hello Daniel,
thank you for your help.
I did a short test but the code does not resolve my problem.
If I change as well showpopup() (left + 500) this way I would get the right alignment – only for this special case.
Thanks in advance
Otto
[code=fw:3179115k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> ShowPopup<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br /> <span style="color: #00C800;">local</span> oWnd<br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"asdfla"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">if</span> GetClassName<span style="color: #000000;">(</span> GetParent<span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"TBAR"</span><br /> oWnd = oWndFromhWnd<span style="color: #000000;">(</span> GetParent<span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> oWnd:<span style="color: #000000;">NcMouseMove</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// close the tooltip</span><br /> oWnd:<span style="color: #000000;">oPopup</span> = ::<span style="color: #000000;">oPopup</span><br /> ::<span style="color: #000000;">oPopup</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nTop</span> + ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nLeft</span> - oWnd:<span style="color: #000000;">nLeft</span> + <span style="color: #000000;">500</span>, oWnd, .f. <span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oPopup</span> = <span style="color: #00C800;">nil</span><br /> ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:3179115k] |
Buttonbar 2007 button with a attached Popup menu | Hello Daniel,
Would you be so kind to have another look at this problem?
Best regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | Hello otto
can you post a "fake" image what do you want ??
thanks... |
Buttonbar 2007 button with a attached Popup menu | Hello Daniel,
thank you for coming back to my question.
If I open the attached menu with the arrow down from the button the menu aligns correctly. If I press the button with the Action This:showPopup() the menu aligns wrong. Please see the bitmap.
Thanks in advance
Otto
[img:2ylgk69o]http://www.atzwanger-software.com/fw/clip4.jpg[/img:2ylgk69o]
[code=fw:2ylgk69o]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"REPORT"</span> TOP ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Report"</span> ;<br /> <span style="color: #0000ff;">MENU</span> ReportMenu<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ACTION</span> This:<span style="color: #000000;">ShowPopUp</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Print the browse contents"</span> ;<br /> TOOLTIP <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Print Report"</span>, <span style="color: #ff0000;">"Report"</span> <span style="color: #000000;">}</span></div>[/code:2ylgk69o] |
Buttonbar 2007 button with a attached Popup menu | Otto...
are you using BTNBMP or RBBTN?? |
Buttonbar 2007 button with a attached Popup menu | Daniel, I think it is RBBTN. Here is the ppo file:
[code=fw:3rtd1l3x]<div class="fw" id="{CB}" style="font-family: monospace;">oBtnBearbeiten := oFunktionen:<span style="color: #000000;">AddButton</span><span style="color: #000000;">(</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">145</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">65</span>, <span style="color: #ff0000;">"Bearbeiten"</span>, <span style="color: #000000;">{</span>|Self|<span style="color: #000000;">(</span> oBtnBearbeiten:<span style="color: #000000;">ShowPopup</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span>, Upper<span style="color: #000000;">(</span><span style="color: #ff0000;">"SPLITPOPUP"</span><span style="color: #000000;">)</span>,, <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps2<span style="color: #000000;">\1</span>1.bmp"</span>,, .T., Upper<span style="color: #000000;">(</span><span style="color: #ff0000;">"TOP"</span><span style="color: #000000;">)</span>, oMenuBearbeiten,,,, <span style="color: #000000;">)</span></div>[/code:3rtd1l3x]
Best regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | Otto..
you dont need call ShowPopup()
use MENU oMenu in command ADD BUTTON
sample
@ 3,5 ADD BUTTON oBtn PROMPT "Change" BITMAP "mybitmap" GROUP oGr [b:3fbfb156][color=#FF0000:3fbfb156]MENU oMenu[/color:3fbfb156][/b:3fbfb156] ;
SPLITPOPUP ROUND SIZE 65,75 TOP |
Buttonbar 2007 button with a attached Popup menu | Daniel,
But I want to open the menu also with a click on the button not only on the arrow.
Best regards,
Otto |
Buttonbar 2007 button with a attached Popup menu | Otto...
if you dont define ACTION the default action will be ShowPopup()
see
@ 3,5 ADD BUTTON oBtn PROMPT "Change" BITMAP "mybitmap" GROUP oGr MENU oMenu ;
SPLITPOPUP ROUND SIZE 65,75 TOP
i dont defined action in this button, when you push the button the popup menu is displayed |
Buttonbar 2007 button with a attached Popup menu | Hello Daniel,
thank you so much. Now all is working perfectly.
I didn’t know about that.
Best regards,
Otto |
Buttonbar Disappears | Hello - I'm back! Miss me?
I just discovered something interesting.
I have a ButtonBar on a Window.
When you right click on the ButtonBar the 'Top', 'Left', 'Bottom', 'Right' menu is displayed - everything normal so far.
BUT
When you first select 'Left' for example the ButtonBar is displayed on the left but if you then right click on THIS ButtonBar and select 'Right' the ButtonBar moves to the right quite correctly but then disappears and only the defined Buttons are displayed.
This works in reverse as well i.e. from 'Top' select 'Right' and then 'Left' and same thing happens.
There is no problem moving 'Top' to 'Bottom' and then back to 'Top'.
Dale. |
Buttonbar Disappears | Dale,
Are you using a MDI window ?
samples\tutor04.prg works ok doing what you have described. |
Buttonbar Disappears | Dale,
Yes, it looks as a bug with the buttonbar and MDI windows. |
Buttonbar Disappears | Good Morning,
Yes - MDI.
Regards,
Dale. |
Buttonbar Update or Refresh | I have a Buttonbar that I need to disable buttons on for certain tasks using a logical value.
[code=fw:1rbjsw6v]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd _3D <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">NAME</span> <span style="color: #000000;">169</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Quit"</span> <span style="color: #0000ff;">WHEN</span> !lMenuLock<br /> </div>[/code:1rbjsw6v]
When lMenulock is .T., the button gray's out, but when lMenulock is changed to .F., the button does not reactivate.
I have tried oBtn:refresh() etc. but can't make this work.
Thanks for the help!
G |
Buttonbar Update or Refresh | The easiest solution may be to just do an oBtn:disable()/oBtn:enable() whenever you change lMenuLock.
James |
Buttonbar Update or Refresh | Yep! I just enable/disable the entire bar: oBar:enable() / oBar:disable()....perfect and simple.
Thanks AGAIN James <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
G |
Buttonbar Update or Refresh | Greg,
try also oBar:AEvalWhen().
EMG |
Buttonbar Update or Refresh | Enrico,
oBar:AEvalWhen()
What exactly does that do? Does it reevaluate the WHEN clauses for every button on the bar?
James |
Buttonbar Update or Refresh | James,
[quote="James Bott":3v7mxj65]Enrico,
oBar:AEvalWhen()
What exactly does that do? Does it reevaluate the WHEN clauses for every button on the bar?
James[/quote:3v7mxj65]
Yes, it should do that.
EMG |
Buttonbar color | Hello,
we have function like SetDlgGradient which allows you to set the colors of all the dialogs of the project .
There is a function that allows you to do the same for buttonbar ?
Thanks
Maurizio |
Buttonbar color | DEFINE BUTTONBAR oBar OF oTabella SIZE 70,70 BOTTOM NOBORDER 2010
oBar:bClrGrad := { | lPressed | If( ! lPressed,;
{ { 1, nRgb(233,229,206),nRgb(233,229,206) } },;
{ { 1, nRgb( 245,244,234), nRgb( 245,244,234) } } ) } |
Buttonbar color | Silvio,
this is for a single bar.
I think Maurizio is looking for something like a global solution
( for [color=#FF0000:3n0hha9z]ALL[/color:3n0hha9z] bars ) <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
Maurizio wrote :
we have function like SetDlgGradient which allows you to
[color=#0000FF:3n0hha9z]set the colors of all [/color:3n0hha9z]the dialogs of the project .
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Buttonbar color | [quote="ukoenig":2dlwlvk6]Silvio,
this is for a single bar.
I think Maurizio is looking for something like a global solution
( for [color=#FF0000:2dlwlvk6]ALL[/color:2dlwlvk6] bars ) <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
Maurizio wrote :
we have function like SetDlgGradient which allows you to
[color=#0000FF:2dlwlvk6]set the colors of all [/color:2dlwlvk6]the dialogs of the project .
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:2dlwlvk6]
Sorry, I not understood |
Buttonbar color | Maurizio,
You may solve it this way for all your buttonbars:
DEFINE BUTTONBAR ... COLOR ButtonBarColor()
...
function ButtonBarColor()
return nRGBColor |
Buttonbar color | Thanks Antonio ,
it wasn't what I thought, but for the moment it's okay .
Maurizio |
Buttonbar con clausula 2007 | Intento mejorar mi aplicación visualmente, para ello probe la clausula 2007 en una buttonbar; con este codigo :
[code=fw:37qj62s6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarra 3DLOOK <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">32</span> TOP <span style="color: #0000ff;">OF</span> oVent <span style="color: #0000ff;">CURSOR</span> oCursor <span style="color: #0000ff;">UPDATE</span> <span style="color: #000000;">2007</span><br /> </div>[/code:37qj62s6]
Pero, pasa que al incluir la clausula 2007, los botones que yo tengo desabilitados, y que sin la clausula me aparecen con un color gris, al poner la clausula 2007 aparecen a full color; y no puede evitar esto.
Que me falta definir?
Saludos
Fernando Espinoza |
Buttonbar con clausula 2007 | Fernando,
Solo te aparecerá el texto del botón en gris:
[img:3f4sj9pu]http://img25.imageshack.us/img25/8940/capturewj.png[/img:3f4sj9pu]
Revisa FWH\samples\Test2007.prg |
Buttonbar disabled if painting on BMP-background ? | Hello,I noticed :If using a full-screen BMP as background ( resized to screen-resolution )and painting a Buttonbar on top,the Buttonbar is disabled, because of the BMP behind.[img:2k0adfem]http://www.pflegeplus.com/pictures/buttonbar5.jpg[/img:2k0adfem]before :[code:2k0adfem]
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT ( MAKEBAR1( oWnd ) ) ;
ON PAINT SHOW_PIC0( oWnd )
// ----------------------------------------------
FUNCTION MAKEBAR1( oWnd )
LOCAL oBar1, oBtn1, oBtn2
DEFINE BUTTONBAR oBar1 OF oWnd SIZE 80, 67 2007 RIGHT
DEFINE BUTTON oBtn1 OF oBar1 ACTION ( Tools1(oWnd) ) ;
RESOURCE "gear" PROMPT "Windows" TOOLTIP "Windows and Dialog"
DEFINE BUTTON oBtn2 OF oBar1 ACTION ( Tools2(oWnd) ) ;
RESOURCE "gear" PROMPT "xBrowse" TOOLTIP "xBrowse"
RETURN( NIL )
// ------ Full screen Background ( with Buttonbar on Top ) ------------
FUNCTION SHOW_PIC0( oWnd )
LOCAL oImage1
LOCAL aRect := GETCLIENTRECT( oWnd:hWnd )
@ 0, 0 IMAGE oImage1 SIZE aRect[4], aRect[3] OF oWnd ADJUST
oImage1:LoadBmp( "BRAINSTORM.BMP" )
RETURN( NIL )
[/code:2k0adfem]
If I reduce the BMP-width it works.
I had to change the line :
[code:2k0adfem]
@ 0, 0 IMAGE oImage1 SIZE aRect[4] -80, aRect[3] OF oWnd ADJUST
[/code:2k0adfem]BMP-width = aRect[4]-80 ( - Buttonbar-width )Why the Buttonbar is disabled on TOP of the Background-BMP using the full screen-size ?RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
Buttonbar disabled if painting on BMP-background ? | Uwe,In our system, we using into "on resize" method.[code:14hcpwxh]ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT ( MAKEBAR1( oWnd ) ) ;
ON RESIZE SHOW_PIC0( oWnd )
// ----------------------------------------------
FUNCTION MAKEBAR1( oWnd )
LOCAL oBar1, oBtn1, oBtn2
DEFINE BUTTONBAR oBar1 OF oWnd SIZE 80, 67 2007 RIGHT
DEFINE BUTTON oBtn1 OF oBar1 ACTION ( Tools1(oWnd) ) ;
RESOURCE "gear" PROMPT "Windows" TOOLTIP "Windows and Dialog"
DEFINE BUTTON oBtn2 OF oBar1 ACTION ( Tools2(oWnd) ) ;
RESOURCE "gear" PROMPT "xBrowse" TOOLTIP "xBrowse"
RETURN( NIL )
// ------ Full screen Background ( with Buttonbar on Top ) ------------
FUNCTION SHOW_PIC0( oWnd )
LOCAL oImage1
LOCAL aRect := GETCLIENTRECT( oWnd:hWnd )
@ 0, 0 IMAGE oImage1 SIZE aRect[4], aRect[3] OF oWnd ADJUST
oImage1:LoadBmp( "BRAINSTORM.BMP" )
RETURN( NIL )[/code:14hcpwxh] |
Buttonbar disabled if painting on BMP-background ? | Hello JC,I changed : ON PAINT in RESIZEThe same : the Buttonbar is disabled.If i reduce the Background-BMP-width ( - Buttonbar-width ) it is OK.I want the Background adjusted to the screen resolution.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
Buttonbar disabled if painting on BMP-background ? | Uwe,This my source code into ON RESIZE method:[code:itxn4dta]
oBitmap := TBitmap():new( 0, 0, oWnd:getCliRect():nRight, oWnd:getCliRect():nBottom,,, .T., oWnd )
WITH OBJECT aSIS_DadosSistema["objeto_background"]
:lStretch := .T.
:setBMP( "RES_IMAGEM_NAME" )
:center()
:refresh( .T. )
END[/code:itxn4dta] |
Buttonbar en una posición fija | Llevo 3 días peleando con el código, por poner una Buttonbar en una posición fija, dentro de un dialogo con un control RichEdit, la buttonbar se carga desde la clausula ON INIT; el código de la función que carga la ButtonBar es este:
[code=fw:1hfu3a3x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CargaBarra<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oBar, oCursor, hDC, aFonts, oClp, oBold, oItalic, oUnderline, oItem, cFont, oSize, nSize:=<span style="color: #000000;">10</span><br />hDC := GetDC<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br />aFonts := ASort<span style="color: #000000;">(</span> GetFontNames<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />ReleaseDC<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span>, hDC <span style="color: #000000;">)</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /><span style="color: #0000ff;">DEFINE</span> CLIPBOARD oClp <span style="color: #0000ff;">OF</span> oDlg FORMAT <span style="color: #0000ff;">TEXT</span><br />* Controles de la <span style="color: #0000ff;">ButtonBar</span><br /><br />@ <span style="color: #000000;">150</span>,<span style="color: #000000;">260</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg 3DLOOK <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">480</span>,<span style="color: #000000;">27</span> BUTTONSIZE <span style="color: #000000;">24</span>,<span style="color: #000000;">24</span> FLOAT<br /> <span style="color: #B900B9;">// 1</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Cut"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cortar"</span> NOBORDER ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> ! Empty<span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">GetSel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> .and. ! oRtf:<span style="color: #000000;">lReadOnly</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">Cut</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Cierra archivo abierto"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 2</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Copy"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Copiar"</span> NOBORDER ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> ! Empty<span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">GetSel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Copiar"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 3</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Paste"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Pegar"</span> NOBORDER ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> ! Empty<span style="color: #000000;">(</span> oClp:<span style="color: #000000;">GetText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> .and. ! oRtf:<span style="color: #000000;">lReadOnly</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Pegar"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 4</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Undo"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Deshacer"</span> NOBORDER ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> EM_CANUNDO <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">Undo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Deshacer"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 5</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Redo"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Rehacer"</span> NOBORDER ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> EM_CANREDO <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">Redo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Rehacer"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 6</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBold <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Bold"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Negrita"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lBold := !lBold, oBold:<span style="color: #000000;">lPressed</span> := lBold, oBold:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oRtf:<span style="color: #000000;">SetBold</span><span style="color: #000000;">(</span> lBold <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Negrita"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 7</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oItalic <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Italic"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Italica"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lItalic := !lItalic, oItalic:<span style="color: #000000;">lPressed</span> := lItalic, oItalic:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oRtf:<span style="color: #000000;">SetItalic</span><span style="color: #000000;">(</span> lItalic <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Italica"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 8</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oUnderline <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Underline"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Subrayado"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lUnderline := !lUnderline, oUnderline:<span style="color: #000000;">lPressed</span> := lUnderline, oUnderline:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oRtf:<span style="color: #000000;">SetUnderline</span><span style="color: #000000;">(</span> lUnderline <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Subrayado"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 9</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Left"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Alinea a la izquierda"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetAlign</span><span style="color: #000000;">(</span> PFA_LEFT <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Alinea a la izquierda"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 10</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Center"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Alinea al centro"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetAlign</span><span style="color: #000000;">(</span> PFA_CENTER <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Alinea al centro"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 11</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Right"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Alinea a la derecha"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetAlign</span><span style="color: #000000;">(</span> PFA_RIGHT <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Alinea a la derecha"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Justify"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Justifica a ambos lados"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetAlign</span><span style="color: #000000;">(</span> PFA_JUSTIFY <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Justifica a ambos lados"</span> TRANSPARENT <span style="color: #0000ff;">CENTER</span><br /> <span style="color: #B900B9;">// 13</span><br /> @ <span style="color: #000000;">153</span>,<span style="color: #000000;">561</span> <span style="color: #0000ff;">COMBOBOX</span> oItem <span style="color: #0000ff;">VAR</span> cFont <span style="color: #0000ff;">ITEMS</span> aFonts <span style="color: #0000ff;">OF</span> oDlg:<span style="color: #000000;">oBar</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">133</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">FONT</span> oFont3 ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetFontName</span><span style="color: #000000;">(</span> oItem:<span style="color: #000000;">VarGet</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Nombre de fuente"</span><br /> <span style="color: #B900B9;">// 14</span><br /> @ <span style="color: #000000;">153</span>,<span style="color: #000000;">695</span> <span style="color: #0000ff;">GET</span> oSize <span style="color: #0000ff;">VAR</span> nSize <span style="color: #0000ff;">OF</span> oDlg:<span style="color: #000000;">oBar</span> <span style="color: #0000ff;">FONT</span> oFont3 <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">21</span>,<span style="color: #000000;">21</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99"</span> SPINNER <span style="color: #0000ff;">MIN</span> <span style="color: #000000;">6</span> <span style="color: #0000ff;">MAX</span> <span style="color: #000000;">99</span> <span style="color: #0000ff;">RIGHT</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetFontSize</span><span style="color: #000000;">(</span> oSize:<span style="color: #000000;">VarGet</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oSize:<span style="color: #000000;">Set3DLook</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oSize:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Tamaño de fuente"</span><br /><br /> AEval<span style="color: #000000;">(</span> oBar:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> |x| x:<span style="color: #000000;">nLeft</span> += <span style="color: #000000;">226</span>, x:<span style="color: #000000;">nRight</span> += <span style="color: #000000;">226</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">14</span> <span style="color: #000000;">)</span><br /><br /> oBar:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span><br /> oBar:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span><br /><br /> AEval<span style="color: #000000;">(</span> oBar:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> |x| x:<span style="color: #000000;">oCursor</span> := oCursor <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />RETU .T.<br /> </div>[/code:1hfu3a3x]
Como veran son 14 elementos, pero no se porque causa se crea una buttonbar solo con los 12 primeros y deja afuera al Combobox y al Get del final. Esto luego provoca un error al cargar los controles de la ButtonBar al abrirse el dialogo.
Pero usando el mismo código con una Buttonbar fija, todo funciona bien (se crea una buttonbar con 14 elementos); pero necesito que la ButtonBar no este en las posiciones convencionales, sino en una posición fija en medio del dialogo.
Revisando el código de creación de la clase, cuando la ButtonBar es fija, se usa el metodo constructor New() y cuando va en una posición fija es NewAt(); pero no encuentro porque no funcionan de la misma forma.
Saludos
Fernando Espinoza |
Buttonbar en una posición fija | Hola
[code=fw:ndujknwg]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">153</span>,<span style="color: #000000;">561</span> <span style="color: #0000ff;">COMBOBOX</span> oItem <span style="color: #0000ff;">VAR</span> cFont <span style="color: #0000ff;">ITEMS</span> aFonts <span style="color: #0000ff;">OF</span> oDlg:<span style="color: #000000;">oBar</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">133</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">FONT</span> oFont3 ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> oRtf:<span style="color: #000000;">SetFontName</span><span style="color: #000000;">(</span> oItem:<span style="color: #000000;">VarGet</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oRtf:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oItem:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Nombre de fuente"</span><br /> </div>[/code:ndujknwg]
[code=fw:ndujknwg]<div class="fw" id="{CB}" style="font-family: monospace;">puede que sea <span style="color: #0000ff;">OF</span> oDlg:<span style="color: #000000;">oBar</span><br /><br />cambia por <span style="color: #0000ff;">OF</span> oDlg<br /> </div>[/code:ndujknwg] |
Buttonbar en una posición fija | Hola amigo...
Probaste crándola fija y luego hacerla float?
[code=fw:1834u3f1]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">150</span>,<span style="color: #000000;">260</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg 3DLOOK <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">480</span>,<span style="color: #000000;">27</span> BUTTONSIZE <span style="color: #000000;">24</span>,<span style="color: #000000;">24</span> TOP<br /><br />oBar:<span style="color: #000000;">Float</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oBar:<span style="color: #000000;">bRClicked</span>:=<span style="color: #000000;">{</span>||.f.<span style="color: #000000;">}</span><br /> </div>[/code:1834u3f1]
Espero te sirva... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.