FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ..
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
..
Posted: Tue Jan 18, 2011 08:34 AM
I'm creating A new Calendar class like office outlook

But I have several problems If Antonio and Daniel Help me I think it can be ready soon ( I sent the test to Antonio)


this is a preview beta

FWH .. BC582.. xharbour
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 09:15 AM

It looks great.

I'm very interested to see the evolution.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 09:27 AM

when I move the mouse it draw a box recdotted but then not draw a rect

FWH .. BC582.. xharbour
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 06:47 PM

Thanks.

Very good!!!.

How we can test it?

Saludos,



Eduardo
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 07:35 PM

it is a beta test...
I have several problems , I am working to use mousemove method to create the graphics to create appointments
the hours you see are array , now I am working to insert xbrowse at left to show hours
How I can make to show a xbrowse with different timeline ?
have you an idea ?

FWH .. BC582.. xharbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 08:57 PM
If there is some interest I can publish my planning class.
Best regards,
Otto
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 09:51 PM

Otto,

I'm interested in our class.

TIA and best regards,

Toninho.

toninho@fwi.com.br

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Tue Jan 18, 2011 11:18 PM
I uploaded the sourcecode to:

http://www.atzwanger-software.com/fw/planning.zip

Best regards,
Otto
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 01:59 AM

WHAT MEANS WITH RAUM1,RAUM2...
THEN WE NOT HAVE TDATA

FWH .. BC582.. xharbour
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 08:40 AM

Dear Otto,
I saw your files but they are difficult to understand, for sample when I click with mouse a raum1 I cannot go also to raum2 ( from 080:00 raum1 to 12:00 of raum2)

I 'm thinking someting different from your source as the outlook office or google agenda, where the user with mouse can draw the box vertical

Now I sent my class source prototype to Antonio and daniel I hope they help me .

FWH .. BC582.. xharbour
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 04:27 PM

Otto,

Thank you for share your code.

Best Regards,

Toninho.

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 08:02 PM

>'m thinking someting different from your source as the outlook office or google agenda, where the user with mouse can draw the box vertical

You have to press the mouse button and kept it pressed while moving down like in outlook.
This way you select the time of the appointment.
Best regards,
Otto

Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 08:42 PM
Sorry now I saw..
I wanted make the same but I wanted create this :
When the user click on a row the mouse must create a rectoddet box then the user can select the type of appoint and then it must create the box ( rectangule) on row ( from row to row)
I made on my prototype
Code (fw): Select all Collapse
//----------------------------------------------------------------------------//

METHOD LButtonDown( nRow, nCol, nFlags ) CLASS TCalendarOffice

   if ::bLClicked != nil
      Eval( ::bLClicked, nRow, nCol, nFlags )
   else
      ::lBoxDraw   = .t.
      ::nBoxTop    = nRow
      ::nBoxLeft   = nCol
      ::nBoxBottom = nRow
      ::nBoxRight  = nCol
      ::Capture()
      ::DrawBox()
   endif


return nil


//----------------------------------------------------------------------------//

METHOD MouseMove( nRow, nCol, nFlags ) CLASS TCalendarOffice

   if ::lBoxDraw
      ::DrawBox()
      ::nBoxBottom = nRow
      ::nBoxRight  = nCol



      ::DrawBox()


   endif

return Super:MouseMove( nRow, nCol, nFlags )

//----------------------------------------------------------------------------//

METHOD LButtonUp( nRow, nCol, nFlags ) CLASS TCalendarOffice

   if ::lBoxDraw
      ::DrawBox()
      ::lBoxDraw = .f.
      ReleaseCapture()

 // ::nWidth := ::nBoxRight - ::nBoxLeft
 //  ::nHeight := ::nBoxBottom - ::nBoxTop

  // Super:ScrollAdjust()
  // Super:refresh( .t. )


endif



drawbox is METHOD DrawBox() INLINE RectDotted( ::hWnd, ::nBoxTop, ::nBoxLeft, ::nBoxBottom, ::nBoxRight )
but it create the rect dotted but then not create the box , can you write how make it pls
FWH .. BC582.. xharbour
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 08:48 PM
Otto wrote:>'m thinking someting different from your source as the outlook office or google agenda, where the user with mouse can draw the box vertical

You have to press the mouse button and kept it pressed while moving down like in outlook.
This way you select the time of the appointment.
Best regards,
Otto


Otto sorry another...I m trying your class
on your planning How I can to show a week for sample from 17.1.2011 to 23.01.11 instead of RAum1/2/3/4/5 and go to next days with a click ?
FWH .. BC582.. xharbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FW Office 2007 Calendar - beta preview
Posted: Wed Jan 19, 2011 09:30 PM

I don’t have this ready. But I think you could do it in a similar mode.
Instead of raum you could use Monday to Sunday.
Best regards,
Otto