New function XEdit() in next FWH version

New function XEdit() in next FWH version

Postby Antonio Linares » Fri Apr 26, 2019 4:33 pm

You can start using it today, though it will be included in next FWH by default :-)

Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   USE clients
   XEdit()
   USE

return nil

function XEdit( uSource, cFieldList, lNew )

return FW_Record():New( uSource, cFieldList, lNew ):Edit()


Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New function XEdit() in next FWH version

Postby Antonio Linares » Fri Apr 26, 2019 4:34 pm

Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   USE clients
   XEdit( , "NAME,ADRESS" )
   USE

return nil

function XEdit( uSource, cFieldList, lNew )

return FW_Record():New( uSource, cFieldList, lNew ):Edit()


Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New function XEdit() in next FWH version

Postby vilian » Fri Apr 26, 2019 5:12 pm

Antônio,

Will you make improvements in RibbonBar soon ? The current appearance(2007) is look like an old thing.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: New function XEdit() in next FWH version

Postby Antonio Linares » Fri Apr 26, 2019 7:57 pm

Vilian,

What appearance should we use ? :-)

Office 2016 Dark Mode ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New function XEdit() in next FWH version

Postby vilian » Fri Apr 26, 2019 8:02 pm

Yes :)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: New function XEdit() in next FWH version

Postby Antonio Linares » Fri Apr 26, 2019 8:10 pm

Vilian,

Lets try to sumarize all the changes proposed here:

viewtopic.php?f=3&t=36145&start=0&hilit=ribbonbar+dark

From James:
I am quite sure that the font being used in Office 2016 is Segoe UI 12pt.

oBar:oFont := TFont():New("Segoe UI",0,-12)


// Microsoft Office 2016 colors
nMSRed := RGB(182,71,43)
nMSGreen:= RGB(33,114,69)
nMSBlue:= RGB(42,87,154)
nMSPurple := RGB(128,57,123)
nMSRibbon := RGB(141,141,141)

// Dark Gray Theme
nMSBackground := RGB(68,68,68)
nMSRibbon := RGB(178,178,178)

// Black Theme
nMSBackground := RGB(10,10,10)
nMSRibbon := RGB(54,54,54)


I assume you mean for the mouse over color (it is not a gradient so there is only one color).

The color I have is RGB(197,197,197)


oRebar:hSeparation := 6
I use a value of 2 which seems about right
I used :hSeparation := 4 based on my font Verdana ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New function XEdit() in next FWH version

Postby vilian » Fri Apr 26, 2019 8:31 pm

Antônio,
I know this topic and already tried reproduce the ribbonbar shown there, but without success :(
Could you show us a little and complete sample of this ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: New function XEdit() in next FWH version

Postby Antonio Linares » Fri Apr 26, 2019 10:09 pm

Vilian,

In order to test differents RibbonBar themes, here you have a generic function to modify the RibbonBar theme on runtime:

viewtopic.php?p=221318#p221318

I appreciate your help and feedback to fine tune it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests