Hi friends.
I start to rewrite the great program "everything/demo_1.prg". In this way I can check some problems and ASAP update source code. As I write in Changelog: PLEASE DON'T COMMIT ANYTHING TILL I HAVE FINISHED.
If you have suggestions OR if you find bugs OR if you want give a contribution, send me a message with Personal Message on HmgForum OR open/follow a Topic on HmgForum. All images are freeware, no license required: I have downloaded from
http://www.iconfinder.com.
Known problem: On MsWinXp system, the default Qt style doesn't handle all options of some widgets. One of these is the Spinner (and inherited): arrows can be changed with minus and plus (you can see with DatePicker object in new demo), but using the default Windows style, arrows are always showed.
This is the reason because I have used "plastique" style (see code and try removing setting).
About DatePicker.
I rewrite the source code and I found a way to handle ShowNone property.
As you can see in Fig.1, this is a DatePicker with ShowNone options activated. The end user see "Null". In this condition, you get this value CTOD("//").
Fig.1

- fig.1
- ScreenShot001.jpg (1.93 KiB) Viewed 3575 times
When the user uses the down arrow, the Shownone option will be reset and the current date becomes current value.
Another way to reset Shownone is to edit the field pressing Enter button. You can see what happen with both systems.
Fig.2

- fig.2
- ScreenShot002.jpg (30.9 KiB) Viewed 3575 times
This is what I found. If anyone have suggestions, plese tell me.
At the same time, I have introduced a way to change the arrows with signs (plus/minus).
You can use Symbols() method or SYMBOLS command, but only with Datepicker object at this moment.
Code: Select all
2011-11-05 18:10 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
+ samples/alldemo
+ samples/alldemo/animatebox
+ samples/alldemo/animatebox/ant.gif
+ samples/alldemo/animatebox/bang.gif
+ samples/alldemo/icons
+ samples/alldemo/icons/align_bottom.png
+ samples/alldemo/icons/align_horcenter.png
+ samples/alldemo/icons/align_left.png
+ samples/alldemo/icons/align_right.png
+ samples/alldemo/icons/align_top.png
+ samples/alldemo/icons/align_vercenter.png
+ samples/alldemo/icons/blue_eject.png
+ samples/alldemo/icons/blue_play.png
+ samples/alldemo/icons/blue_stop.png
+ samples/alldemo/icons/clear.png
+ samples/alldemo/icons/enlarge.png
+ samples/alldemo/icons/exchange.png
+ samples/alldemo/icons/exit.png
+ samples/alldemo/icons/font_bold.png
+ samples/alldemo/icons/font_italic.png
+ samples/alldemo/icons/font_strike.png
+ samples/alldemo/icons/font_underline.png
+ samples/alldemo/icons/graph_bars.png
+ samples/alldemo/icons/graph_lines.png
+ samples/alldemo/icons/graph_pies.png
+ samples/alldemo/icons/graph_points.png
+ samples/alldemo/icons/hmg.ico
+ samples/alldemo/icons/hmg16x16.ico
+ samples/alldemo/icons/picture.png
+ samples/alldemo/icons/reduce.png
+ samples/alldemo/icons/size.png
+ samples/alldemo/icons/size_aspect_ratio.png
+ samples/alldemo/icons/size_both.png
+ samples/alldemo/icons/size_height.png
+ samples/alldemo/icons/size_smoothing.png
+ samples/alldemo/icons/size_width.png
+ samples/alldemo/images
+ samples/alldemo/images/fantasy.jpg
+ samples/alldemo/images/hmg.png
+ samples/alldemo/images/mermaid.jpg
+ samples/alldemo/images/moon.jpg
+ samples/alldemo/images/under_construction.png
+ samples/alldemo/build.bat
+ samples/alldemo/demo_1.ch
+ samples/alldemo/demo_1.hbp
+ samples/alldemo/demo_1.prg
+ samples/alldemo/demo_1.qrc
+ samples/alldemo/demo_1p000.prg
+ samples/alldemo/demo_1p001.prg
+ samples/alldemo/demo_1p002.prg
+ samples/alldemo/demo_1p003.prg
+ samples/alldemo/demo_1p004.prg
+ samples/alldemo/demo_1p005.prg
+ samples/alldemo/demo_1p006.prg
+ samples/alldemo/hbmk.hbm
+ samples/alldemo/qt.conf
* I started to write an "all in one" demo program. At this moment, with a
OOP style; then, when finished, I will rewrite with XBase commands.
PLEASE DON'T COMMIT ANYTHING TILL I HAVE FINISHED.
If you have suggestions or if you find bugs or if you want give a
contribution, send me a message with Personal Message on HmgForum or
open a Topic on HmgForum.
! source/hyperlink.prg
! inherits from label. Removed duplicated source code.
* source/label.prg
* update note: inherited by....
! include/hmg.ch
+ Qt defined vars about SpinBox. When HbQt will be update we can remove
+ #xcommand SYMBOLS command to change arrows on Spinner. At this moment
work fine on DATEPICKER.
! source/datepicker.prg
! Alignment() method: now can handle DTP_LEFT and DTP_RIGHT
! OnChange() method: aligned to __Hmg* handling system
! ShowNone() method: now can be used but in different way from HMG3.
When ShowNone is activated, user see Null. To deactivate only press
enter on field or select a date. It's little different from HMG3.
! UpDown() method: by default is .F. like HMG3
+ Symbols() method: by default up and down rows are show.
! source/basic.prg
! FocusedControl() method