Style of dialog

Style of dialog

Postby Detlef » Sun Apr 03, 2022 5:23 pm

Hi all,
I made a step from fwh 10.2 to version 21.11.
The enhancements made in the mean time are very impressive.

i like very much the style of the edit dialog of xbrowse.
Image
But I can't find out how it's done.
Please, could anyone give me an idea how to do this?

Thanks,
Detlef
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm

Re: Style of dialog

Postby Marc Venken » Sun Apr 03, 2022 6:29 pm

In the sample of Yunus, there is a nice sample included.

This one is also interesting :

Code: Select all  Expand view

  aData := { { "Name", Space(40) }, ;
             { "DOB",  CToD(''), nil, nil, { || aData[ 2, 2 ] < STOD('19900101' ) } }, ; // valid
             { "Salary", 0, nil, NumPict(11,2) }, ; // picture clause
             { "State", "NY", nil, { { "NY", "NewYork" }, { "CA", "California" } } }, ; // dbcombo
             { "Married", .f. }, ; // auto checkbox
             { "Country", "USA", .f. }, ; // not editable
             { "Notes",   "",  nil, 'M' } } // MemoEdit
  lModified := MsgGet( "EDIT VALUES", "Short Msg", aData )

 
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1343
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Style of dialog

Postby Detlef » Sun Apr 03, 2022 6:39 pm

Thanks, Marc.
I'll have a look at this.
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm

Re: Style of dialog

Postby nageswaragunupudi » Mon Apr 04, 2022 1:55 am

Source is in source\classes\tdatarow.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Style of dialog

Postby Detlef » Mon Apr 04, 2022 5:15 pm

Thanks Mr. Rao.
I already found that.
But I'm not able to discover how the look of the Edit Dialog is made.
That flat style.
Is it due to the TScrollPanel?
I didn't yet work with panels.
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm

Re: Style of dialog

Postby nageswaragunupudi » Mon Apr 04, 2022 11:32 pm

Is it due to the TScrollPanel?

Yes.
What is the FWH version you are using?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Style of dialog

Postby Detlef » Tue Apr 05, 2022 5:47 am

Mr. Rao,
I made a big step from FWH 10.2. to version 21.11. In the meantime I didn't write programs.
I'll try some coding with panels to learn about them.
Until now I do dialogs with pelles rc editor and don't even know how to place a panel into a dialog.
But I’ll try :D
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm

Re: Style of dialog

Postby James Bott » Wed Apr 06, 2022 7:43 pm

Detlef,

don't even know how to place a panel into a dialog.


Code: Select all  Expand view
oPanel:= ...
oDlg:oClient:= oPanel
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Style of dialog

Postby Detlef » Thu Apr 07, 2022 2:19 pm

James,
many thanks for your hint.

I'm still struggling to find out the handling of panels.
i have a dialog defined by resource with many gets and some buttons.
My try was to define a panel "oPanel := oPanel := TPanel():New( )"
and to change all REDEFINE xyz OF oDlg to REDEFINE xyz OF oPanel
plus set "oDlg:oClient := oPanel"
But this doesn't work.

I'll have to study more of the fwh internals. :oops:
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm

Re: Style of dialog

Postby James Bott » Thu Apr 07, 2022 11:06 pm

Detlef,

Why do you want to put a panel on a dialog?

I generally put panels on windows, mostly to add spacer bars.

If you looking to put various controls on a panel you may have to do that either manually, or with your resource designer. You may have to manually add a panel object to the resource editor. And I don't know how to do that.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Style of dialog

Postby Detlef » Sat Apr 09, 2022 3:27 pm

James,

my application starts with a dialog because so it’s easier for me to design it by pelles rc-editor.
Using a window instead I would have hours to design the screen and placing all gets, browses and buttons.
My concern was to get the neat look of the xBrowse edit dialog as you can see at top of my post.
May be there are other ways to reach that.
I'm still studying samples and sources.

Have a nice weekend.
-Detlef
User avatar
Detlef
 
Posts: 205
Joined: Mon Feb 07, 2022 9:54 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests