[Gambas-user] Gambas-user Digest, Vol 102, Issue 34

Sam Dadds sammy_dadds at ...43...
Tue Nov 18 04:35:15 CET 2014


Thanks for the replies.

  The ListView.Ignore is set and works as expected, just unable to line up completly with the
ComboBox.

  Starting to look at Christof Thalhofer's Cobmobox and noticed am actual Window is being
created within the parent Form then the Screen.X and Screen.Y are used to position the
Window.  I'll try downloading this and put the ComboBox into a couple of layered containers to see how it works.

  Are the $Variables or $ in general anything special?  Seems to be instance var and ifStatic class var.  I've been using m_Var ('m_' for member/instance) variables. I've
also seen f_ for field var.

  I'm not exactly sure how to use the mailing list correctly.  I was able to submit a question (barely) but never know if it will wind up in an un-related thread, same thing when replying.

Thanks.
 

     On Monday, November 17, 2014 4:43 PM, "gambas-user-request at ...312...eforge.net" <gambas-user-request at lists.sourceforge.net> wrote:
   

 Send Gambas-user mailing list submissions to
    gambas-user at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/gambas-user
or, via email, send a message with subject or body 'help' to
    gambas-user-request at lists.sourceforge.net

You can reach the person managing the list at
    gambas-user-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gambas-user digest..."


Today's Topics:

  1. Re: ComboBox UserContol, with pictures. (J?rn Erik M?rne)
  2. Re: Scrollarea Graphics (Tobias Boege)
  3. Re: Scrollarea Graphics (Fabien Bodard)


----------------------------------------------------------------------

Message: 1
Date: Mon, 17 Nov 2014 22:30:58 +0100
From: J?rn Erik M?rne <epost at ...3323...>
Subject: Re: [Gambas-user] ComboBox UserContol, with pictures.
To: Karl.Reinl at ...2345...,     mailing list for gambas users
    <gambas-user at lists.sourceforge.net>
Message-ID: <546A6912.5020706 at ...3323...>
Content-Type: text/plain; charset=windows-1252; format=flowed


Den 17. nov. 2014 21:36, skrev Charlie Reinl:
> Am Sonntag, den 16.11.2014, 17:57 +0000 schrieb Sam Dadds:
>> Hi All,
>>
>> Need help with a custom ComboBox.
>>
>>    I've created a UserControl (extends UserControl) with the normal stuff
>> (TextBox for selection, picture for selected item and picture for dropdown button).
>>
>>    The actual drop down list is a ListView instead of a ListBox for item pictures.
>> This all works well.
>>
>>    Problem is with positioning the drop down list.  The ListView actually gets re-parented
>> to the underlying form so it will display normally even when the ComboBox is inside a
>> toolbar or other container.
>>
>>    Finding the correct X and Y is a problem. Depending on how many containers the actual
>> ComboBox is inside the X and Y become difficult to calculate.
>>
>>    It seems the borders or margin padding of the additional containers are not taken into consideration when reporting the X and Y of the ComboBox container.
>>
>>    Currently I've tried iterating up the containers via the parent of the ComboBox and
>> add up the left or X properties until the actual parent form is found.  This is close
>> but not 100% accurate.  By adding in the Desktop.Scale it gets a bit closer but still
>> off.
>>
>>    I've looked at the source for the db version of a ComboBox but the internal ListBox
>> is actually used.
>>
>>    Does anyone have an example of this or a better idea of how to use a ListView as the
>> List container of the ComboBox?
>>
>>    It's not critical but it would be nice to have item pictures in a ListBox or ComboBox.
>>
>> Thanks.
> Salut Sam,
>
> have a look at Christof Thalhofer's "Gambas Combobox for Lists and
> Databases", https://github.com/Deganius/DegComboBox , may be you find
> some ideas.
>
Perhaps I haven't understood your issue, but why not set the 
ListView.Ignore = True and the parent to the current form?



------------------------------

Message: 2
Date: Mon, 17 Nov 2014 22:31:06 +0100
From: Tobias Boege <taboege at ...626...>
Subject: Re: [Gambas-user] Scrollarea Graphics
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <20141117213106.GP1321 at ...2774...>
Content-Type: text/plain; charset="us-ascii"

On Mon, 17 Nov 2014, Fabien Bodard wrote:
> But what is curious that is the FPath dialog output .. is present to
> me only the .project file ... look at the screenshot. Normally no
> program will affect the parsing of the file as the Patch class doing
> it in pur gambas way.
> 

Indeed. Actually I don't remember testing the parser with weird data. Could
you send me the "hexdump -C" of the patch file you're using? Maybe it got
screwed up somewhere between my mail client and your hard disk? It works
here, as the attached screenshot shows.

In any case, something I need to investigate when I have time.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-dialog.png
Type: image/png
Size: 13979 bytes
Desc: not available

------------------------------

Message: 3
Date: Mon, 17 Nov 2014 22:43:28 +0100
From: Fabien Bodard <gambas.fr at ...626...>
Subject: Re: [Gambas-user] Scrollarea Graphics
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID:
    <CAFkCsL6Tf1rEcT1vZNixaQ3=c60thcAYd917nscANkOHwtJ_1A at ...1162.....627...>
Content-Type: text/plain; charset="utf-8"

This is the hexdump

2014-11-17 22:31 GMT+01:00 Tobias Boege <taboege at ...626...>:
> On Mon, 17 Nov 2014, Fabien Bodard wrote:
>> But what is curious that is the FPath dialog output .. is present to
>> me only the .project file ... look at the screenshot. Normally no
>> program will affect the parsing of the file as the Patch class doing
>> it in pur gambas way.
>>
>
> Indeed. Actually I don't remember testing the parser with weird data. Could
> you send me the "hexdump -C" of the patch file you're using? Maybe it got
> screwed up somewhere between my mail client and your hard disk? It works
> here, as the attached screenshot shows.
>
> In any case, something I need to investigate when I have time.
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hexdump.out
Type: chemical/x-gulp
Size: 20149 bytes
Desc: not available

------------------------------

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk

------------------------------

_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


End of Gambas-user Digest, Vol 102, Issue 34
********************************************


   


More information about the User mailing list