Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 07-13-2008, 08:51 PM
Alain Carignan Alain Carignan is offline
Junior Member
 
Join Date: Apr 2008
Posts: 19
Question Listbox change style

J'aimerai savoir comment changer le style LBS_EXTENDEDSEL d'une listbox dans le code. Dans les deux sens.
Ces commande ne semble n'avoir aucun effet.
sendMessage(listbox112$, LBS_EXTENDEDSEL, true, 0);
sendMessage(listbox112$, LBS_EXTENDEDSEL, false, 0);
Reply With Quote
  #2  
Old 07-15-2008, 03:05 AM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

Vous devez l'inclure lors de la creation du control dans NewControl(). Vous pouvez le choisir directement dans le visual form builder.

Pour le changer dynamiquement:

// Ajouter
SetWindowLong(listbox112$, GWL_STYLE, GetWindowLong(listbox112$, GWL_STYLE) | LBS_EXTENDEDSEL);

// Enlever
SetWindowLong(listbox112$, GWL_STYLE, GetWindowLong(listbox112$, GWL_STYLE) ^ LBS_EXTENDEDSEL);
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #3  
Old 07-17-2008, 02:34 AM
Alain Carignan Alain Carignan is offline
Junior Member
 
Join Date: Apr 2008
Posts: 19
Default Il nde ce passe rien

Les commande ne semble n'avoir aucun effet.
Reply With Quote
Reply

Tags
change, code, listbox, style

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd