Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Update impossible?
Update impossible? [message #8716] Tue, 27 March 2007 09:40 Go to next message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi all!

Currently I need to implement some windows specific gui things, like outlook 2003 or 2007 style, a navigation bar known from outlook and something else.

Therefore I need to edit directly the widget codes and enhance them for my needs.

Am I right, when I say, its nearly impossible to update to a newer release, when I made these changes - or to redo all these changes on every update?

I only want to be sure, that this is right. Then I will have to choose a stable version (the last one?) and stay with this for some time.

Ultimate++ is a very good platform. It makes small and fast code and (for a formerly delphi programmer Wink its the best platform to switch to c and use the cross platform possibilities.

On the other hand (as you wrote somewhere in this forum), the widgets are only raw modules which have to be adapted for specific use. Which means - all widgets, which are not standard have to be coded by myself.

Thats not the problem (ok - for me it's a problem, because I'm not the "native" c-programmer - but its possible), but then you can't update to newer version without reimplement all the changes done before.

I dont know, how large the community is, but maybe it would make sense to develop some more sophisticated widgets and styles. From your point of view, office look, a navigation bar or dockable toolbars are not "standard" widgets - but for windows developers this is (a forced) standard. Sad

Or in other words. I want to develop a client which runs under some platforms. This is quite easy with ultimate. But a windows client nowadays needs to be "blue" and office styled and have to offer all the useful widgets the users are used to find (navbar, planner widget, ...).

I think, this is a major drawback, why ulitmate is not so much in use as it could be. I think, some users are spoiled from other development platforms (me too Smile and they expect a little bit more to switch to ultimate for their future projects.

Im interested, what others say about this topic.

WebChaot.
Re: Update impossible? [message #8718 is a reply to message #8716] Tue, 27 March 2007 10:32 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

Quote:

Am I right, when I say, its nearly impossible to update to a newer release, when I made these changes - or to redo all these changes on every update?


You could at least use SVN repository.
I think Daniel is maintaining it and he updates the repo from time to time.

Matthias
Re: Update impossible? [message #8719 is a reply to message #8716] Tue, 27 March 2007 11:27 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

WebChaot wrote on Tue, 27 March 2007 03:40

Hi all!
Currently I need to implement some windows specific gui things, like outlook 2003 or 2007 style, a navigation bar known from outlook and something else.
Therefore I need to edit directly the widget codes and enhance them for my needs.


Enhanincg core code is not a good idea. Why you need this? Can't you just make your own widget derived from base Ctrl class with your own Paint. 2003/2007 office style have nothing in common with native widgets so creating your own widget is the best way IMO in this case. Am I right?


Re: Update impossible? [message #8722 is a reply to message #8716] Tue, 27 March 2007 11:55 Go to previous messageGo to next message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi uno!

>>> Enhanincg core code is not a good idea. Why you need this?

Because some widgets are "combined". For example a drowdown box contains the box itself and the dropdown-button (which is a nested widget).

Maybe there is a possibility to overwrite both paint-methods in a derived widget - but as I wrote, I have not much experience and so I'm not sure, if it possible and if it is, how to do.

>>> 2003/2007 office style have nothing in common with native widgets so creating your own widget is the best way IMO in this case. Am I right?

Most of the office like widgets only have another design. When there is a way to overwrite all paint methods of the widgets, then derived widgets are the best solution for this case.

I had the same problem some month ago where I wrote a gridcontrol. arrayctrl contains headerctrl. I was not able to overwrite paint-method of this header in the derived arrayctrl - so I copied headerctrl and arrayctrl and changed them to my needs Sad

Now I have to look after each release update what changed and have to update my gridcontrol too Sad

All other specific widgets I have to do myself. But maybe its easier in future, when I get answer about the paint-question (because I could use more standard-elements of u++).

WebChaot.

[Updated on: Tue, 27 March 2007 12:57]

Report message to a moderator

Re: Update impossible? [message #8725 is a reply to message #8722] Wed, 28 March 2007 09:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
"Visually-wise", it should be possible to do what you need using Chameleon. I think this is your first option. Maybe in the process you will create "blue office style" chameleon skin useful for others.

If for some reason this is not possible, you can always do this: Make your copy of widget, *rename* it (to e.g. MyDropList) and apply your changes. Keep in separate package (MyCtrlLib).

Of course, we need to extend the library of widgets, that is in plans.

Mirek
Re: Update impossible? [message #8732 is a reply to message #8716] Wed, 28 March 2007 15:03 Go to previous messageGo to next message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi Mirek!

Thanks for answer.

>>> I think this is your first option. Maybe in the process you will create "blue office style" chameleon skin useful for others.

I'm happy, that I can use the widgets to my needs. I'm really proud, that I developed a derived arrayctrl with new functions. But as you know from my last posts, I'm not able to implement new designs. Sad

But I think, that would not help, because many things in the components should be drawn by code - and some widgets must work a little bit different like the standard ones (e.g. the toolbars should not wrap, when space is too short - they should hide the buttons and display a drop arrow on right side).

Sorry - I want to give something back to the community, but at the moment I dont have the experience to do that in a professional way - so it wouldnt help anybody. Sad


>>> Make your copy of widget, *rename* it (to e.g. MyDropList) and apply your changes. Keep in separate package (MyCtrlLib).

I will do what you suggested. I will copy all CtrlLib-Widgets and extend the paint-methods and some other things for my needs. I hope, you will not change too much in newer releases. Smile

When I'm ready, I could upload them somewhere (here), if anybody is interested in these widgets. Perhaps somebody can help then to make them professional, because I have no idea, how to realize docking ability to toolbars for example.

What I will do in next weeks (if somebody is interested):

- Extend all widgets to look (and work) like Outlook 2003 and Outlook 2007
- Create new NavBar-Widget (as known from Outlook). I think, thats a useful widget, so I try to realize it Smile I think, I will find some useful things in tabctrl code (also 0..n pages, where only one is visible)
- Create a planner-widget (also known from Outlook)

What I still have at the moment:
- "FrameSet" - a simple component, which creates two frames with a splitter (horizontal or vertical) between. I need them to build dynamic dialogs. Each Frame have Hide() and Show() to toggle visibility. I use them to toggle search bars or preview areas. They can be nested - so you can do, what you need. Nothing spectacular, but useful.

I will continue using ultimate, because in my opinion its a really good development platform. Maybe sometimes my skill is high enough to help the community in a productive way.

WebChaot.
Re: Update impossible? [message #8734 is a reply to message #8732] Wed, 28 March 2007 16:19 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
WebChaot wrote on Wed, 28 March 2007 09:03


But I think, that would not help, because many things in the components should be drawn by code - and some widgets must work a little bit different like the standard ones (e.g. the toolbars should not wrap, when space is too short - they should hide the buttons and display a drop arrow on right side).



Well, but that is not exactly the visual issue. There will be a new ToolBar in future that will be more "office-like".


Mirek
Previous Topic: MenuBar theming bug in Ubuntu
Next Topic: more containers of widgets
Goto Forum:
  


Current Time: Tue May 07 22:53:02 CEST 2024

Total time taken to generate the page: 0.02376 seconds