[Gambas-user] setting columnview column sizes
Rolf-Werner Eilert
eilert-sprachen at ...221...
Mon Oct 4 17:09:21 CEST 2010
Benoit should be able to tell you where to look at - at least he knows
best the underlying code for the Grid and Tableview. But he needs to
know the facts about your system, too.
I have been using both options, user-input and separate dialog. It
depends on usability:
- There is an account app here where I took the dialog way because it is
clearer to see that you fill in a certain payment (a table row) and book
it (OK button).
- There is another thing that enables me to write marks for the students
for a test - here it is much more logical to make every cell writable as
you jump from cell to cell.
- The same applies for the classbook application where teachers have to
write what was going on in the class: I tried it with a dialog, but they
wanted a dynamic table with single cells because they were used to such
things from Windows and they liked to click the cells like they had been
writing into the paper classbooks :-)
Regards
Rolf
04.10.2010 16:06, schrieb Ricardo Díaz Martín:
> I'm sorry Richard. I'm talking about grid view. I never have used column
> view control. I hate the users are to be able to modify data into grid. I
> usually force to the user to do double-click and open a fast form to edit
> the row. When the form with the row is closed the table is update.
>
> Regards,
> Ricardo
>
> 2010/10/4 Ricardo Díaz Martín<oceanosoftlapalma at ...626...>
>
>> Hi Richard,
>>
>> Are you using gambas2 or gambas3? qt or gtk+? Did you tried the same
>> project with only qt components? Which OS are you using? The gambas
>> installation has been made from svn or from the os package?
>>
>> I asking about this because the code looks like ok.
>>
>> If you understand Spanish, I can send you a little project I'm using for
>> myself where I use my own standard function to fill data in a GridView.
>>
>> Regads,
>> Ricardo
>>
>>
>> 2010/10/4 richard terry<rterry at ...1946...>
>>
>> On Monday 04 October 2010 21:15:13 Rolf-Werner Eilert wrote:
>>>> Am 04.10.2010 06:08, schrieb richard terry:
>>>>> Having wasted a couple of frustrating hours on this simple task, I
>>>>> thought I'd ask the list.
>>>>>
>>>>> I have a 3 column column view. I want to set the sizes of this to a
>>> user-
>>>>> defined width (I've put in the code to save this ok), but for the
>>> moment
>>>>> to be concete lets say these are the values:
>>>>>
>>>>> If I put this up the top of my subroutine:
>>>>>
>>>>> cvwResults.Columns[0].width = 70
>>>>> cvwResults.Columns[1].width = 179
>>>>> cvwResults.Columns[2].width = 180
>>>>>
>>>>> Then load the columnview with data:
>>>>>
>>>>> x = results_received!pk_document
>>>>> cvwResults.Add(x, 0)
>>>>> cvwResults[x][0] = Format(results_received!date_created,
>>>>> "dd/mm/yyyy")
>>>>> cvwResults[x][1] = result_received
>>> 'results_received!tag_user
>>>>> cvwResults[x][2] = results_received!originator
>>>>>
>>>>> Then the column widths as re-set and the columnview expands the
>>> columns
>>>>> to whatever it wants, as dictated by the widest bit of data .
>>>>>
>>>>> Any help appreciated as I'm about to slit my wrists over this one!!!!!
>>> I
>>>>> would have thought it was simple. I looked at all the columnview
>>>>> properties to no avail.
>>>>>
>>>>> Regards
>>>>>
>>>>> ricahrd
>>>>
>>>> Just a guess: Try setting the column width AFTER filling them. Does that
>>>
>>> Not at all, one can try alot of combinations and permutations when
>>> struggling
>>> for an hour.
>>>
>>> Regards
>>>
>>> Richard
>>>
>>>> help?
>>>>
>>>> Regards
>>>>
>>>> Rolf
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------------
>>>> --- Virtualization is moving to the mainstream and overtaking
>>>> non-virtualized environment for deploying applications. Does it make
>>>> network security easier or more difficult to achieve? Read this
>>> whitepaper
>>>> to separate the two and get a better understanding.
>>>> http://p.sf.net/sfu/hp-phase2-d2d
>>>> _______________________________________________
>>>> Gambas-user mailing list
>>>> Gambas-user at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Virtualization is moving to the mainstream and overtaking non-virtualized
>>> environment for deploying applications. Does it make network security
>>> easier or more difficult to achieve? Read this whitepaper to separate the
>>> two and get a better understanding.
>>> http://p.sf.net/sfu/hp-phase2-d2d
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list