What about adding the number to the cargo.
aBtn[n]:cargo := n
What about adding the number to the cargo.
aBtn[n]:cargo := n
Dear Gale,
You Know the sample child03 of the testbtn.prg of tsbutton ?
I must make a window where I can show many seats but I must use also a dbf to control if a seat is free or not.
I must create 20 seats for 8 lines ( 20x8) with tsbutton and write on it the number of the seat
When I click on each seat the program must show me a menu popup near to button and then I can insert the reservation but I need the number of the seat to make it .
I hope you understand me
I hope you can help me .....
bAction := {|oBtn| menupopup( oBtn ) }
n := 1
for ?????
@ Fila,(Col+nPassLarg) SBUTTON aBtn[n] RESOURCE "omb3" PIXEL;
OF oWnd ;
FONT oFont2 ;
CAPTION cCaption ;
COLOR CLR_WHITE, GetSysColor(15) ;
TEXT ON_CENTER ;
NOBOX ;
TOOLTIP oemtoansi(cCaption) ;
ACTION bAction
aBtn[n]:cargo := n // add this cargo
n++
next ????function MEnupopup( oBtn )
Local oMenu, aRect ,nRow,nCol
cpoltrona:= Val( oBtn:cCaption )
? 'Popup for button # '+ltrim(str( oBtn:cargo ))
aRect := GetClientRect( oBtn:hWnd )
MENU oMenu POPUP
MENUITEM "&Nuova prenotazione" action OCCUPARE(oBtn,.t.)
MENUITEM "&Modifica prenotazione" action OCCUPARE(oBtn,.f.)
MENUITEM "&Mostra prenotazione"
ENDMENU
ACTIVATE POPUP oMenu AT aRect[ 3 ] + 1, aRect[ 2 ] OF oBtn
RETURN NIL? 'Popup for button # '+ltrim(str( oBtn:cargo ))The link did not work right so you might have to copy and paste link
GOOOODDD !
the testsamp.prg run ok
BUT
when I clicked on each button it show the bitmap seatfull but must not show it : after only the user select the menu popup and insert the record of reservation it must show the bitmpa seatfull.
But it run ok and i can work on it now
Now I must try with dbfs and insert on left a browse with customers and when I click on a cusotmer the program must refresh the buttons retated
then the windows must be divide with a vertical splitter
If I found problems can write you ?
Thanks mr Gale,
How I can make to insert on each button the caption with the number of buttons ?
Regards
Silvio wrote:Dear Timm, have you correct the error ?
Best Regards,
C_OUTPUTFOLDER =
DEFFILE =
INCLUDEFOLDERS = \fwh\include;include
LDEBUG = .F.
LGUI = .F.
LIBFOLDERS =
LMT = .F.
LUSEDLL = .F.
MAPFILE =
MYC_FLAGS =
MYDEFINES = __HARBOUR__ ;__FLAT__
MYLINK_FLAGS =
MYPRG_FLAGS =
MYRC_FLAGS =
MYSLY_FLAGS =
OUTPUTFOLDER = xbp\obj
PRG_OUTPUTFOLDER =
RC_OUTPUTFOLDER =
SLY_OUTPUTFOLDER =
TARGETFOLDER = xbp\lib
[source\classes\TSBUTTON.PRG]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =
[source\classes\TSBAR.PRG]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =
[source\classes\TSLINES.PRG]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =
[source\classes\TSTSAY.PRG]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =
[source\function\BPAINT.C]
MYC_FLAGS =
MYDEFINES =Silvio wrote:How I can make to insert on each button the caption with the number of buttons ?
Regards
@10,90 SBGROUP aBtn1 OF aChild[ 3 ] ;
CAPTION aCapt1 ;
SIZE 34, 34 PIXELS ;
FONT oFont ;
ACTION aAct1 ; // RESOURCE "Seatm", "Seatm", "Seatm", "Seatm" ; // multi bitmap
RESOURCE "Seatm1", "Seatm2", "Seatm3", "Seatm4" ; // MODIFIED BY EVANS
MESSAGE "Click izquierdo: Reservar Asientos. " + ;
"Click derecho: Cancelar Reservaci≤n." ;
COLORS CLR_WHITE, CLR_CYAN ;
TEXT ON_CENTER ;
LOOK W97SEATM BITMAP "..\bitmaps\SEATM.BMP"
SEATM1 BITMAP "..\bitmaps\SEATM1.BMP"
SEATM2 BITMAP "..\bitmaps\SEATM2.BMP"
SEATM3 BITMAP "..\bitmaps\SEATM3.BMP"
SEATM4 BITMAP "..\bitmaps\SEATM4.BMP"the SPAce enviroment on sbgroup not run ok
Hello Silvio,
Have you thought of using FW PocketPC for your software "Spiaggia, lettini, ombrelloni" ?
Regards
Otto
BTW: on fivewin.it there is an error
Pagine ASP error 'ASP 0126'
Impossibile trovare il file di inclusione
/Default.asp, line 15
Impossibile trovare il file di inclusione "config.asp".
Otto,
Yes we 'are working to make it also to Pocket Pc but Now I must finish Pc Version 32 bit
there is another module we are working now : tpv
HAVE YOU SOME SAMPLE ?
BTW :FOR WWW.FIVEWIN.IT - THIS SITE IS NOT ON LINE