From: Zhang Weiwu on 7 Mar 2010 21:38 WJG 写道: > Hi there, > > If you're looking to develop apps to run on Linux, under Gnome then > why not try Gnocl (www.gnocl.org). This will provide you with > completely Gnome compliant applications that have the look and feel > expected based upon individual theme settings. > :) The first sentence of the original post says "cross-platform". Though I am a gnome user 99% of my time on computer:)
From: Zhang Weiwu on 9 Mar 2010 08:27 Zhang Weiwu wrote: > The user interface logic is really simple, so > does the underlying database, but a high level of nice-looking is > needed, as it is part of the VI strategy. Now I can better explain what kind of user interface I wish to achieve, here is a mock-up: [go the following bug and download its attachment, 60KB png] https://bugs.launchpad.net/addressbook/+bug/535039 Thanks for all of your feedback you gave.
From: Arndt Roger Schneider on 9 Mar 2010 11:27 Zhang Weiwu schrieb: >Zhang Weiwu wrote: > > >> The user interface logic is really simple, so >>does the underlying database, but a high level of nice-looking is >>needed, as it is part of the VI strategy. >> >> >Now I can better explain what kind of user interface I wish to achieve, >here is a mock-up: > >[go the following bug and download its attachment, 60KB png] >https://bugs.launchpad.net/addressbook/+bug/535039 > >Thanks for all of your feedback you gave. > > You need a Visualization System: tkpath or tkzinc! The tk canvas cannot handle the "shadow"-effect from your example. tkzinc: building three groups representing the two listbox elements and another group for details. Construct the second listbox element as a contour. tkzinc has difficulties with embedded controls under OSX and ?windows?, such as the visible scrollbar inside the second listbox element. The background pattern is a "-tile" element from a conventional image. You will have to use Images for "Business Categories" and "City Club Business" or overlay them with a semi-transparent text to create the shadow. tkpath: Is identical to tkzinc, except: there are no contours, clipping and without tkzinc specific issues. There is no -tile feature, you have to directly construct the background pattern. With gstripes you would simply design a conventional GUI -- using tk labels, messages, scrollbar, the grid geometry manager and such, then you would defined an interactive contour for the connection between the first and the second listbox element. The listbox elements are some trouble: In theory it should be possible to mirror hugelist as a single group into your visualization, although clipping would be a problem --I've thought about this, but did not do any work in this direction... It requires to translate the coordinates and to draw into a gstripes canvas instead of the hugelist canvas... -roger
From: am on 9 Mar 2010 13:05 Arndt Roger Schneider wrote: > Zhang Weiwu schrieb: > >>Zhang Weiwu wrote: >> >> >>> The user interface logic is really simple, so >>>does the underlying database, but a high level of nice-looking is >>>needed, as it is part of the VI strategy. >>> >>> >>Now I can better explain what kind of user interface I wish to achieve, >>here is a mock-up: >> >>[go the following bug and download its attachment, 60KB png] >>https://bugs.launchpad.net/addressbook/+bug/535039 >> >>Thanks for all of your feedback you gave. >> >> > > You need a Visualization System: tkpath or tkzinc! > The tk canvas cannot handle the "shadow"-effect from your example. > The standard canvas can do all this. You have to manage the shadow yourself. See http://wiki.tcl.tk/15549 (Shadow Photo) and http://wiki.tcl.tk/15611 (Photo Gallery) The headings must be a picture because it would be too difficult to shadow the text. For the left part use normal canvas commands .c create rectangle ... .c create text .... -tag [list row1] you can than get the bounding box of the text row1, add a few pixel on the top, left and bottom and draw the grey rectangle below the text but above the blue rectangle. For the middle part place a frame in the canvas and use normal grid geometry manager to add a listbox and a normal scrollbar. For the right part use normal canvas commands: ..c create text ... -width 100 for word wrapping for the table below again use the bounding box of the texts to move the pieces to the correct position. -- Mit freundlichen Gr��en Albrecht Mucha Software Entwicklung ---------------------------------------------------------------------- MediTec GmbH IT-L�sungen f�r das Gesundheitswesen Griesbergstr. 1b-c eMail : [string map {X {}} a.Xmucha(a)Xmeditec-gmbh.com] 31162 Bad Salzdetfurth Internet : www.meditec-gmbh.com
From: Arndt Roger Schneider on 10 Mar 2010 04:28 am schrieb: >Arndt Roger Schneider wrote: > > > >>Zhang Weiwu schrieb: >> >> >> >>>Zhang Weiwu wrote: >>> >>> >>> >>> >>>>The user interface logic is really simple, so >>>>does the underlying database, but a high level of nice-looking is >>>>needed, as it is part of the VI strategy. >>>> >>>> >>>> >>>> >>>Now I can better explain what kind of user interface I wish to achieve, >>>here is a mock-up: >>> >>>[go the following bug and download its attachment, 60KB png] >>>https://bugs.launchpad.net/addressbook/+bug/535039 >>> >>>Thanks for all of your feedback you gave. >>> >>> >>> >>> >>You need a Visualization System: tkpath or tkzinc! >>The tk canvas cannot handle the "shadow"-effect from your example. >> >> >> >The standard canvas can do all this. You have to manage the shadow yourself. >See >http://wiki.tcl.tk/15549 (Shadow Photo) and >http://wiki.tcl.tk/15611 (Photo Gallery) > > > No the canvas cannot handle the shadow effect. It is possible to fake a gradient by using layered lines, with an uniform coloured background, but not with a structured background. am are you seriously suggesting to fake a shadow gradient with images --Not even the shadow image works with the structured background? >The headings must be a picture because it would be too difficult to shadow >the text. > > > .... which also means that you have to use fixed-size fonts in the rest of the given design --forget it and use tkpath or tkzinc! >For the left part use normal canvas commands > .c create rectangle ... > .c create text .... -tag [list row1] >you can than get the bounding box of the text row1, add a few pixel on the >top, left and bottom and draw the grey rectangle below the text but above >the blue rectangle. > > > .... the major workload is to reimplement the listbox interaction for the first listbox element in your example. >For the middle part place a frame in the canvas and use normal grid geometry >manager to add a listbox and a normal scrollbar. > > Yes, will suffice for the given task... .... place a tkpath path element behind the frame and include the selection to the left in the path description (a gstripes contour). --tkzinc curve would be slightly easier, though. >For the right part use normal canvas commands: >.c create text ... -width 100 for word wrapping >for the table below again use the bounding box of the texts to move the >pieces to the correct position. > > > This way you will loose any resize-ability; any resize operation will destroy the design! It's necessary to embed the middle frame into the tk canvas window with this approach --don't use the grid geometry manager. lines and rectangles ain't anti-aliased with tk canvas under X11. -roger
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Ttk::notebook without tabs? Next: TclDevKit/Starpack failing to load a package DLL |